From 85b6b70aa23680feceacbb202366e7ccb6faf2ab Mon Sep 17 00:00:00 2001 From: agibert Date: Mon, 25 Feb 2002 23:38:22 +0000 Subject: [PATCH] Now generates static and dynamic executables. --- util/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/util/Makefile b/util/Makefile index e184f0d..45642fa 100644 --- a/util/Makefile +++ b/util/Makefile @@ -1,8 +1,16 @@ +ifdef _LIBVER_SUPPORT + INCLUDE_VER = ../../libver/ver.h + LIB_VER_STATIC = -I ../../libver ../../libver/libver.a + LIB_VER_DYNAMIC = -I ../../libver -L ../../libver -lver +endif -all: ndbench +all: ndbench ndbench-static -ndbench: ndbench.c ../../libver/ver.h ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile - gcc -g -o ndbench -I ../../libver -I ../lib -ldl ../../libver/libver.so ../lib/libnode.so ndbench.c +ndbench-static: ndbench.c $(INCLUDE_VER) ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile + gcc -g -o ndbench-static -I ../lib ndbench.c -ldl $(LIB_VER_STATIC) ../lib/libnode.a + +ndbench: ndbench.c $(INCLUDE_VER) ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile + gcc -g -o ndbench -ldl $(LIB_VER_DYNAMIC) -I ../lib -L ../lib -lnode ndbench.c clean: - rm ndbench + rm -f ndbench ndbench-static