1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
4 noinst_LIBRARIES += src/libpspp/libpspp.a
6 src_libpspp_libpspp_a_SOURCES = \
11 src/libpspp/assertion.h \
14 src/libpspp/bit-vector.h \
15 src/libpspp/legacy-encoding.c \
16 src/libpspp/legacy-encoding.h \
17 src/libpspp/copyleft.c \
18 src/libpspp/copyleft.h \
19 src/libpspp/compiler.h \
21 src/libpspp/float-format.c \
22 src/libpspp/float-format.h \
23 src/libpspp/freaderror.c \
24 src/libpspp/freaderror.h \
33 src/libpspp/integer-format.c \
34 src/libpspp/integer-format.h \
35 src/libpspp/msg-locator.c \
36 src/libpspp/msg-locator.h \
47 src/libpspp/syntax-gen.c \
48 src/libpspp/syntax-gen.h \
49 src/libpspp/message.c \
50 src/libpspp/message.h \
51 src/libpspp/start-date.c \
52 src/libpspp/start-date.h \
55 src/libpspp/verbose-msg.c \
56 src/libpspp/verbose-msg.h \
59 DISTCLEANFILES+=src/libpspp/version.c
61 src_libpspp_libpspp_a_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
63 nodist_src_libpspp_libpspp_a_SOURCES = src/libpspp/version.c
65 src/libpspp/version.c: $(top_srcdir)/AUTHORS
66 @$(top_srcdir)/mkinstalldirs src/libpspp
67 echo "/* -*- mode: c; buffer-read-only: t -*-" > $@
68 echo " Generated by src/libpspp/automake.mk --- Do not edit. */">> $@
69 echo "#include \"version.h\"" >> $@
70 echo "const char bare_version[] = \"@VERSION@\";" >> $@
71 echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> $@
72 echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
74 echo "const char host_system[] = \"$(host_triplet)\";" >> $@
75 echo "const char build_system[] = \"$(build_triplet)\";" >> $@
76 echo "const char default_config_path[] =\
77 \"~/.pspp:$(pkgsysconfdir)\";" >> $@
78 echo "const char include_path[] =\
79 \"./:~/.pspp/include:$(pkgdatadir)\";" >> $@
80 echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@
81 echo "const char *const authors[] = {" >> $@
82 sed -e 's/^/ \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS >> $@