Merge 'master' into 'psppsheet'.
[pspp] / src / libpspp / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3
4 noinst_LTLIBRARIES += src/libpspp/liblibpspp.la
5
6 src_libpspp_liblibpspp_la_SOURCES = \
7         src/libpspp/abt.c \
8         src/libpspp/abt.h \
9         src/libpspp/argv-parser.c \
10         src/libpspp/argv-parser.h \
11         src/libpspp/array.c \
12         src/libpspp/array.h \
13         src/libpspp/assertion.h \
14         src/libpspp/bit-vector.h \
15         src/libpspp/bt.c \
16         src/libpspp/bt.h \
17         src/libpspp/cast.h \
18         src/libpspp/compiler.h \
19         src/libpspp/copyleft.c \
20         src/libpspp/copyleft.h \
21         src/libpspp/deque.c \
22         src/libpspp/deque.h \
23         src/libpspp/encoding-guesser.c \
24         src/libpspp/encoding-guesser.h \
25         src/libpspp/ext-array.c \
26         src/libpspp/ext-array.h \
27         src/libpspp/float-format.c \
28         src/libpspp/float-format.h \
29         src/libpspp/freaderror.c \
30         src/libpspp/freaderror.h \
31         src/libpspp/hash-functions.c \
32         src/libpspp/hash-functions.h \
33         src/libpspp/inflate.c \
34         src/libpspp/inflate.h \
35         src/libpspp/heap.c \
36         src/libpspp/heap.h \
37         src/libpspp/hmap.c \
38         src/libpspp/hmap.h \
39         src/libpspp/hmapx.c \
40         src/libpspp/hmapx.h \
41         src/libpspp/i18n.c \
42         src/libpspp/i18n.h \
43         src/libpspp/integer-format.c \
44         src/libpspp/integer-format.h \
45         src/libpspp/intern.c \
46         src/libpspp/intern.h \
47         src/libpspp/line-reader.c \
48         src/libpspp/line-reader.h \
49         src/libpspp/ll.c \
50         src/libpspp/ll.h \
51         src/libpspp/llx.c \
52         src/libpspp/llx.h \
53         src/libpspp/message.c \
54         src/libpspp/message.h \
55         src/libpspp/misc.c \
56         src/libpspp/misc.h \
57         src/libpspp/model-checker.c \
58         src/libpspp/model-checker.h \
59         src/libpspp/pool.c \
60         src/libpspp/pool.h \
61         src/libpspp/prompt.c \
62         src/libpspp/prompt.h \
63         src/libpspp/range-map.c \
64         src/libpspp/range-map.h \
65         src/libpspp/range-set.c \
66         src/libpspp/range-set.h \
67         src/libpspp/range-tower.c \
68         src/libpspp/range-tower.h \
69         src/libpspp/sparse-array.c \
70         src/libpspp/sparse-array.h \
71         src/libpspp/sparse-xarray.c \
72         src/libpspp/sparse-xarray.h \
73         src/libpspp/start-date.c \
74         src/libpspp/start-date.h \
75         src/libpspp/string-array.c \
76         src/libpspp/string-array.h \
77         src/libpspp/string-map.c \
78         src/libpspp/string-map.h \
79         src/libpspp/string-set.c \
80         src/libpspp/string-set.h \
81         src/libpspp/stringi-map.c \
82         src/libpspp/stringi-map.h \
83         src/libpspp/stringi-set.c \
84         src/libpspp/stringi-set.h \
85         src/libpspp/str.c \
86         src/libpspp/str.h \
87         src/libpspp/taint.c \
88         src/libpspp/taint.h \
89         src/libpspp/temp-file.c \
90         src/libpspp/temp-file.h \
91         src/libpspp/tower.c \
92         src/libpspp/tower.h \
93         src/libpspp/u8-istream.c \
94         src/libpspp/u8-istream.h \
95         src/libpspp/version.h \
96         src/libpspp/zip-private.h \
97         src/libpspp/zip-reader.c \
98         src/libpspp/zip-reader.h \
99         src/libpspp/zip-writer.c \
100         src/libpspp/zip-writer.h
101
102 DISTCLEANFILES+=src/libpspp/version.c
103
104 src_libpspp_liblibpspp_la_CPPFLAGS = \
105         -I $(top_srcdir)/src/libpspp \
106         $(AM_CPPFLAGS)
107
108 nodist_src_libpspp_liblibpspp_la_SOURCES = src/libpspp/version.c
109
110 src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile
111         @$(MKDIR_P) src/libpspp
112         echo "/*        -*- mode: c; buffer-read-only: t -*-" > $@
113         echo "   Generated by src/libpspp/automake.mk --- Do not edit.">> $@
114         echo "" >> $@
115         echo "   The following line is for the benefit of the perl module" >>$@
116         echo "\$$VERSION='$(VERSION_FOR_PERL)';" >> $@
117         echo "*/" >> $@
118         echo "#include \"version.h\"" >> $@
119         echo "const char bare_version[] = \"$(VERSION)\";" >> $@
120         echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@
121         echo "const char stat_version[] = \"GNU $(PACKAGE) $(VERSION) \
122 (`date`).\";" >> $@
123         echo "const char host_system[] = \"$(host_triplet)\";" >> $@
124         echo "const char build_system[] = \"$(build_triplet)\";" >> $@
125         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@
126         echo "const char *const authors[] = {" >> $@
127         sed -e 's/^/  \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS >> $@
128         echo "0 };" >> $@
129
130
131 EXTRA_DIST += src/libpspp/OChangeLog