summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile11
1 files changed, 9 insertions, 2 deletions
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