Fix PSPP link on OpenSUSE and possibly Ubuntu 11.10.
[pspp-builds.git] / src / ui / terminal / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 noinst_LTLIBRARIES += src/ui/terminal/libui.la
4
5 src_ui_terminal_libui_la_SOURCES = \
6         src/ui/terminal/main.c \
7         src/ui/terminal/terminal-opts.c \
8         src/ui/terminal/terminal-opts.h \
9         src/ui/terminal/terminal-reader.c \
10         src/ui/terminal/terminal-reader.h \
11         src/ui/terminal/terminal.c \
12         src/ui/terminal/terminal.h
13
14 src_ui_terminal_libui_la_CFLAGS = $(NCURSES_CFLAGS)
15
16 bin_PROGRAMS += src/ui/terminal/pspp
17
18 src_ui_terminal_pspp_SOURCES =
19
20 src_ui_terminal_pspp_LDADD = \
21         src/ui/terminal/libui.la \
22         src/ui/libuicommon.la \
23         src/libpspp.la \
24         src/libpspp-core.la \
25         $(CAIRO_LIBS) \
26         $(NCURSES_LIBS) \
27         $(LIBREADLINE) \
28         $(GSL_LIBS)
29
30
31 src_ui_terminal_pspp_LDFLAGS = $(PSPP_LDFLAGS) $(PG_LDFLAGS)
32
33 if RELOCATABLE_VIA_LD
34 src_ui_terminal_pspp_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
35 endif
36
37 EXTRA_DIST += src/ui/terminal/OChangeLog