summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-05-09 01:05:21 +0200
committerlouis <louis.braun@gmx.de>2014-05-09 01:05:21 +0200
commitca71c83e5d68f7995442c5c3a9f0d61fed1d2224 (patch)
treee0497cd60f98b1a2d39839bafd03f318e978d326 /lib/Makefile
parent30008b3000e6421e6a54d0dc43a2e952e6a6617d (diff)
downloadvdr-plugin-scraper2vdr-ca71c83e5d68f7995442c5c3a9f0d61fed1d2224.tar.gz
vdr-plugin-scraper2vdr-ca71c83e5d68f7995442c5c3a9f0d61fed1d2224.tar.bz2
Version 0.1.2
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