Remove LIB_CLOSE variables from linker options.
[pspp] / src / libpspp / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3
4 noinst_LTLIBRARIES += src/libpspp/libpspp.la
5
6 src_libpspp_libpspp_la_SOURCES = \
7         src/libpspp/abt.c \
8         src/libpspp/abt.h \
9         src/libpspp/array.c \
10         src/libpspp/array.h \
11         src/libpspp/assertion.h \
12         src/libpspp/bit-vector.h \
13         src/libpspp/bt.c \
14         src/libpspp/bt.h \
15         src/libpspp/compiler.h \
16         src/libpspp/copyleft.c \
17         src/libpspp/copyleft.h \
18         src/libpspp/deque.c \
19         src/libpspp/deque.h \
20         src/libpspp/float-format.c \
21         src/libpspp/float-format.h \
22         src/libpspp/freaderror.c \
23         src/libpspp/freaderror.h \
24         src/libpspp/getl.c \
25         src/libpspp/getl.h \
26         src/libpspp/hash-functions.c \
27         src/libpspp/hash-functions.h \
28         src/libpspp/hash.c \
29         src/libpspp/hash.h \
30         src/libpspp/heap.c \
31         src/libpspp/heap.h \
32         src/libpspp/hmap.c \
33         src/libpspp/hmap.h \
34         src/libpspp/hmapx.c \
35         src/libpspp/hmapx.h \
36         src/libpspp/i18n.c \
37         src/libpspp/i18n.h \
38         src/libpspp/integer-format.c \
39         src/libpspp/integer-format.h \
40         src/libpspp/legacy-encoding.c \
41         src/libpspp/legacy-encoding.h \
42         src/libpspp/ll.c \
43         src/libpspp/ll.h \
44         src/libpspp/llx.c \
45         src/libpspp/llx.h \
46         src/libpspp/message.c \
47         src/libpspp/message.h \
48         src/libpspp/misc.c \
49         src/libpspp/misc.h \
50         src/libpspp/msg-locator.c \
51         src/libpspp/msg-locator.h \
52         src/libpspp/pool.c \
53         src/libpspp/pool.h \
54         src/libpspp/range-map.c \
55         src/libpspp/range-map.h \
56         src/libpspp/range-set.c \
57         src/libpspp/range-set.h \
58         src/libpspp/sparse-array.c \
59         src/libpspp/sparse-array.h \
60         src/libpspp/start-date.c \
61         src/libpspp/start-date.h \
62         src/libpspp/str.c \
63         src/libpspp/str.h \
64         src/libpspp/taint.c \
65         src/libpspp/taint.h \
66         src/libpspp/tower.c \
67         src/libpspp/tower.h \
68         src/libpspp/verbose-msg.c \
69         src/libpspp/verbose-msg.h \
70         src/libpspp/version.h 
71
72 DISTCLEANFILES+=src/libpspp/version.c
73
74 src_libpspp_libpspp_la_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
75
76 nodist_src_libpspp_libpspp_la_SOURCES = src/libpspp/version.c
77
78 src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile
79         @$(MKDIR_P) src/libpspp
80         echo "/*        -*- mode: c; buffer-read-only: t -*-" > $@
81         echo "   Generated by src/libpspp/automake.mk --- Do not edit.">> $@
82         echo "" >> $@
83         echo "   The following line is for the benefit of the perl module" >>$@
84         echo "\$$VERSION='"@VERSION@"';" >> $@
85         echo "*/" >> $@
86         echo "#include \"version.h\"" >> $@
87         echo "const char bare_version[] = \"@VERSION@\";" >> $@
88         echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> $@
89         echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
90 (`date`).\";" >> $@
91         echo "const char host_system[] = \"$(host_triplet)\";" >> $@
92         echo "const char build_system[] = \"$(build_triplet)\";" >> $@
93         echo "const char default_config_path[] =\
94 \"\$$HOME/.pspp:$(pkgsysconfdir)\";" >> $@
95         echo "const char include_path[] =\
96 \"./:\$$HOME/.pspp/include:$(pkgdatadir)\";" >> $@
97         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@
98         echo "const char *const authors[] = {" >> $@
99         sed -e 's/^/  \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS >> $@
100         echo "0 };" >> $@
101
102
103 EXTRA_DIST += src/libpspp/OChangeLog