diff --git a/lib/Makefile b/lib/Makefile index 98893fe..b5218f3 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,12 +1,13 @@ ifdef _LIBVER_SUPPORT - INCLUDE_VER = ../../libver/ver.h - LIB_VER = -I ../../libver + DEP += ../../libver/ver.h + LIBDIR += -I ../../libver + FLAG += -D_LIBVER_SUPPORT endif all: libnode.a libnode.so -libnode.o: libnode.c node.h libnode.h $(INCLUDE_VER) Makefile - gcc -c -g -o libnode.o -I . $(LIB_VER) libnode.c +libnode.o: libnode.c node.h libnode.h $(DEP) Makefile + gcc -c -g -o libnode.o $(FLAG) -I . $(LIBDIR) libnode.c libnode.a: libnode.o ar -r libnode.a libnode.o