Ensure that windows opens the right file for output.
[pspp] / src / ui / gui / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 bin_PROGRAMS += src/ui/gui/psppire 
4
5 src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GLADE_CFLAGS) -Wall \
6         -DINSTALLDIR=\"$(bindir)\"
7
8
9 src_ui_gui_psppire_LDFLAGS = \
10         $(PSPPIRE_LDFLAGS) \
11         $(PG_LDFLAGS)
12
13
14
15 if RELOCATABLE_VIA_LD
16 src_ui_gui_psppire_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
17 else
18 src_ui_gui_psppire_LDFLAGS += -rpath $(pkglibdir)
19 endif
20
21
22 # The library libpsppire contains a single function to register our custom widgets with libglade.
23 # This library is dynamically loaded by libglade.   On w32 platforms, dynamic libraries simply 
24 # can't be created unless all of the symbols can be resolved at link time.  Thus, all the custom 
25 # widgets have to be available.  
26 # But they can't appear in the library AND the binary, otherwise glib complains about them already
27 # existing (and its a waste of space).  So we have a seperate shared library (statically loaded) 
28 # libpsppwidgets which contains our custom widgets.
29
30 pkglib_LTLIBRARIES = src/ui/gui/libpsppwidgets.la src/ui/gui/libpsppire.la 
31
32 src_ui_gui_libpsppwidgets_la_CFLAGS = $(GTK_CFLAGS)
33 src_ui_gui_libpsppwidgets_la_LDFLAGS = -no-undefined
34 src_ui_gui_libpsppwidgets_la_LIBADD = $(GTK_LIBS)
35
36 src_ui_gui_libpsppwidgets_la_SOURCES = \
37         src/ui/gui/psppire-dialog.c \
38         src/ui/gui/psppire-keypad.c \
39         src/ui/gui/psppire-selector.c \
40         src/ui/gui/psppire-buttonbox.c \
41         src/ui/gui/psppire-hbuttonbox.c \
42         src/ui/gui/psppire-vbuttonbox.c \
43         src/ui/gui/psppire-acr.c 
44
45
46 src_ui_gui_libpsppire_la_CFLAGS = $(GLADE_CFLAGS) 
47 src_ui_gui_libpsppire_la_LDFLAGS = -no-undefined
48 src_ui_gui_libpsppire_la_LIBADD = $(GLADE_LIBS) src/ui/gui/libpsppwidgets.la
49
50 src_ui_gui_libpsppire_la_SOURCES = \
51         src/ui/gui/glade-register.c
52
53 src_ui_gui_psppire_LDADD = \
54         -dlopen src/ui/gui/libpsppire.la \
55         src/ui/gui/libpsppwidgets.la \
56         lib/gtksheet/libgtksheet.a \
57         src/language/liblanguage.a \
58         src/ui/libuicommon.a \
59         src/output/charts/libcharts.a \
60         src/output/liboutput.a \
61         src/math/libpspp_math.a  \
62         lib/linreg/liblinreg.a  \
63         src/data/libdata.a \
64         src/libpspp/libpspp.a \
65         $(GTK_LIBS) \
66         $(GLADE_LIBS) \
67         $(PG_LIBS) \
68         gl/libgl.la \
69         @LIBINTL@ @LIBREADLINE@
70
71 src_ui_gui_psppiredir = $(pkgdatadir)
72
73 dist_src_ui_gui_psppire_DATA = \
74         $(top_srcdir)/src/ui/gui/data-editor.glade \
75         $(top_srcdir)/src/ui/gui/descriptives-dialog.glade \
76         $(top_srcdir)/src/ui/gui/examine.glade \
77         $(top_srcdir)/src/ui/gui/crosstabs.glade \
78         $(top_srcdir)/src/ui/gui/frequencies.glade \
79         $(top_srcdir)/src/ui/gui/message-dialog.glade \
80         $(top_srcdir)/src/ui/gui/oneway.glade \
81         $(top_srcdir)/src/ui/gui/output-viewer.glade \
82         $(top_srcdir)/src/ui/gui/psppire.glade \
83         $(top_srcdir)/src/ui/gui/rank.glade \
84         $(top_srcdir)/src/ui/gui/recode.glade \
85         $(top_srcdir)/src/ui/gui/regression.glade \
86         $(top_srcdir)/src/ui/gui/syntax-editor.glade \
87         $(top_srcdir)/src/ui/gui/text-data-import.glade \
88         $(top_srcdir)/src/ui/gui/t-test.glade \
89         $(top_srcdir)/src/ui/gui/psppicon.png \
90         $(top_srcdir)/src/ui/gui/pspplogo.png \
91         $(top_srcdir)/src/ui/gui/icons/value-labels.png \
92         $(top_srcdir)/src/ui/gui/icons/goto-variable.png\
93         $(top_srcdir)/src/ui/gui/icons/insert-case.png \
94         $(top_srcdir)/src/ui/gui/icons/insert-variable.png \
95         $(top_srcdir)/src/ui/gui/icons/recent-dialogs.png \
96         $(top_srcdir)/src/ui/gui/icons/split-file.png \
97         $(top_srcdir)/src/ui/gui/icons/select-cases.png \
98         $(top_srcdir)/src/ui/gui/icons/weight-cases.png \
99         $(top_srcdir)/src/ui/gui/icons/16x16/nominal.png  \
100         $(top_srcdir)/src/ui/gui/icons/16x16/ordinal.png \
101         $(top_srcdir)/src/ui/gui/icons/16x16/scale.png \
102         $(top_srcdir)/src/ui/gui/icons/16x16/string.png \
103         $(top_srcdir)/src/ui/gui/icons/16x16/date-scale.png \
104         $(top_srcdir)/src/ui/gui/icons/splash.png
105
106
107 src_ui_gui_psppire_SOURCES = \
108         src/ui/gui/about.c \
109         src/ui/gui/about.h \
110         src/ui/gui/checkbox-treeview.c \
111         src/ui/gui/checkbox-treeview.h \
112         src/ui/gui/compute-dialog.c \
113         src/ui/gui/compute-dialog.h \
114         src/ui/gui/comments-dialog.c \
115         src/ui/gui/comments-dialog.h \
116         src/ui/gui/crosstabs-dialog.c \
117         src/ui/gui/crosstabs-dialog.h \
118         src/ui/gui/customentry.c \
119         src/ui/gui/customentry.h \
120         src/ui/gui/frequencies-dialog.c \
121         src/ui/gui/frequencies-dialog.h \
122         src/ui/gui/goto-case-dialog.c \
123         src/ui/gui/goto-case-dialog.h \
124         src/ui/gui/data-editor.c \
125         src/ui/gui/data-editor.h \
126         src/ui/gui/descriptives-dialog.c \
127         src/ui/gui/descriptives-dialog.h \
128         src/ui/gui/examine-dialog.c \
129         src/ui/gui/examine-dialog.h \
130         src/ui/gui/find-dialog.c \
131         src/ui/gui/find-dialog.h \
132         src/ui/gui/dialog-common.c \
133         src/ui/gui/dialog-common.h \
134         src/ui/gui/dict-display.c \
135         src/ui/gui/dict-display.h \
136         src/ui/gui/main.c \
137         src/ui/gui/message-dialog.c \
138         src/ui/gui/message-dialog.h \
139         src/ui/gui/psppire.c \
140         src/ui/gui/psppire.h \
141         src/ui/gui/helper.c \
142         src/ui/gui/helper.h \
143         src/ui/gui/missing-val-dialog.c \
144         src/ui/gui/missing-val-dialog.h \
145         src/ui/gui/oneway-anova-dialog.c \
146         src/ui/gui/oneway-anova-dialog.h \
147         src/ui/gui/output-viewer.c \
148         src/ui/gui/output-viewer.h \
149         src/ui/gui/psppire-acr.h \
150         src/ui/gui/psppire-buttonbox.h \
151         src/ui/gui/psppire-hbuttonbox.h \
152         src/ui/gui/psppire-vbuttonbox.h \
153         src/ui/gui/psppire-case-file.c \
154         src/ui/gui/psppire-case-file.h \
155         src/ui/gui/psppire-data-editor.c \
156         src/ui/gui/psppire-data-editor.h \
157         src/ui/gui/psppire-data-store.c \
158         src/ui/gui/psppire-data-store.h \
159         src/ui/gui/psppire-dialog.h \
160         src/ui/gui/psppire-dict.c \
161         src/ui/gui/psppire-dict.h \
162         src/ui/gui/psppire-keypad.h \
163         src/ui/gui/psppire-selector.h \
164         src/ui/gui/psppire-var-ptr.c \
165         src/ui/gui/psppire-var-ptr.h \
166         src/ui/gui/psppire-var-sheet.c \
167         src/ui/gui/psppire-var-sheet.h \
168         src/ui/gui/psppire-var-store.c \
169         src/ui/gui/psppire-var-store.h \
170         src/ui/gui/rank-dialog.c \
171         src/ui/gui/rank-dialog.h \
172         src/ui/gui/recode-dialog.c \
173         src/ui/gui/recode-dialog.h \
174         src/ui/gui/regression-dialog.c \
175         src/ui/gui/regression-dialog.h \
176         src/ui/gui/select-cases-dialog.c \
177         src/ui/gui/select-cases-dialog.h \
178         src/ui/gui/sort-cases-dialog.c \
179         src/ui/gui/sort-cases-dialog.h \
180         src/ui/gui/split-file-dialog.c \
181         src/ui/gui/split-file-dialog.h \
182         src/ui/gui/syntax-editor.c \
183         src/ui/gui/syntax-editor.h \
184         src/ui/gui/syntax-editor-source.c \
185         src/ui/gui/syntax-editor-source.h \
186         src/ui/gui/text-data-import-dialog.c \
187         src/ui/gui/text-data-import-dialog.h \
188         src/ui/gui/transpose-dialog.c \
189         src/ui/gui/transpose-dialog.h \
190         src/ui/gui/t-test-independent-samples-dialog.c \
191         src/ui/gui/t-test-independent-samples-dialog.h \
192         src/ui/gui/t-test-one-sample.c \
193         src/ui/gui/t-test-one-sample.h \
194         src/ui/gui/t-test-options.c \
195         src/ui/gui/t-test-options.h \
196         src/ui/gui/t-test-paired-samples.c \
197         src/ui/gui/t-test-paired-samples.h \
198         src/ui/gui/val-labs-dialog.c \
199         src/ui/gui/val-labs-dialog.h \
200         src/ui/gui/var-display.c \
201         src/ui/gui/var-display.h \
202         src/ui/gui/var-type-dialog.c \
203         src/ui/gui/var-type-dialog.h \
204         src/ui/gui/variable-info-dialog.c \
205         src/ui/gui/variable-info-dialog.h \
206         src/ui/gui/weight-cases-dialog.c \
207         src/ui/gui/weight-cases-dialog.h \
208         src/ui/gui/widget-io.c \
209         src/ui/gui/widget-io.h \
210         src/ui/gui/window-manager.c \
211         src/ui/gui/window-manager.h
212
213 yelp-check:
214         @if ! yelp --version > /dev/null 2>&1 ; then \
215                 echo    ; \
216                 echo '    The Yelp document viewer does not seem to be installed on the system.' ; \
217                 echo '    If Yelp is not available at run time, then the PSPPIRE online reference' ; \
218                 echo '    manual will not be available.' ; \
219                 echo '    Yelp is available from the GNOME project.  ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
220                 echo ; \
221         fi
222 PHONY += yelp-check
223
224 EXTRA_DIST += src/ui/gui/OChangeLog