2003-07-16 01:57:50 +02:00
|
|
|
SRC := ndbench.c
|
|
|
|
TARGETS := ndbench-static ndbench
|
|
|
|
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
|
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
|
|
|
|
LIB_STATIC += -ldl ../../libver/lib/libver.a
|
|
|
|
LIB_DYNAMIC += -ldl -lver
|
|
|
|
endif
|
2003-01-17 18:07:41 +01:00
|
|
|
|
2003-07-16 01:57:50 +02:00
|
|
|
CFLAGS += -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
|
|
|
|
2003-07-16 01:57:50 +02:00
|
|
|
ndbench-static: ndbench.c $(DEP_STATIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(INCLUDE) $< $(LIB_STATIC)
|
2001-11-26 11:17:43 +01:00
|
|
|
|
2003-07-16 01:57:50 +02:00
|
|
|
ndbench: ndbench.c $(DEP_DYNAMIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<
|