2024-04-18 00:54:52 +02:00
|
|
|
SRC := ndbench.c
|
2004-08-02 01:34:31 +02:00
|
|
|
TARGETS := ndbench ndbench-c ndbench-static ndbench-static-c
|
|
|
|
FILE_BIN := ndbench ndbench-c ndbench-static ndbench-static-c
|
2003-07-17 01:46:14 +02:00
|
|
|
FILE_LIB := *.ndb
|
|
|
|
FILE_DOC := ndbench.xls
|
2003-07-16 01:57:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include ../Makefile.var
|
|
|
|
include ../Makefile.rule
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-18 00:54:52 +02:00
|
|
|
DEP_STATIC += ../lib/libnode.a ../../liblog/lib/liblog.a
|
|
|
|
DEP_DYNAMIC += ../lib/libnode.so ../../liblog/lib/liblog.so
|
|
|
|
INCLUDE += -I . -I ../include -I ../../liblog/include
|
|
|
|
LIBDIR += -L . -L ../lib -L ../../liblog/lib
|
|
|
|
LIB_STATIC += ../lib/libnode.a ../../liblog/lib/liblog.a -ldl
|
|
|
|
LIB_DYNAMIC += -lnode -llog -ldl
|
2005-01-19 17:50:19 +01:00
|
|
|
CFLAGS += -rdynamic
|
2003-07-16 01:57:50 +02:00
|
|
|
|
|
|
|
ifdef _LIBVER_SUPPORT
|
|
|
|
DEP_STATIC += ../../libver/ver.h ../../libver/libver.a
|
|
|
|
DEP_DYNAMIC += ../../libver/ver.h ../../libver/libver.so
|
2003-01-23 01:24:36 +01:00
|
|
|
INCLUDE += -I ../../libver/lib
|
|
|
|
LIBDIR += -L ../../libver/lib
|
2003-01-17 18:07:41 +01:00
|
|
|
|
2003-07-16 01:57:50 +02:00
|
|
|
ifeq ($(OSTYPE),linux-gnu)
|
|
|
|
LIB_STATIC += ../../libver/lib/libver.a
|
|
|
|
LIB_DYNAMIC += -lver
|
|
|
|
else
|
2005-01-11 22:03:53 +01:00
|
|
|
LIB_STATIC += ../../libver/lib/libver.a
|
|
|
|
LIB_DYNAMIC += -lver
|
2003-07-16 01:57:50 +02:00
|
|
|
endif
|
2003-01-17 18:07:41 +01:00
|
|
|
|
2005-01-11 22:03:53 +01:00
|
|
|
CFLAGS += -D_LIBVER_SUPPORT
|
2002-02-26 00:38:22 +01:00
|
|
|
endif
|
2001-11-26 11:17:43 +01:00
|
|
|
|
2004-08-02 01:34:31 +02:00
|
|
|
ND_CHECK_FLAGS = -DND_MODE=0
|
|
|
|
ND_NOCHECK_FLAGS = -DND_MODE=1
|
2001-11-26 11:17:43 +01:00
|
|
|
|
2002-02-26 00:38:22 +01:00
|
|
|
|
2001-11-26 11:17:43 +01:00
|
|
|
|
2003-07-16 01:57:50 +02:00
|
|
|
ndbench: ndbench.c $(DEP_DYNAMIC)
|
2004-08-02 01:34:31 +02:00
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_NOCHECK_FLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<
|
|
|
|
|
|
|
|
ndbench-c: ndbench.c $(DEP_DYNAMIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_CHECK_FLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<
|
|
|
|
|
|
|
|
ndbench-static: ndbench.c $(DEP_STATIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_NOCHECK_FLAGS) $(INCLUDE) $< $(LIB_STATIC)
|
|
|
|
|
|
|
|
ndbench-static-c: ndbench.c $(DEP_STATIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_CHECK_FLAGS) $(INCLUDE) $< $(LIB_STATIC)
|