1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
5 # If you change this, you must also change the corresponding line in
7 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
13 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/lib \
19 AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \
20 -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes \
29 AM_CFLAGS+=-D__MSDOS__
34 CLEANFILES = $(q_sources_c) version.c
36 MAINTAINERCLEANFILES = Makefile.in
37 EXTRA_DIST = $(q_sources_q) q2c.c
38 ETAGS_ARGS = -l c $(q_sources_c)
41 $(q_sources_c): q2c$(EXEEXT)
45 q_sources_c = correlations.c crosstabs.c file-handle.c \
46 frequencies.c list.c means.c set.c t-test.c
48 q_sources_q = correlations.q crosstabs.q file-handle.q \
49 frequencies.q list.q means.q set.q t-test.q
51 pspp_SOURCES = $(q_sources_c) aggregate.c algorithm.c algorithm.h \
52 alloc.c alloc.h apply-dict.c ascii.c autorecode.c bitvector.h \
53 casefile.c casefile.h cmdline.c cmdline.h command.c command.def \
54 command.h compute.c copyleft.c copyleft.h count.c data-in.c data-in.h \
55 data-list.c data-list.h data-out.c date.c debug-print.h descript.c \
56 devind.c devind.h dfm.c dfm.h dictionary.c do-if.c do-ifP.h error.c \
57 error.h expr-evl.c expr-opt.c expr-prs.c expr.h exprP.h expr.def \
59 file-type.c filename.c filename.h flip.c font.h format.c format.def \
60 format.h formats.c get.c getline.c getline.h glob.c glob.h \
61 groff-font.c hash.c hash.h html.c htmlP.h include.c inpt-pgm.c lexer.c \
62 lexer.h levene.c levene.h log.h loop.c magic.c magic.h main.c main.h \
63 matrix-data.c mis-val.c misc.c misc.h modify-vars.c \
64 moments.c moments.h numeric.c output.c output.h pfm-read.c pfm-write.c \
65 pfm.h pool.c pool.h postscript.c print.c random.c random.h recode.c \
66 rename-vars.c repeat.c repeat.h sample.c sel-if.c settings.h \
67 sfm-read.c sfm-write.c sfm.h sfmP.h som.c som.h sort.c sort.h \
68 split-file.c str.c str.h sysfile-info.c tab.c tab.h temporary.c \
70 title.c t-test.h val.h val-labs.c value-labels.c value-labels.h \
71 var-labs.c var.h vars-atr.c vars-prs.c vector.c version.c version.h \
72 vfm.c vfm.h vfmP.h weight.c workspace.c workspace.h
74 pspp_LDADD = ../lib/julcal/libjulcal.a \
75 ../lib/misc/libmisc.a \
79 echo "#include <config.h>" > version.c
80 echo "#include \"version.h\"" > version.c
81 echo "const char bare_version[] = \"@VERSION@\";" >> version.c
82 echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> version.c
83 echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
84 (`date`).\";" >> version.c
85 echo "const char host_system[] = \"$(host_triplet)\";" >> version.c
86 echo "const char build_system[] = \"$(build_triplet)\";" >> version.c
87 echo "const char default_config_path[] =\
88 \"~/.pspp:$(pkgsysconfdir)\";" >> version.c
89 echo "const char include_path[] =\
90 \"./:~/.pspp/include:$(pkgdatadir)\";" >> version.c
91 echo "const char groff_font_path[] = \"~/.pspp/font:\" \\" >> version.c
92 echo " \"$(pkgdatadir)/font:\" \\" >> version.c
93 echo " \"/usr/local/lib/groff/font:\" \\" >> version.c
94 echo " \"/usr/lib/groff/font:\" \\" >> version.c
95 echo " \"/usr/local/share/groff/font:\" \\" >> version.c
96 echo " \"/usr/share/groff/font\";" >> version.c
97 echo "const char locale_dir[] = \"$(datadir)/locale\";" >> version.c
100 noinst_PROGRAMS = q2c