Update Makefile to Marc new system.
This commit is contained in:
parent
a10f0b1cf5
commit
69d684f700
@ -1,6 +1,26 @@
|
|||||||
ifdef LIBVER_SUPPORT
|
SRC := nddemo0.c
|
||||||
DEP_STATIC += ../../libver/lib/ver.h ../../libver/lib/libver.a
|
TARGETS := nddemo0 nddemo0-static
|
||||||
DEP_DYNAMIC += ../../libver/lib/ver.h ../../libver/lib/libver.so
|
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
|
INCLUDE += -I ../../libver/lib
|
||||||
LIBDIR += -L ../../libver/lib
|
LIBDIR += -L ../../libver/lib
|
||||||
|
|
||||||
@ -12,16 +32,14 @@ ifdef LIBVER_SUPPORT
|
|||||||
LIB_DYNAMIC += -ldl -lver
|
LIB_DYNAMIC += -ldl -lver
|
||||||
endif
|
endif
|
||||||
|
|
||||||
FLAG += -D_LIBVER_SUPPORT -rdynamic
|
CFLAGS += -D_LIBVER_SUPPORT -rdynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: demo0 demo0-static
|
|
||||||
|
|
||||||
demo0-static: demo0.c $(DEP_STATIC) ../lib/node.h ../lib/libnode.a Makefile
|
|
||||||
gcc -g -o demo0-static $(FLAG) $(INCLUDE) -I ../lib demo0.c $(LIB_STATIC) ../lib/libnode.a
|
|
||||||
|
|
||||||
demo0: demo0.c $(DEP_DYNAMIC) ../lib/node.h ../lib/libnode.so Makefile
|
nddemo0-static: nddemo0.c $(DEP_STATIC)
|
||||||
gcc -g -o demo0 $(FLAG) $(INCLUDE) -I ../lib $(LIBDIR) -L ../lib $(LIB_DYNAMIC) -lnode demo0.c
|
$(CC) -o $@ $(CFLAGS) $(INCLUDE) $< $(LIB_STATIC)
|
||||||
|
|
||||||
|
nddemo0: nddemo0.c $(DEP_DYNAMIC)
|
||||||
|
$(CC) -o $@ $(CFLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f demo0 demo0-static
|
|
||||||
|
@ -1,6 +1,26 @@
|
|||||||
ifdef LIBVER_SUPPORT
|
SRC := ndbench.c
|
||||||
DEP_STATIC += ../../libver/lib/ver.h ../../libver/lib/libver.a
|
TARGETS := ndbench-static ndbench
|
||||||
DEP_DYNAMIC += ../../libver/lib/ver.h ../../libver/lib/libver.so
|
FILE_BIN := ndbench-static ndbench
|
||||||
|
FILE_DOC := ndbech.xls
|
||||||
|
FILE_LIB := test-10K.ndb test-100K.ndb test-1M.ndb test-all.ndb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
INCLUDE += -I ../../libver/lib
|
||||||
LIBDIR += -L ../../libver/lib
|
LIBDIR += -L ../../libver/lib
|
||||||
|
|
||||||
@ -12,16 +32,13 @@ ifdef LIBVER_SUPPORT
|
|||||||
LIB_DYNAMIC += -ldl -lver
|
LIB_DYNAMIC += -ldl -lver
|
||||||
endif
|
endif
|
||||||
|
|
||||||
FLAG_VER = -D_LIBVER_SUPPORT -rdynamic
|
CFLAGS += -D_LIBVER_SUPPORT -rdynamic
|
||||||
endif
|
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 $(LIB_STATIC) ../lib/libnode.a
|
|
||||||
|
|
||||||
ndbench: ndbench.c $(DEP_DYNAMIC) ../lib/node.h ../lib/libnode.so Makefile
|
ndbench-static: ndbench.c $(DEP_STATIC)
|
||||||
gcc -g -o ndbench -ldl $(FLAG_VER) $(INCLUDE) -I ../lib $(LIBDIR) -L ../lib $(LIB_DYNAMIC) -lnode ndbench.c
|
$(CC) -o $@ $(CFLAGS) $(INCLUDE) $< $(LIB_STATIC)
|
||||||
|
|
||||||
clean:
|
ndbench: ndbench.c $(DEP_DYNAMIC)
|
||||||
rm -f ndbench ndbench-static
|
$(CC) -o $@ $(CFLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<
|
||||||
|
Loading…
Reference in New Issue
Block a user