2003-01-23 01:24:36 +01:00
|
|
|
ifdef LIBVER_SUPPORT
|
|
|
|
DEP_STATIC += ../../libver/lib/ver.h ../../libver/lib/libver.a
|
|
|
|
DEP_DYNAMIC += ../../libver/lib/ver.h ../../libver/lib/libver.so
|
|
|
|
INCLUDE += -I ../../libver/lib
|
|
|
|
LIBDIR += -L ../../libver/lib
|
2003-01-17 18:07:41 +01:00
|
|
|
|
|
|
|
ifeq ($(OSTYPE),linux-gnu)
|
2003-01-23 01:24:36 +01:00
|
|
|
LIB_STATIC += ../../libver/lib/libver.a
|
2003-01-17 18:07:41 +01:00
|
|
|
LIB_DYNAMIC += -lver
|
|
|
|
else
|
2003-01-23 01:24:36 +01:00
|
|
|
LIB_STATIC += -ldl ../../libver/lib/libver.a
|
2003-01-17 18:07:41 +01:00
|
|
|
LIB_DYNAMIC += -ldl -lver
|
|
|
|
endif
|
|
|
|
|
2003-01-23 01:24:36 +01:00
|
|
|
FLAG_VER = -D_LIBVER_SUPPORT -rdynamic
|
2002-02-26 00:38:22 +01:00
|
|
|
endif
|
2001-11-26 11:17:43 +01:00
|
|
|
|
2002-02-26 00:38:22 +01:00
|
|
|
all: ndbench ndbench-static
|
2001-11-26 11:17:43 +01:00
|
|
|
|
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
|
2002-02-26 00:38:22 +01:00
|
|
|
|
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
|
2001-11-26 11:17:43 +01:00
|
|
|
|
|
|
|
clean:
|
2002-02-26 00:38:22 +01:00
|
|
|
rm -f ndbench ndbench-static
|