From ca71c83e5d68f7995442c5c3a9f0d61fed1d2224 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 9 May 2014 01:05:21 +0200 Subject: Version 0.1.2 --- lib/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/Makefile') diff --git a/lib/Makefile b/lib/Makefile index f27782b..0716ea6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,7 +1,14 @@ +BASELIBS = -lrt -lz -lmysqlclient -lcurl -luuid +BASELIBS += $(shell mysql_config --libs) + +CFLAGS += $(shell mysql_config --include) all: - g++ -ggdb -DPLGDIR='"."' test.c common.c config.c db.c tabledef.c -lrt -lz -lmysqlclient -o t + g++ -ggdb -DPLGDIR='"."' $(CFLAGS) test.c dbdict.c common.c config.c db.c tabledef.c $(BASELIBS) -o t + +demo: demo.c + g++ -ggdb -DUSEUUID -DPLGDIR='"."' $(CFLAGS) demo.c common.c db.c tabledef.c config.c $(BASELIBS) -o demo clean: - rm -f *.o *.a *~ core + rm -f *.o *.a *~ core demo -- cgit v1.2.3