Make the missing value code do more work, so that its callers can do
[pspp-builds.git] / src / libpspp / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3
4 noinst_LIBRARIES += src/libpspp/libpspp.a
5
6 src_libpspp_libpspp_a_SOURCES = \
7         src/libpspp/array.c \
8         src/libpspp/array.h \
9         src/libpspp/assertion.h \
10         src/libpspp/alloc.c \
11         src/libpspp/alloc.h \
12         src/libpspp/bit-vector.h \
13         src/libpspp/legacy-encoding.c \
14         src/libpspp/legacy-encoding.h \
15         src/libpspp/copyleft.c \
16         src/libpspp/copyleft.h \
17         src/libpspp/compiler.h \
18         src/libpspp/float-format.c \
19         src/libpspp/float-format.h \
20         src/libpspp/freaderror.c \
21         src/libpspp/freaderror.h \
22         src/libpspp/getl.h \
23         src/libpspp/getl.c \
24         src/libpspp/hash.c \
25         src/libpspp/hash.h \
26         src/libpspp/i18n.c \
27         src/libpspp/i18n.h \
28         src/libpspp/integer-format.c \
29         src/libpspp/integer-format.h \
30         src/libpspp/msg-locator.c \
31         src/libpspp/msg-locator.h \
32         src/libpspp/ll.c \
33         src/libpspp/ll.h \
34         src/libpspp/llx.c \
35         src/libpspp/llx.h \
36         src/libpspp/magic.c \
37         src/libpspp/magic.h \
38         src/libpspp/misc.c \
39         src/libpspp/misc.h \
40         src/libpspp/pool.c \
41         src/libpspp/pool.h \
42         src/libpspp/message.c \
43         src/libpspp/message.h \
44         src/libpspp/start-date.c \
45         src/libpspp/start-date.h \
46         src/libpspp/str.c \
47         src/libpspp/str.h \
48         src/libpspp/verbose-msg.c \
49         src/libpspp/verbose-msg.h \
50         src/libpspp/version.h 
51
52 DISTCLEANFILES+=src/libpspp/version.c
53
54 src_libpspp_libpspp_a_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
55
56 nodist_src_libpspp_libpspp_a_SOURCES = src/libpspp/version.c
57
58 src/libpspp/version.c:
59         @$(top_srcdir)/mkinstalldirs  src/libpspp
60         echo "#include <config.h>" > $@
61         echo "#include \"version.h\"" > $@
62         echo "const char bare_version[] = \"@VERSION@\";" >> $@
63         echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> $@
64         echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
65 (`date`).\";" >> $@
66         echo "const char host_system[] = \"$(host_triplet)\";" >> $@
67         echo "const char build_system[] = \"$(build_triplet)\";" >> $@
68         echo "const char default_config_path[] =\
69 \"~/.pspp:$(pkgsysconfdir)\";" >> $@
70         echo "const char include_path[] =\
71 \"./:~/.pspp/include:$(pkgdatadir)\";" >> $@
72         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@
73
74