From 719416547a1869e9a3bde6435d7d3de2ca5a6469 Mon Sep 17 00:00:00 2001 From: agibert Date: Mon, 25 Feb 2002 23:37:49 +0000 Subject: [PATCH] Now generates static and dynamic executablesje --- demo/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index 4d679cc..1a83143 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -1,8 +1,10 @@ +all: demo0 demo0-static -all: demo0 +demo0-static: demo0.c ../../libver/ver.h ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile + gcc -g -o demo0-static -I ../lib -ldl demo0.c ../lib/libnode.a demo0: demo0.c ../../libver/ver.h ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile - gcc -g -o demo0 -I ../../libver -I ../lib -ldl ../../libver/libver.so ../lib/libnode.so demo0.c + gcc -g -o demo0 -I ../lib -L ../lib -ldl -lnode demo0.c clean: - rm demo0 + rm -f demo0 demo0-static