2003-07-16 01:57:50 +02:00
|
|
|
SRC := nddemo0.c
|
2004-08-02 01:34:31 +02:00
|
|
|
TARGETS := nddemo0 nddemo0-c nddemo0-static nddemo0-static-c
|
|
|
|
FILE_BIN := nddemo0 nddemo0-c nddemo0-static nddemo0-static-c
|
2003-07-16 01:57:50 +02:00
|
|
|
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
|
2003-01-23 01:21:20 +01:00
|
|
|
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
|
2003-01-17 09:06:57 +01:00
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
|
|
|
|
2003-07-16 01:57:50 +02:00
|
|
|
|
|
|
|
nddemo0: nddemo0.c $(DEP_DYNAMIC)
|
2004-08-02 01:34:31 +02:00
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_NOCHECK_FLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<
|
|
|
|
|
|
|
|
nddemo0-c: nddemo0.c $(DEP_DYNAMIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_CHECK_FLAGS) $(INCLUDE) $(LIBDIR) $(LIB_DYNAMIC) $<
|
|
|
|
|
|
|
|
nddemo0-static: nddemo0.c $(DEP_STATIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_NOCHECK_FLAGS) $(INCLUDE) $< $(LIB_STATIC)
|
|
|
|
|
|
|
|
nddemo0-static-c: nddemo0.c $(DEP_STATIC)
|
|
|
|
$(CC) -o $@ $(CFLAGS) $(ND_CHECK_FLAGS) $(INCLUDE) $< $(LIB_STATIC)
|
2001-11-26 11:17:43 +01:00
|
|
|
|