diff options
author | scop <scop@e10066b5-e1e2-0310-b819-94efdf66514b> | 2008-01-01 14:54:17 +0000 |
---|---|---|
committer | scop <scop@e10066b5-e1e2-0310-b819-94efdf66514b> | 2008-01-01 14:54:17 +0000 |
commit | b46bf7dd9992ce3dd6227418336b35bceeadae51 (patch) | |
tree | 234e0d5e7b9f1b30b4c36051c3c97af1edf6d639 | |
parent | a074c85806072a4401433313396edf1925c47366 (diff) | |
download | vdr-plugin-muggle-b46bf7dd9992ce3dd6227418336b35bceeadae51.tar.gz vdr-plugin-muggle-b46bf7dd9992ce3dd6227418336b35bceeadae51.tar.bz2 |
Apply db specific cflags only for the db object.
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@983 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r-- | Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -89,18 +89,18 @@ PLAYLIBS = -lmad $(shell taglib-config --libs) MILIBS = $(shell taglib-config --libs) ifdef HAVE_SQLITE -INCLUDES += $(shell pkg-config --cflags sqlite3) -SQLLIBS += $(shell pkg-config --libs sqlite3) DB_OBJ = mg_db_gd_sqlite.o +DB_CFLAGS = $(shell pkg-config --cflags sqlite3) +SQLLIBS = $(shell pkg-config --libs sqlite3) DEFINES += -DHAVE_SQLITE endif ifdef HAVE_MYSQL -INCLUDES += $(shell mysql_config --cflags) DB_OBJ = mg_db_gd_mysql.o +DB_CFLAGS = $(shell mysql_config --cflags) DEFINES += -DHAVE_MYSQL ifdef HAVE_ONLY_SERVER -SQLLIBS = $(shell mysql_config --libs) +SQLLIBS = $(shell mysql_config --libs) DEFINES += -DHAVE_ONLY_SERVER else SQLLIBS = $(shell mysql_config --libmysqld-libs) @@ -108,9 +108,9 @@ endif endif ifdef HAVE_PG -INCLUDES += -I$(shell pg_config --includedir) -SQLLIBS = -L$(shell pg_config --libdir) -lpq DB_OBJ = mg_db_gd_pg.o +DB_CFLAGS = -I$(shell pg_config --includedir) +SQLLIBS = -L$(shell pg_config --libdir) -lpq DEFINES += -DHAVE_PG endif @@ -153,6 +153,8 @@ $(DEPFILE): Makefile %.o: %.c $(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) -c $< +$(DB_OBJ): CXXFLAGS += $(DB_CFLAGS) + mg_tables.h: scripts/genres.txt scripts/iso_639.xml scripts/musictypes.txt scripts/sources.txt scripts/gentables > $@ |