1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
4 noinst_LTLIBRARIES += src/libpspp/libpspp.la
6 src_libpspp_libpspp_la_SOURCES = \
11 src/libpspp/assertion.h \
12 src/libpspp/bit-vector.h \
15 src/libpspp/compiler.h \
16 src/libpspp/copyleft.c \
17 src/libpspp/copyleft.h \
20 src/libpspp/float-format.c \
21 src/libpspp/float-format.h \
22 src/libpspp/freaderror.c \
23 src/libpspp/freaderror.h \
26 src/libpspp/hash-functions.c \
27 src/libpspp/hash-functions.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 \
46 src/libpspp/message.c \
47 src/libpspp/message.h \
50 src/libpspp/msg-locator.c \
51 src/libpspp/msg-locator.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 \
68 src/libpspp/verbose-msg.c \
69 src/libpspp/verbose-msg.h \
72 DISTCLEANFILES+=src/libpspp/version.c
74 src_libpspp_libpspp_la_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
76 nodist_src_libpspp_libpspp_la_SOURCES = src/libpspp/version.c
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.">> $@
83 echo " The following line is for the benefit of the perl module" >>$@
84 echo "\$$VERSION='"@VERSION@"';" >> $@
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@ \
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 >> $@
103 EXTRA_DIST += src/libpspp/OChangeLog