X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmysql%2FMakefile.am;h=d3c9ee31a0175684cd6f53f92cabde61b34634be;hb=9df4cb72d3e3b914caa8e1dc451519715a360026;hp=1711e7572532896634a8b186cecb347aae18ad90;hpb=3343e64659d6e8ff5ed6a74faac7226e55fc1c55;p=oweals%2Fgnunet.git diff --git a/src/mysql/Makefile.am b/src/mysql/Makefile.am index 1711e7572..d3c9ee31a 100644 --- a/src/mysql/Makefile.am +++ b/src/mysql/Makefile.am @@ -1,4 +1,4 @@ -INCLUDES = -I$(top_srcdir)/src/include +AM_CPPFLAGS = -I$(top_srcdir)/src/include if MINGW WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols @@ -8,13 +8,14 @@ if USE_COVERAGE AM_CFLAGS = --coverage endif +if HAVE_MYSQL lib_LTLIBRARIES = libgnunetmysql.la +endif libgnunetmysql_la_SOURCES = \ mysql.c -libgnunetmysql_la_LIBADD = -lmysqlclient \ - $(top_builddir)/src/util/libgnunetutil.la +libgnunetmysql_la_LIBADD = $(MYSQL_LDFLAGS) -lmysqlclient \ + $(top_builddir)/src/util/libgnunetutil.la libgnunetmysql_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) \ -version-info 0:0:0 -