128034d65f661fd6149188b420c05acfd10d74bc
[pspp-builds.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 # PSPP
4
5 include $(top_srcdir)/src/Make.build
6
7 SUBDIRS = expressions
8
9 # If you change this, you must also change the corresponding line in 
10 # config/Makefile.am
11 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
12
13 bin_PROGRAMS = pspp
14
15 DISTCLEANFILES = foo 
16 MAINTAINERCLEANFILES = Makefile.in
17 EXTRA_DIST = $(q_sources_q) q2c.c
18 ETAGS_ARGS = -l c $(q_sources_c)
19 SUFFIXES = .q
20
21 $(q_sources_c): q2c$(EXEEXT)
22 .q.c:
23         ./q2c $< $@
24
25 q_sources_c = correlations.c crosstabs.c examine.c file-handle.c        \
26 frequencies.c list.c means.c oneway.c set.c  t-test.c 
27
28 q_sources_q = correlations.q crosstabs.q examine.q file-handle.q        \
29 frequencies.q list.q means.q oneway.q set.q  t-test.q
30
31 if WITHCHARTS
32 chart_sources = barchart.c \
33         box-whisker.c \
34         cartesian.c \
35         plot-chart.c \
36         plot-hist.c \
37         piechart.c 
38 else
39 chart_sources = dummy-chart.c
40 endif
41
42 pspp_SOURCES = $(q_sources_c) $(chart_sources) \
43 aggregate.c algorithm.c algorithm.h     \
44 alloc.c alloc.h apply-dict.c ascii.c autorecode.c bitvector.h           \
45 calendar.c calendar.h case.c case.h casefile.c casefile.h chart.c       \
46 chart.h cmdline.c cmdline.h command.c command.def \
47 command.h compute.c copyleft.c copyleft.h count.c data-in.c data-in.h   \
48 data-list.c data-list.h data-out.c date.c debug-print.h descript.c      \
49 devind.c devind.h dfm-read.c dfm-read.h dfm-write.c dfm-write.h \
50 dictionary.c dictionary.h do-if.c do-ifP.h error.c \
51 error.h factor_stats.c factor_stats.h file-handle.h     \
52 file-type.c filename.c filename.h flip.c font.h format.c format.def     \
53 format.h formats.c get.c getline.c getline.h glob.c glob.h              \
54 groff-font.c group.c group.h group_proc.h \
55 hash.c hash.h histogram.c histogram.h \
56 html.c htmlP.h include.c inpt-pgm.c lexer.c lexer.h levene.c levene.h \
57 linked-list.c linked-list.h log.h loop.c magic.c magic.h main.c main.h  \
58 matrix-data.c mis-val.c misc.c misc.h modify-vars.c                     \
59 moments.c moments.h numeric.c output.c output.h \
60 percentiles.c percentiles.h permissions.c \
61 pfm-read.c pfm-read.h   \
62 pfm-write.c pfm-write.h \
63 pool.c pool.h postscript.c print.c recode.c     \
64 rename-vars.c repeat.c repeat.h sample.c sel-if.c settings.h            \
65 sfm-read.c sfm-read.h sfm-write.c sfm-write.h sfmP.h som.c som.h        \
66 sort.c sort.h split-file.c str.c str.h subclist.c subclist.h \
67 sysfile-info.c tab.c tab.h temporary.c stat.h mkfile.c mkfile.h \
68 title.c  val.h val-labs.c value-labels.c value-labels.h         \
69 var-labs.c var.h vars-atr.c vars-prs.c vector.c version.h       \
70 vfm.c vfm.h vfmP.h weight.c 
71
72
73 pspp_LDADD = \
74         ../lib/misc/libmisc.a                   \
75         expressions/libexpressions.a            \
76         -lplot \
77         @LIBINTL@
78
79 nodist_pspp_SOURCES = version.c
80
81 version.c:
82         echo "#include <config.h>" > version.c
83         echo "#include \"version.h\"" > version.c
84         echo "const char bare_version[] = \"@VERSION@\";" >> version.c
85         echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> version.c
86         echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
87 (`date`).\";" >> version.c
88         echo "const char host_system[] = \"$(host_triplet)\";" >> version.c
89         echo "const char build_system[] = \"$(build_triplet)\";" >> version.c
90         echo "const char default_config_path[] =\
91 \"~/.pspp:$(pkgsysconfdir)\";" >> version.c
92         echo "const char include_path[] =\
93 \"./:~/.pspp/include:$(pkgdatadir)\";" >> version.c
94         echo "const char groff_font_path[] = \"~/.pspp/font:\" \\" >> version.c
95         echo "  \"$(pkgdatadir)/font:\" \\" >> version.c
96         echo "  \"/usr/local/lib/groff/font:\" \\" >> version.c
97         echo "  \"/usr/lib/groff/font:\" \\" >> version.c
98         echo "  \"/usr/local/share/groff/font:\" \\" >> version.c
99         echo "  \"/usr/share/groff/font\";" >> version.c
100         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> version.c
101 \f
102
103 noinst_PROGRAMS = q2c
104 q2c_SOURCES = q2c.c