libnode/util/Makefile

28 lines
847 B
Makefile
Raw Normal View History

ifdef _LIBVER_SUPPORT
2003-01-17 09:06:57 +01:00
DEP_STATIC += ../../libver/ver.h ../../libver/libver.a
DEP_DYNAMIC += ../../libver/ver.h ../../libver/libver.so
INCLUDE += -I ../../libver
LIBDIR += -L ../../libver
2003-01-17 18:07:41 +01:00
ifeq ($(OSTYPE),linux-gnu)
LIB_STATIC += ../../libver/libver.a
LIB_DYNAMIC += -lver
else
LIB_STATIC += -ldl ../../libver/libver.a
LIB_DYNAMIC += -ldl -lver
endif
2003-01-17 09:06:57 +01:00
FLAG_VER = -D_LIBVER_SUPPORT
endif
all: ndbench ndbench-static
2003-01-17 09:06:57 +01:00
ndbench-static: ndbench.c $(DEP_STATIC) ../lib/node.h ../lib/libnode.a Makefile
2003-01-17 18:07:41 +01:00
gcc -g -o ndbench-static $(FLAG_VER) $(INCLUDE) -I ../lib ndbench.c $(LIB_STATIC) ../lib/libnode.a
2003-01-17 09:06:57 +01:00
ndbench: ndbench.c $(DEP_DYNAMIC) ../lib/node.h ../lib/libnode.so Makefile
gcc -g -o ndbench -ldl $(FLAG_VER) $(INCLUDE) -I ../lib $(LIBDIR) -L ../lib $(LIB_DYNAMIC) -lnode ndbench.c
clean:
rm -f ndbench ndbench-static