added helper for handling the "view" in rps
[oweals/gnunet.git] / src / postgres / Makefile.am
index 85fac752f755c17e15a0fea2b1f38174f2aebe0a..6f37e1918634ad0787b7ca9921451e1b2223db72 100644 (file)
@@ -1,4 +1,5 @@
-AM_CPPFLAGS = -I$(top_srcdir)/src/include
+# This Makefile.am is in the public domain
+AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
 
 if MINGW
   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
@@ -8,13 +9,16 @@ if USE_COVERAGE
   AM_CFLAGS = --coverage
 endif
 
+if HAVE_POSTGRESQL
 lib_LTLIBRARIES = libgnunetpostgres.la
+endif
 
 libgnunetpostgres_la_SOURCES = \
   postgres.c
 libgnunetpostgres_la_LIBADD = -lpq \
- $(top_builddir)/src/util/libgnunetutil.la  
+ $(top_builddir)/src/util/libgnunetutil.la
 libgnunetpostgres_la_LDFLAGS = \
+ $(POSTGRESQL_LDFLAGS) \
  $(GN_LIB_LDFLAGS) \
   -version-info 0:0:0