c8368e8c985c36d91d151e89bf98681b4a677f9a
[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/abt.c \
8         src/libpspp/abt.h \
9         src/libpspp/array.c \
10         src/libpspp/array.h \
11         src/libpspp/assertion.h \
12         src/libpspp/alloc.c \
13         src/libpspp/alloc.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 \
20         src/libpspp/deque.h \
21         src/libpspp/float-format.c \
22         src/libpspp/float-format.h \
23         src/libpspp/freaderror.c \
24         src/libpspp/freaderror.h \
25         src/libpspp/getl.h \
26         src/libpspp/getl.c \
27         src/libpspp/hash.c \
28         src/libpspp/hash.h \
29         src/libpspp/heap.c \
30         src/libpspp/heap.h \
31         src/libpspp/i18n.c \
32         src/libpspp/i18n.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 \
37         src/libpspp/ll.c \
38         src/libpspp/ll.h \
39         src/libpspp/llx.c \
40         src/libpspp/llx.h \
41         src/libpspp/magic.c \
42         src/libpspp/magic.h \
43         src/libpspp/misc.c \
44         src/libpspp/misc.h \
45         src/libpspp/pool.c \
46         src/libpspp/pool.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 \
53         src/libpspp/str.c \
54         src/libpspp/str.h \
55         src/libpspp/verbose-msg.c \
56         src/libpspp/verbose-msg.h \
57         src/libpspp/version.h 
58
59 DISTCLEANFILES+=src/libpspp/version.c
60
61 src_libpspp_libpspp_a_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
62
63 nodist_src_libpspp_libpspp_a_SOURCES = src/libpspp/version.c
64
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@ \
73 (`date`).\";" >> $@
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 >> $@
83         echo "0 };" >> $@
84