SRC := nddemo0.c TARGETS := nddemo0 nddemo0-c nddemo0-static nddemo0-static-c FILE_BIN := nddemo0 nddemo0-c nddemo0-static nddemo0-static-c FILE_LIB := nddemo0.dat include ../Makefile.var include ../Makefile.rule DEP_STATIC += ../lib/libnode.a ../../liblog/lib/liblog.a DEP_DYNAMIC += ../lib/libnode.so ../../liblog/lib/liblog.so INCLUDE += -I . -I ../include -I ../../liblog/include LIBDIR += -L . -L ../lib -L ../../liblog/lib LIB_STATIC += ../lib/libnode.a ../../liblog/lib/liblog.a -ldl LIB_DYNAMIC += -lnode -llog -ldl CFLAGS += -rdynamic ifdef _LIBVER_SUPPORT DEP_STATIC += ../../libver/ver.h ../../libver/libver.a DEP_DYNAMIC += ../../libver/ver.h ../../libver/libver.so INCLUDE += -I ../../libver/lib LIBDIR += -L ../../libver/lib ifeq ($(OSTYPE),linux-gnu) LIB_STATIC += ../../libver/lib/libver.a LIB_DYNAMIC += -lver else LIB_STATIC += ../../libver/lib/libver.a LIB_DYNAMIC += -lver endif CFLAGS += -D_LIBVER_SUPPORT endif ND_CHECK_FLAGS = -DND_MODE=0 ND_NOCHECK_FLAGS = -DND_MODE=1 nddemo0: nddemo0.c $(DEP_DYNAMIC) $(CC) -o $@ $(CFLAGS) $(ND_NOCHECK_FLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $< nddemo0-c: nddemo0.c $(DEP_DYNAMIC) $(CC) -o $@ $(CFLAGS) $(ND_CHECK_FLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $< nddemo0-static: nddemo0.c $(DEP_STATIC) $(CC) -o $@ $(CFLAGS) $(ND_NOCHECK_FLAGS) $(INCLUDE) $< $(LIB_STATIC) nddemo0-static-c: nddemo0.c $(DEP_STATIC) $(CC) -o $@ $(CFLAGS) $(ND_CHECK_FLAGS) $(INCLUDE) $< $(LIB_STATIC)