7b8a51bab86bba13506b846ee3cd83521feb4965
[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 if cc_is_gcc
15 AM_CFLAGS=-Wall -W -Wno-uninitialized -Wwrite-strings -Wstrict-prototypes \
16 -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes 
17 endif
18
19 CLEANFILES =  $(q_sources_c) version.c
20 DISTCLEANFILES = foo 
21 MAINTAINERCLEANFILES = Makefile.in
22 EXTRA_DIST = $(q_sources_q) q2c.c
23 ETAGS_ARGS = -l c $(q_sources_c)
24 SUFFIXES = .q
25
26 $(q_sources_c): q2c$(EXEEXT)
27 .q.c:
28         ./q2c $< $@
29
30 q_sources_c = correlations.c crosstabs.c descript.c file-handle.c       \
31 frequencies.c list.c means.c set.c t-test.c
32
33 q_sources_q = correlations.q crosstabs.q descript.q file-handle.q       \
34 frequencies.q list.q means.q set.q t-test.q
35
36 pspp_SOURCES = $(q_sources_c) \
37 aggregate.c algorithm.c algorithm.h alloc.c alloc.h     \
38 apply-dict.c ascii.c autorecode.c bitvector.h   \
39 cmdline.c cmdline.h command.c command.def command.h compute.c           \
40 count.c data-in.c data-in.h data-list.c data-list.h \
41 data-out.c debug-print.h devind.c devind.h dfm.c dfm.h  \
42 dictionary.c do-if.c do-ifP.h error.c error.h expr-evl.c expr-opt.c     \
43 expr-prs.c expr.h exprP.h file-handle.h file-type.c     \
44 filename.c filename.h flip.c font.h format.c format.def format.h        \
45 formats.c get.c getline.c getline.h glob.c glob.h               \
46 groff-font.c hash.c hash.h heap.c heap.h html.c htmlP.h include.c       \
47 inpt-pgm.c lexer.c lexer.h levene.c levene.h \
48 log.h loop.c magic.c magic.h main.c     \
49 main.h matrix-data.c matrix.c matrix.h mis-val.c misc.c misc.h  \
50 modify-vars.c numeric.c output.c output.h pfm-read.c pfm-write.c pfm.h  \
51 pool.c pool.h postscript.c print.c random.c random.h recode.c           \
52 rename-vars.c repeat.c repeat.h sample.c sel-if.c  settings.h   \
53 sfm-read.c sfm-write.c sfm.h sfmP.h som.c som.h sort.c sort.h           \
54 split-file.c stat.h stats.c stats.h str.c str.h sysfile-info.c tab.c    \
55 tab.h temporary.c title.c t-test.h val.h val-labs.c value-labels.c      \
56 value-labels.h var-labs.c var.h vars-atr.c vars-prs.c vector.c          \
57 version.c version.h vfm.c vfm.h vfmP.h weight.c 
58
59 pspp_LDADD =    ../lib/julcal/libjulcal.a               \
60         ../lib/misc/libmisc.a                   \
61         ../lib/dcdflib/libdcdflib.a             \
62         @LIBINTL@
63
64 version.c:
65         echo "#include <config.h>" > version.c
66         echo "#include \"version.h\"" > version.c
67         echo "const char bare_version[] = \"@VERSION@\";" >> version.c
68         echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> version.c
69         echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
70 (`date`).\";" >> version.c
71         echo "const char host_system[] = \"$(host_triplet)\";" >> version.c
72         echo "const char build_system[] = \"$(build_triplet)\";" >> version.c
73         echo "const char default_config_path[] =\
74 \"~/.pspp:$(pkgsysconfdir)\";" >> version.c
75         echo "const char include_path[] =\
76 \"./:~/.pspp/include:$(pkgdatadir)\";" >> version.c
77         echo "const char groff_font_path[] = \"~/.pspp/font:\" \\" >> version.c
78         echo "  \"$(pkgdatadir)/font:\" \\" >> version.c
79         echo "  \"/usr/local/lib/groff/font:\" \\" >> version.c
80         echo "  \"/usr/lib/groff/font:\" \\" >> version.c
81         echo "  \"/usr/local/share/groff/font:\" \\" >> version.c
82         echo "  \"/usr/share/groff/font\";" >> version.c
83         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> version.c
84 \f
85
86 noinst_PROGRAMS = q2c
87 q2c_SOURCES = q2c.c