21 lines
735 B
Makefile
21 lines
735 B
Makefile
ifdef _LIBVER_SUPPORT
|
|
DEP_STATIC += ../../libver/ver.h ../../libver/libver.a
|
|
DEP_DYNAMIC += ../../libver/ver.h ../../libver/libver.so
|
|
INCLUDE += -I ../../libver
|
|
LIBDIR += -L ../../libver
|
|
LIB_STATIC += ../../libver/libver.a
|
|
LIB_DYNAMIC += -lver
|
|
FLAG_VER = -D_LIBVER_SUPPORT
|
|
endif
|
|
|
|
all: ndbench ndbench-static
|
|
|
|
ndbench-static: ndbench.c $(DEP_STATIC) ../lib/node.h ../lib/libnode.a Makefile
|
|
gcc -g -o ndbench-static $(FLAG_VER) $(INCLUDE) -I ../lib ndbench.c -ldl $(LIB_STATIC) ../lib/libnode.a
|
|
|
|
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
|