Update to newest gnulib.
[pspp] / src / ui / terminal / automake.mk
1 # PSPP - a program for statistical analysis.
2 # Copyright (C) 2017 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 #
17 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
18
19 noinst_LTLIBRARIES += src/ui/terminal/libui.la
20
21 src_ui_terminal_libui_la_SOURCES = \
22         src/ui/terminal/main.c \
23         src/ui/terminal/terminal-opts.c \
24         src/ui/terminal/terminal-opts.h \
25         src/ui/terminal/terminal-reader.c \
26         src/ui/terminal/terminal-reader.h
27
28 src_ui_terminal_libui_la_CFLAGS = $(NCURSES_CFLAGS)
29
30 bin_PROGRAMS += src/ui/terminal/pspp
31
32 src_ui_terminal_pspp_SOURCES =
33
34 src_ui_terminal_pspp_LDADD = \
35         src/ui/terminal/libui.la \
36         src/ui/libuicommon.la \
37         src/libpspp.la \
38         src/libpspp-core.la \
39         $(CAIRO_LIBS) \
40         $(NCURSES_LIBS) \
41         $(LTLIBREADLINE) \
42         $(GSL_LIBS) \
43         $(LIB_GETRANDOM)
44
45
46 src_ui_terminal_pspp_LDFLAGS = $(PSPP_LDFLAGS) $(PG_LDFLAGS)
47
48 if RELOCATABLE_VIA_LD
49 src_ui_terminal_pspp_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
50 endif