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