Now generates static and dynamic executables.
This commit is contained in:
parent
719416547a
commit
85b6b70aa2
@ -1,8 +1,16 @@
|
|||||||
|
ifdef _LIBVER_SUPPORT
|
||||||
|
INCLUDE_VER = ../../libver/ver.h
|
||||||
|
LIB_VER_STATIC = -I ../../libver ../../libver/libver.a
|
||||||
|
LIB_VER_DYNAMIC = -I ../../libver -L ../../libver -lver
|
||||||
|
endif
|
||||||
|
|
||||||
all: ndbench
|
all: ndbench ndbench-static
|
||||||
|
|
||||||
ndbench: ndbench.c ../../libver/ver.h ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile
|
ndbench-static: ndbench.c $(INCLUDE_VER) ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile
|
||||||
gcc -g -o ndbench -I ../../libver -I ../lib -ldl ../../libver/libver.so ../lib/libnode.so ndbench.c
|
gcc -g -o ndbench-static -I ../lib ndbench.c -ldl $(LIB_VER_STATIC) ../lib/libnode.a
|
||||||
|
|
||||||
|
ndbench: ndbench.c $(INCLUDE_VER) ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile
|
||||||
|
gcc -g -o ndbench -ldl $(LIB_VER_DYNAMIC) -I ../lib -L ../lib -lnode ndbench.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm ndbench
|
rm -f ndbench ndbench-static
|
||||||
|
Loading…
Reference in New Issue
Block a user