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