Separate settings and the SET command, for modularity.
[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 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 =                                   \
25         correlations.c                          \
26         crosstabs.c                             \
27         examine.c                               \
28         file-handle.c                           \
29         frequencies.c                           \
30         list.c                                  \
31         means.c                                 \
32         oneway.c                                \
33         rank.c                                  \
34         regression.c                            \
35         set.c                                   \
36         t-test.c
37
38 CLEANFILES=$(q_sources_c)
39 DISTCLEANFILES=version.c
40
41 q_sources_q =                                   \
42         correlations.q                          \
43         crosstabs.q                             \
44         examine.q                               \
45         file-handle.q                           \
46         frequencies.q                           \
47         list.q                                  \
48         means.q                                 \
49         oneway.q                                \
50         rank.q                                  \
51         regression.q                            \
52         set.q                                   \
53         t-test.q
54
55 if WITHCHARTS
56 chart_sources =                                 \
57         barchart.c                              \
58         box-whisker.c                           \
59         cartesian.c                             \
60         plot-chart.c                            \
61         plot-hist.c                             \
62         piechart.c 
63 else
64 chart_sources = dummy-chart.c
65 endif
66
67 pspp_SOURCES =                                  \
68         $(q_sources_c)                          \
69         $(chart_sources)                        \
70         aggregate.c                             \
71         algorithm.c                             \
72         algorithm.h                             \
73         alloc.c                                 \
74         alloc.h                                 \
75         apply-dict.c                            \
76         ascii.c                                 \
77         autorecode.c                            \
78         bitvector.h                             \
79         calendar.c                              \
80         calendar.h                              \
81         case.c                                  \
82         case.h                                  \
83         casefile.c                              \
84         casefile.h                              \
85         cat.c                                   \
86         cat.h                                   \
87         cat-routines.h                          \
88         chart.c                                 \
89         chart.h                                 \
90         ctl-stack.c                             \
91         ctl-stack.h                             \
92         cmdline.c                               \
93         cmdline.h                               \
94         command.c                               \
95         command.def                             \
96         command.h                               \
97         compute.c                               \
98         copyleft.c                              \
99         copyleft.h                              \
100         count.c                                 \
101         data-in.c                               \
102         data-in.h                               \
103         data-list.c                             \
104         data-list.h                             \
105         data-out.c                              \
106         date.c                                  \
107         debug-print.h                           \
108         descript.c                              \
109         design-matrix.h                         \
110         design-matrix.c                         \
111         dfm-read.c                              \
112         dfm-read.h                              \
113         dfm-write.c                             \
114         dfm-write.h                             \
115         dictionary.c                            \
116         dictionary.h                            \
117         do-if.c                                 \
118         echo.c                                  \
119         error.c                                 \
120         error.h                                 \
121         factor_stats.c                          \
122         factor_stats.h                          \
123         file-handle-def.c                       \
124         file-handle-def.h                       \
125         file-handle.h                           \
126         file-type.c                             \
127         filename.c                              \
128         filename.h                              \
129         flip.c                                  \
130         font.h                                  \
131         format.c                                \
132         format-prs.c                            \
133         format.def                              \
134         format.h                                \
135         formats.c                               \
136         get.c                                   \
137         getl.c                                  \
138         getl.h                                  \
139         glob.c                                  \
140         glob.h                                  \
141         groff-font.c                            \
142         group.c                                 \
143         group.h                                 \
144         group_proc.h                            \
145         hash.c                                  \
146         hash.h                                  \
147         histogram.c                             \
148         histogram.h                             \
149         html.c                                  \
150         htmlP.h                                 \
151         include.c                               \
152         inpt-pgm.c                              \
153         lexer.c                                 \
154         lexer.h                                 \
155         lex-def.h                               \
156         lex-def.c                               \
157         levene.c                                \
158         levene.h                                \
159         linked-list.c                           \
160         linked-list.h                           \
161         log.h                                   \
162         loop.c                                  \
163         magic.c                                 \
164         magic.h                                 \
165         main.c                                  \
166         main.h                                  \
167         matrix-data.c                           \
168         mis-val.c                               \
169         misc.c                                  \
170         misc.h                                  \
171         missing-values.c                        \
172         missing-values.h                        \
173         modify-vars.c                           \
174         moments.c                               \
175         moments.h                               \
176         numeric.c                               \
177         output.c                                \
178         output.h                                \
179         percentiles.c                           \
180         percentiles.h                           \
181         permissions.c                           \
182         pfm-read.c                              \
183         pfm-read.h                              \
184         pfm-write.c                             \
185         pfm-write.h                             \
186         pool.c                                  \
187         pool.h                                  \
188         postscript.c                            \
189         print.c                                 \
190         range-prs.c                             \
191         range-prs.h                             \
192         recode.c                                \
193         rename-vars.c                           \
194         repeat.c                                \
195         repeat.h                                \
196         sample.c                                \
197         sel-if.c                                \
198         settings.c                              \
199         settings.h                              \
200         sfm-read.c                              \
201         sfm-read.h                              \
202         sfm-write.c                             \
203         sfm-write.h                             \
204         sfmP.h                                  \
205         som.c                                   \
206         som.h                                   \
207         sort.c                                  \
208         sort.h                                  \
209         sort-prs.c                              \
210         sort-prs.h                              \
211         split-file.c                            \
212         str.c                                   \
213         str.h                                   \
214         subclist.c                              \
215         subclist.h                              \
216         sysfile-info.c                          \
217         tab.c                                   \
218         tab.h                                   \
219         temporary.c                             \
220         mkfile.c                                \
221         mkfile.h                                \
222         title.c                                 \
223         val.h                                   \
224         val-labs.c                              \
225         value-labels.c                          \
226         value-labels.h                          \
227         var-display.c                           \
228         var-labs.c                              \
229         var.h                                   \
230         vars-atr.c                              \
231         vars-prs.c                              \
232         vector.c                                \
233         version.h                               \
234         vfm.c                                   \
235         vfm.h                                   \
236         vfmP.h                                  \
237         weight.c
238
239 pspp_LDADD =                                    \
240         expressions/libexpressions.a            \
241         ../lib/gsl-extras/libgsl-extras.a       \
242         ../lib/linreg/liblinreg.a               \
243         ../gl/libgl.a                           \
244         @LIBINTL@
245
246 nodist_pspp_SOURCES = version.c
247
248 version.c:
249         echo "#include <config.h>" > version.c
250         echo "#include \"version.h\"" > version.c
251         echo "const char bare_version[] = \"@VERSION@\";" >> version.c
252         echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> version.c
253         echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
254 (`date`).\";" >> version.c
255         echo "const char host_system[] = \"$(host_triplet)\";" >> version.c
256         echo "const char build_system[] = \"$(build_triplet)\";" >> version.c
257         echo "const char default_config_path[] =\
258 \"~/.pspp:$(pkgsysconfdir)\";" >> version.c
259         echo "const char include_path[] =\
260 \"./:~/.pspp/include:$(pkgdatadir)\";" >> version.c
261         echo "const char groff_font_path[] = \"~/.pspp/font:\" \\" >> version.c
262         echo "  \"$(pkgdatadir)/font:\" \\" >> version.c
263         echo "  \"/usr/local/lib/groff/font:\" \\" >> version.c
264         echo "  \"/usr/lib/groff/font:\" \\" >> version.c
265         echo "  \"/usr/local/share/groff/font:\" \\" >> version.c
266         echo "  \"/usr/share/groff/font\";" >> version.c
267         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> version.c
268
269 noinst_PROGRAMS = q2c
270 q2c_SOURCES = q2c.c