SRC := nddemo0.c TARGETS := nddemo0 nddemo0-static FILE_BIN := nddemo0 nddemo0-static FILE_BIN := nddemo0 nddemo0-static FILE_LIB := nddemo0.dat include ../Makefile.var include ../Makefile.rule DEP_STATIC = ../lib/libnode.a DEP_DYNAMIC = ../lib/libnode.so INCLUDE = -I . -I ../include LIBDIR = -L . -L ../lib LIB_STATIC = ../lib/libnode.a LIB_DYNAMIC = -lnode 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 += -ldl ../../libver/lib/libver.a LIB_DYNAMIC += -ldl -lver endif CFLAGS += -D_LIBVER_SUPPORT -rdynamic endif nddemo0-static: nddemo0.c $(DEP_STATIC) $(CC) -o $@ $(CFLAGS) $(INCLUDE) $< $(LIB_STATIC) nddemo0: nddemo0.c $(DEP_DYNAMIC) $(CC) -o $@ $(CFLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<