Increase the chances of finding libpq if it's installed.
[pspp-builds.git] / src / ui / terminal / automake.mk
index fd426acd02dabad257deb4538c1cdbb9132317e7..57eedb29e8e727fed027148f25dca74f913c669c 100644 (file)
@@ -9,7 +9,9 @@ src_ui_terminal_libui_a_SOURCES = \
        src/ui/terminal/read-line.h \
        src/ui/terminal/main.c \
        src/ui/terminal/msg-ui.c \
-       src/ui/terminal/msg-ui.h
+       src/ui/terminal/msg-ui.h \
+       src/ui/terminal/terminal.c \
+       src/ui/terminal/terminal.h      
 
 src_ui_terminal_libui_a_CFLAGS = -DINSTALLDIR=\"$(bindir)\"
 
@@ -18,7 +20,7 @@ bin_PROGRAMS += src/ui/terminal/pspp
 
 src_ui_terminal_pspp_SOURCES =
 
-src_ui_terminal_pspp_LDFLAGS = \
+src_ui_terminal_pspp_LDADD = \
        src/ui/terminal/libui.a \
        src/language/liblanguage.a \
        src/output/charts/libcharts.a \
@@ -30,6 +32,8 @@ src_ui_terminal_pspp_LDFLAGS = \
        lib/gsl-extras/libgsl-extras.a  \
        src/data/libdata.a \
        src/libpspp/libpspp.a \
+       $(LIBXML2_LIBS) \
+       $(PG_LIBS) \
        $(LIBICONV) \
        gl/libgl.la \
        @LIBINTL@ @LIBREADLINE@
@@ -37,6 +41,8 @@ src_ui_terminal_pspp_LDFLAGS = \
 
 
 
+src_ui_terminal_pspp_LDFLAGS = $(PG_LDFLAGS)
+
 if RELOCATABLE_VIA_LD
 src_ui_terminal_pspp_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
 endif