1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
4 noinst_LIBRARIES += src/libpspp/libpspp.a
6 src_libpspp_libpspp_a_SOURCES = \
9 src/libpspp/assertion.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 \
28 src/libpspp/integer-format.c \
29 src/libpspp/integer-format.h \
30 src/libpspp/msg-locator.c \
31 src/libpspp/msg-locator.h \
42 src/libpspp/message.c \
43 src/libpspp/message.h \
44 src/libpspp/start-date.c \
45 src/libpspp/start-date.h \
48 src/libpspp/verbose-msg.c \
49 src/libpspp/verbose-msg.h \
52 DISTCLEANFILES+=src/libpspp/version.c
54 src_libpspp_libpspp_a_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
56 nodist_src_libpspp_libpspp_a_SOURCES = src/libpspp/version.c
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@ \
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\";" >> $@