2003-01-17 09:06:57 +01:00
|
|
|
ifdef _LIBVER_SUPPORT
|
|
|
|
DEP_STATIC += ../../libver/ver.h ../../libver/libver.a
|
|
|
|
DEP_DYNAMIC += ../../libver/ver.h ../../libver/libver.so
|
|
|
|
INCLUDE += -I ../../libver
|
|
|
|
LIBDIR += -L ../../libver
|
2003-01-17 18:07:41 +01:00
|
|
|
|
|
|
|
ifeq ($(OSTYPE),linux-gnu)
|
|
|
|
LIB_STATIC += ../../libver/libver.a
|
|
|
|
LIB_DYNAMIC += -lver
|
|
|
|
else
|
|
|
|
LIB_STATIC += -ldl ../../libver/libver.a
|
|
|
|
LIB_DYNAMIC += -ldl -lver
|
|
|
|
endif
|
|
|
|
|
2003-01-17 09:06:57 +01:00
|
|
|
FLAG += -D_LIBVER_SUPPORT
|
|
|
|
endif
|
|
|
|
|
2002-02-26 00:37:49 +01:00
|
|
|
all: demo0 demo0-static
|
2001-11-26 11:17:43 +01:00
|
|
|
|
2003-01-17 09:06:57 +01:00
|
|
|
demo0-static: demo0.c $(DEP_STATIC) ../lib/node.h ../lib/libnode.a Makefile
|
2003-01-17 18:07:41 +01:00
|
|
|
gcc -g -o demo0-static $(FLAG) $(INCLUDE) -I ../lib demo0.c $(LIB_STATIC) ../lib/libnode.a
|
2001-11-26 11:17:43 +01:00
|
|
|
|
2003-01-17 09:06:57 +01:00
|
|
|
demo0: demo0.c $(DEP_DYNAMIC) ../lib/node.h ../lib/libnode.so Makefile
|
2003-01-17 18:07:41 +01:00
|
|
|
gcc -g -o demo0 $(FLAG) $(INCLUDE) -I ../lib $(LIBDIR) -L ../lib $(LIB_DYNAMIC) -lnode demo0.c
|
2001-11-26 11:17:43 +01:00
|
|
|
|
|
|
|
clean:
|
2002-02-26 00:37:49 +01:00
|
|
|
rm -f demo0 demo0-static
|