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