From ec9e81479258e1822e36808c8ddfc82bd346c3bd Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 18 Oct 2005 18:28:21 +0000 Subject: [PATCH] still need to use libtool in Makefile for dot.demo/ --- dot.demo/Makefile | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/dot.demo/Makefile b/dot.demo/Makefile index bbf99c7c4..e497e6583 100644 --- a/dot.demo/Makefile +++ b/dot.demo/Makefile @@ -1,13 +1,31 @@ +COMPILE=libtool --tag=CC --mode=compile ${CC} -c +LINK=libtool --tag=CC --mode=link ${CC} + CFLAGS=`pkg-config libgvc --cflags` -Wall -g -O2 -LDFLAGS=`pkg-config libgvc --libs` +LDFLAGS=`pkg-config libgvc --libs` -export-dynamic -dlpreopen self -export-symbols-regex '.*_LTX_library' all: dot demo simple -dot: dot.o builtins.o +dot: dot.lo builtins.lo + ${LINK} ${LDFLAGS} -o $@ dot.lo builtins.lo + +dot.lo: dot.c + ${COMPILE} ${CFLAGS} -o $@ dot.c + +demo: demo.lo builtins.lo + ${LINK} ${LDFLAGS} -o $@ demo.lo builtins.lo + +demo.lo: demo.c + ${COMPILE} ${CFLAGS} -o $@ demo.c + +simple: simple.lo builtins.lo + ${LINK} ${LDFLAGS} -o $@ simple.lo builtins.lo -demo: demo.o builtins.o +simple.lo: simple.c + ${COMPILE} ${CFLAGS} -o $@ simple.c -simple: simple.o builtins.o +builtins.lo: builtins.c + ${COMPILE} ${CFLAGS} -o $@ builtins.c clean: - rm -rf *.o dot demo simple *.png + rm -rf *.o *.lo .libs dot demo simple *.png -- 2.40.0