Add scratch file handles.
[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         any-reader.c                            \
76         any-reader.h                            \
77         any-writer.c                            \
78         any-writer.h                            \
79         apply-dict.c                            \
80         ascii.c                                 \
81         autorecode.c                            \
82         bitvector.h                             \
83         calendar.c                              \
84         calendar.h                              \
85         case.c                                  \
86         case.h                                  \
87         casefile.c                              \
88         casefile.h                              \
89         cat.c                                   \
90         cat.h                                   \
91         cat-routines.h                          \
92         chart.c                                 \
93         chart.h                                 \
94         ctl-stack.c                             \
95         ctl-stack.h                             \
96         cmdline.c                               \
97         cmdline.h                               \
98         command.c                               \
99         command.def                             \
100         command.h                               \
101         compute.c                               \
102         copyleft.c                              \
103         copyleft.h                              \
104         count.c                                 \
105         data-in.c                               \
106         data-in.h                               \
107         data-list.c                             \
108         data-list.h                             \
109         data-out.c                              \
110         date.c                                  \
111         debug-print.h                           \
112         descript.c                              \
113         design-matrix.h                         \
114         design-matrix.c                         \
115         dfm-read.c                              \
116         dfm-read.h                              \
117         dfm-write.c                             \
118         dfm-write.h                             \
119         dictionary.c                            \
120         dictionary.h                            \
121         do-if.c                                 \
122         echo.c                                  \
123         error.c                                 \
124         error.h                                 \
125         factor_stats.c                          \
126         factor_stats.h                          \
127         file-handle-def.c                       \
128         file-handle-def.h                       \
129         file-handle.h                           \
130         file-type.c                             \
131         filename.c                              \
132         filename.h                              \
133         flip.c                                  \
134         font.h                                  \
135         format.c                                \
136         format-prs.c                            \
137         format.def                              \
138         format.h                                \
139         formats.c                               \
140         get.c                                   \
141         getl.c                                  \
142         getl.h                                  \
143         glob.c                                  \
144         glob.h                                  \
145         groff-font.c                            \
146         group.c                                 \
147         group.h                                 \
148         group_proc.h                            \
149         hash.c                                  \
150         hash.h                                  \
151         histogram.c                             \
152         histogram.h                             \
153         html.c                                  \
154         htmlP.h                                 \
155         include.c                               \
156         inpt-pgm.c                              \
157         lexer.c                                 \
158         lexer.h                                 \
159         lex-def.h                               \
160         lex-def.c                               \
161         levene.c                                \
162         levene.h                                \
163         linked-list.c                           \
164         linked-list.h                           \
165         loop.c                                  \
166         magic.c                                 \
167         magic.h                                 \
168         main.c                                  \
169         main.h                                  \
170         matrix-data.c                           \
171         mis-val.c                               \
172         misc.c                                  \
173         misc.h                                  \
174         missing-values.c                        \
175         missing-values.h                        \
176         modify-vars.c                           \
177         moments.c                               \
178         moments.h                               \
179         numeric.c                               \
180         output.c                                \
181         output.h                                \
182         percentiles.c                           \
183         percentiles.h                           \
184         permissions.c                           \
185         pfm-read.c                              \
186         pfm-read.h                              \
187         pfm-write.c                             \
188         pfm-write.h                             \
189         pool.c                                  \
190         pool.h                                  \
191         postscript.c                            \
192         print.c                                 \
193         random.c                                \
194         random.h                                \
195         range-prs.c                             \
196         range-prs.h                             \
197         readln.c                                \
198         readln.h                                \
199         recode.c                                \
200         rename-vars.c                           \
201         regression_export.h                     \
202         repeat.c                                \
203         repeat.h                                \
204         sample.c                                \
205         sel-if.c                                \
206         settings.c                              \
207         settings.h                              \
208         sfm-read.c                              \
209         sfm-read.h                              \
210         sfm-write.c                             \
211         sfm-write.h                             \
212         sfmP.h                                  \
213         som.c                                   \
214         som.h                                   \
215         sort.c                                  \
216         sort.h                                  \
217         sort-prs.c                              \
218         sort-prs.h                              \
219         split-file.c                            \
220         str.c                                   \
221         str.h                                   \
222         subclist.c                              \
223         subclist.h                              \
224         sysfile-info.c                          \
225         tab.c                                   \
226         tab.h                                   \
227         temporary.c                             \
228         scratch-handle.c                        \
229         scratch-handle.h                        \
230         scratch-reader.c                        \
231         scratch-reader.h                        \
232         scratch-writer.c                        \
233         scratch-writer.h                        \
234         mkfile.c                                \
235         mkfile.h                                \
236         title.c                                 \
237         val.h                                   \
238         val-labs.c                              \
239         value-labels.c                          \
240         value-labels.h                          \
241         var-display.c                           \
242         var-labs.c                              \
243         var.h                                   \
244         vars-atr.c                              \
245         vars-prs.c                              \
246         vector.c                                \
247         version.h                               \
248         vfm.c                                   \
249         vfm.h                                   \
250         vfmP.h                                  \
251         weight.c
252
253 pspp_LDADD =                                    \
254         expressions/libexpressions.a            \
255         ../lib/gsl-extras/libgsl-extras.a       \
256         ../lib/linreg/liblinreg.a               \
257         ../gl/libgl.a                           \
258         @LIBINTL@
259
260 nodist_pspp_SOURCES = version.c
261
262 version.c:
263         echo "#include <config.h>" > version.c
264         echo "#include \"version.h\"" > version.c
265         echo "const char bare_version[] = \"@VERSION@\";" >> version.c
266         echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> version.c
267         echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
268 (`date`).\";" >> version.c
269         echo "const char host_system[] = \"$(host_triplet)\";" >> version.c
270         echo "const char build_system[] = \"$(build_triplet)\";" >> version.c
271         echo "const char default_config_path[] =\
272 \"~/.pspp:$(pkgsysconfdir)\";" >> version.c
273         echo "const char include_path[] =\
274 \"./:~/.pspp/include:$(pkgdatadir)\";" >> version.c
275         echo "const char groff_font_path[] = \"~/.pspp/font:\" \\" >> version.c
276         echo "  \"$(pkgdatadir)/font:\" \\" >> version.c
277         echo "  \"/usr/local/lib/groff/font:\" \\" >> version.c
278         echo "  \"/usr/lib/groff/font:\" \\" >> version.c
279         echo "  \"/usr/local/share/groff/font:\" \\" >> version.c
280         echo "  \"/usr/share/groff/font\";" >> version.c
281         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> version.c
282
283 noinst_PROGRAMS = q2c
284 q2c_SOURCES = q2c.c