Update build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.
[pspp-builds.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 # PSPP
4
5 bin_PROGRAMS = pspp
6
7 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/lib      \
8 -I$(top_srcdir)/intl
9
10 DISTCLEANFILES = foo $(q_sources_c)
11 MAINTAINERCLEANFILES = Makefile.in
12 EXTRA_DIST = $(q_sources_q) q2c.c
13 ETAGS_ARGS = -l c $(q_sources_c)
14 SUFFIXES = .q
15
16 $(q_sources_c): q2c
17 .q.c:
18         ./q2c $< $@
19
20 q_sources_c = correlations.c crosstabs.c descript.c file-handle.c       \
21 frequencies.c list.c means.c set.c t-test.c
22
23 q_sources_q = correlations.q crosstabs.q descript.q file-handle.q       \
24 frequencies.q list.q means.q set.q t-test.q
25
26 pspp_SOURCES = aggregate.c alloc.c alloc.h apply-dict.c approx.h        \
27 ascii.c autorecode.c avl.c avl.h bitvector.h cases.c cases.h cmdline.c  \
28 command.c command.def command.h compute.c correlations.c count.c        \
29 crosstabs.c data-in.c data-in.h data-list.c data-out.c debug-print.h    \
30 descript.c dfm.c dfm.h do-if.c do-ifP.h error.c error.h expr-evl.c      \
31 expr-opt.c expr-prs.c expr.h exprP.h file-handle.c file-handle.h        \
32 file-type.c filename.c filename.h flip.c font.h format.c format.def     \
33 format.h formats.c frequencies.c frequencies.g get.c getline.c          \
34 getline.h glob.c groff-font.c hash.c hash.h heap.c heap.h html.c        \
35 htmlP.h include.c inpt-pgm.c inpt-pgm.h lexer.c lexer.h list.c log.h    \
36 loop.c magic.c magic.h main.c main.h matrix-data.c matrix.c matrix.h    \
37 means.c mis-val.c misc.c misc.h modify-vars.c numeric.c output.c        \
38 output.h pfm-read.c pfm-write.c pfm.h pool.c pool.h postscript.c        \
39 print.c random.c random.h recode.c rename-vars.c repeat.c sample.c      \
40 sel-if.c set.c settings.h sfm-read.c sfm-write.c sfm.h sfmP.h som.c     \
41 som.h sort.c sort.h split-file.c stat.h stats.c stats.h str.c str.h     \
42 sysfile-info.c tab.c tab.h temporary.c title.c t-test.c val-labs.c      \
43 var-labs.c var.h vars-atr.c vars-prs.c vector.c vector.h version.c      \
44 version.h vfm.c vfm.h vfmP.h weight.c
45
46 LDADD = ../lib/julcal/libjulcal.a               \
47         ../lib/misc/libmisc.a                   \
48         ../lib/dcdflib/libdcdflib.a             \
49         @LIBINTL@
50
51 version.c:
52         echo "#include <config.h>" > version.c
53         echo "const char bare_version[] = \"@VERSION@\";" >> version.c
54         echo "const char version[] = GNU_PACKAGE \" @VERSION@\";" >> version.c
55         echo "const char stat_version[] = GNU_PACKAGE \" @VERSION@ \
56 (`date`).\";" >> version.c
57         echo "const char host_system[] = \"$(host_triplet)\";" >> version.c
58         echo "const char build_system[] = \"$(build_triplet)\";" >> version.c
59         echo "const char default_config_path[] =\
60 \"~/.pspp:$(pkgsysconfdir)\";" >> version.c
61         echo "const char include_path[] =\
62 \"./:~/.pspp/include:$(pkgdatadir)\";" >> version.c
63         echo "const char groff_font_path[] = \"~/.pspp/font:\" \\" >> version.c
64         echo "  \"$(pkgdatadir)/font:\" \\" >> version.c
65         echo "  \"/usr/local/lib/groff/font:\" \\" >> version.c
66         echo "  \"/usr/lib/groff/font:\" \\" >> version.c
67         echo "  \"/usr/local/share/groff/font:\" \\" >> version.c
68         echo "  \"/usr/share/groff/font\";" >> version.c
69         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> version.c
70 \f
71
72 noinst_PROGRAMS = q2c
73 q2c_SOURCES = q2c.c