--- gznbd/Makefile +++ gznbd/Makefile @@ -1,2 +1,7 @@ -gznbd: gznbd.c - gcc -s -Wall -O2 -DTRACE gznbd.c -o gznbd -lz +CC ?= gcc +CFLAGS ?= -s -O2 +CFLAGS += -Wall -DTRACE +LDLIBS += -lz + +all: gznbd +gznbd: gznbd.c --- gznbd/gznbd.c +++ gznbd/gznbd.c @@ -49,8 +49,8 @@ /* asm/types defines __u??, at least on my system */ #include -#define u32 __u32 -#define u64 __u64 +#include +#define MY_NAME "gznbd" /* these headers take care of endianness */ #include "../config.h"