Added reference to regression_export.h
[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         loop.c                                  \
162         magic.c                                 \
163         magic.h                                 \
164         main.c                                  \
165         main.h                                  \
166         matrix-data.c                           \
167         mis-val.c                               \
168         misc.c                                  \
169         misc.h                                  \
170         missing-values.c                        \
171         missing-values.h                        \
172         modify-vars.c                           \
173         moments.c                               \
174         moments.h                               \
175         numeric.c                               \
176         output.c                                \
177         output.h                                \
178         percentiles.c                           \
179         percentiles.h                           \
180         permissions.c                           \
181         pfm-read.c                              \
182         pfm-read.h                              \
183         pfm-write.c                             \
184         pfm-write.h                             \
185         pool.c                                  \
186         pool.h                                  \
187         postscript.c                            \
188         print.c                                 \
189         random.c                                \
190         random.h                                \
191         range-prs.c                             \
192         range-prs.h                             \
193         readln.c                                \
194         readln.h                                \
195         recode.c                                \
196         rename-vars.c                           \
197         regression_export.h                     \
198         repeat.c                                \
199         repeat.h                                \
200         sample.c                                \
201         sel-if.c                                \
202         settings.c                              \
203         settings.h                              \
204         sfm-read.c                              \
205         sfm-read.h                              \
206         sfm-write.c                             \
207         sfm-write.h                             \
208         sfmP.h                                  \
209         som.c                                   \
210         som.h                                   \
211         sort.c                                  \
212         sort.h                                  \
213         sort-prs.c                              \
214         sort-prs.h                              \
215         split-file.c                            \
216         str.c                                   \
217         str.h                                   \
218         subclist.c                              \
219         subclist.h                              \
220         sysfile-info.c                          \
221         tab.c                                   \
222         tab.h                                   \
223         temporary.c                             \
224         mkfile.c                                \
225         mkfile.h                                \
226         title.c                                 \
227         val.h                                   \
228         val-labs.c                              \
229         value-labels.c                          \
230         value-labels.h                          \
231         var-display.c                           \
232         var-labs.c                              \
233         var.h                                   \
234         vars-atr.c                              \
235         vars-prs.c                              \
236         vector.c                                \
237         version.h                               \
238         vfm.c                                   \
239         vfm.h                                   \
240         vfmP.h                                  \
241         weight.c
242
243 pspp_LDADD =                                    \
244         expressions/libexpressions.a            \
245         ../lib/gsl-extras/libgsl-extras.a       \
246         ../lib/linreg/liblinreg.a               \
247         ../gl/libgl.a                           \
248         @LIBINTL@
249
250 nodist_pspp_SOURCES = version.c
251
252 version.c:
253         echo "#include <config.h>" > version.c
254         echo "#include \"version.h\"" > version.c
255         echo "const char bare_version[] = \"@VERSION@\";" >> version.c
256         echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> version.c
257         echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
258 (`date`).\";" >> version.c
259         echo "const char host_system[] = \"$(host_triplet)\";" >> version.c
260         echo "const char build_system[] = \"$(build_triplet)\";" >> version.c
261         echo "const char default_config_path[] =\
262 \"~/.pspp:$(pkgsysconfdir)\";" >> version.c
263         echo "const char include_path[] =\
264 \"./:~/.pspp/include:$(pkgdatadir)\";" >> version.c
265         echo "const char groff_font_path[] = \"~/.pspp/font:\" \\" >> version.c
266         echo "  \"$(pkgdatadir)/font:\" \\" >> version.c
267         echo "  \"/usr/local/lib/groff/font:\" \\" >> version.c
268         echo "  \"/usr/lib/groff/font:\" \\" >> version.c
269         echo "  \"/usr/local/share/groff/font:\" \\" >> version.c
270         echo "  \"/usr/share/groff/font\";" >> version.c
271         echo "const char locale_dir[] = \"$(datadir)/locale\";" >> version.c
272
273 noinst_PROGRAMS = q2c
274 q2c_SOURCES = q2c.c