]> git.sur5r.net Git - glabels/blob - glabels2/src/Makefile.am
8099522d68c6027637426a181db36c14e920fe95
[glabels] / glabels2 / src / Makefile.am
1 LIB_BARCODE_DIR = ../barcode-0.98
2
3 SUBDIRS= pixmaps stock-pixmaps
4
5 bin_PROGRAMS = glabels glabels-batch
6
7 uidir = $(datadir)/glabels/ui/
8
9
10 INCLUDES = \
11         -I$(top_srcdir)                                 \
12         -I$(top_builddir)                               \
13         $(GLABELS_CFLAGS)                               \
14         -I$(LIB_BARCODE_DIR)                            \
15         -DPREFIX=\""$(prefix)"\"                        \
16         -DSYSCONFDIR=\""$(sysconfdir)"\"                \
17         -DDATADIR=\""$(datadir)"\"                      \
18         -DLIBDIR=\""$(libdir)"\"                        \
19         -DGLABELS_LOCALEDIR=\""$(datadir)/locale"\"     \
20         -DGLABELS_UI_DIR=\""$(datadir)/glabels/ui/"\"   \
21         -DG_DISABLE_DEPRECATED                          \
22         -DGDK_DISABLE_DEPRECATED                        \
23         -DGTK_DISABLE_DEPRECATED                        \
24         -DGDK_PIXBUF_DISABLE_DEPRECATED                 \
25         -DGNOME_DISABLE_DEPRECATED                      
26
27 glabels_LDFLAGS = -export-dynamic
28
29 glabels_LDADD =                         \
30         $(GLABELS_LIBS)                 \
31         -L$(LIB_BARCODE_DIR) -lbarcode  
32
33 glabels_batch_LDFLAGS = -export-dynamic
34
35 glabels_batch_LDADD =                   \
36         $(GLABELS_LIBS)                 \
37         -L$(LIB_BARCODE_DIR) -lbarcode  
38
39 BUILT_SOURCES =                         \
40         marshal.c                       \
41         marshal.h                       \
42         gnome-recent-marshal.c          \
43         gnome-recent-marshal.h
44
45 glabels_SOURCES =                       \
46         glabels.c                       \
47         glabels.h                       \
48         splash.c                        \
49         splash.h                        \
50         mdi.c                           \
51         mdi.h                           \
52         mdi-child.c                     \
53         mdi-child.h                     \
54         stock.c                         \
55         stock.h                         \
56         ui.h                            \
57         ui.c                            \
58         commands.h                      \
59         commands.c                      \
60         file.h                          \
61         file.c                          \
62         recent.h                        \
63         recent.c                        \
64         tools.h                         \
65         tools.c                         \
66         prefs.c                         \
67         prefs.h                         \
68         prefs-dialog.c                  \
69         prefs-dialog.h                  \
70         alert.c                         \
71         alert.h                         \
72         view.c                          \
73         view.h                          \
74         view-object.c                   \
75         view-object.h                   \
76         view-box.c                      \
77         view-box.h                      \
78         view-ellipse.c                  \
79         view-ellipse.h                  \
80         view-line.c                     \
81         view-line.h                     \
82         view-image.c                    \
83         view-image.h                    \
84         view-text.c                     \
85         view-text.h                     \
86         view-barcode.c                  \
87         view-barcode.h                  \
88         view-highlight.c                \
89         view-highlight.h                \
90         merge-properties.c              \
91         merge-properties.h              \
92         print.c                         \
93         print.h                         \
94         print-dialog.c                  \
95         print-dialog.h                  \
96         bc.c                            \
97         bc.h                            \
98         bc-gnubarcode.c                 \
99         bc-gnubarcode.h                 \
100         bc-postnet.c                    \
101         bc-postnet.h                    \
102         label.c                         \
103         label.h                         \
104         label-object.c                  \
105         label-object.h                  \
106         label-text.c                    \
107         label-text.h                    \
108         label-box.c                     \
109         label-box.h                     \
110         label-line.c                    \
111         label-line.h                    \
112         label-ellipse.c                 \
113         label-ellipse.h                 \
114         label-image.c                   \
115         label-image.h                   \
116         label-barcode.c                 \
117         label-barcode.h                 \
118         template.c                      \
119         template.h                      \
120         xml-label.c                     \
121         xml-label.h                     \
122         xml-label-04.c                  \
123         xml-label-04.h                  \
124         merge.c                         \
125         merge.h                         \
126         merge-text.c                    \
127         merge-text.h                    \
128         merge-ui.c                      \
129         merge-ui.h                      \
130         merge-ui-text.c                 \
131         merge-ui-text.h                 \
132         text-node.c                     \
133         text-node.h                     \
134         wdgt-text-props.c               \
135         wdgt-text-props.h               \
136         wdgt-text-entry.c               \
137         wdgt-text-entry.h               \
138         wdgt-position.c                 \
139         wdgt-position.h                 \
140         wdgt-size.c                     \
141         wdgt-size.h                     \
142         wdgt-line.c                     \
143         wdgt-line.h                     \
144         wdgt-fill.c                     \
145         wdgt-fill.h                     \
146         wdgt-vector.c                   \
147         wdgt-vector.h                   \
148         wdgt-bc-props.c                 \
149         wdgt-bc-props.h                 \
150         wdgt-bc-style.c                 \
151         wdgt-bc-style.h                 \
152         wdgt-bc-data.c                  \
153         wdgt-bc-data.h                  \
154         wdgt-print-copies.c             \
155         wdgt-print-copies.h             \
156         wdgt-print-merge.c              \
157         wdgt-print-merge.h              \
158         wdgt-media-select.c             \
159         wdgt-media-select.h             \
160         wdgt-mini-preview.c             \
161         wdgt-mini-preview.h             \
162         wdgt-rotate-label.c             \
163         wdgt-rotate-label.h             \
164         util.c                          \
165         util.h                          \
166         color.c                         \
167         color.h                         \
168         canvas-hacktext.c               \
169         canvas-hacktext.h               \
170         bonobo-mdi-child.c              \
171         bonobo-mdi-child.h              \
172         bonobo-mdi.c                    \
173         bonobo-mdi.h                    \
174         gnome-recent-model.c            \
175         gnome-recent-model.h            \
176         gnome-recent-util.c             \
177         gnome-recent-util.h             \
178         gnome-recent-view.c             \
179         gnome-recent-view.h             \
180         gnome-recent-view-bonobo.c      \
181         gnome-recent-view-bonobo.h      \
182         debug.c                         \
183         debug.h                         \
184         $(BUILT_SOURCES)
185
186 glabels_batch_SOURCES =                 \
187         glabels-batch.c                 \
188         print.c                         \
189         print.h                         \
190         bc.c                            \
191         bc.h                            \
192         bc-gnubarcode.c                 \
193         bc-gnubarcode.h                 \
194         bc-postnet.c                    \
195         bc-postnet.h                    \
196         label.c                         \
197         label.h                         \
198         label-object.c                  \
199         label-object.h                  \
200         label-text.c                    \
201         label-text.h                    \
202         label-box.c                     \
203         label-box.h                     \
204         label-line.c                    \
205         label-line.h                    \
206         label-ellipse.c                 \
207         label-ellipse.h                 \
208         label-image.c                   \
209         label-image.h                   \
210         label-barcode.c                 \
211         label-barcode.h                 \
212         template.c                      \
213         template.h                      \
214         xml-label.c                     \
215         xml-label.h                     \
216         xml-label-04.c                  \
217         xml-label-04.h                  \
218         merge.c                         \
219         merge.h                         \
220         merge-text.c                    \
221         merge-text.h                    \
222         text-node.c                     \
223         text-node.h                     \
224         util.c                          \
225         util.h                          \
226         debug.c                         \
227         debug.h                         \
228         $(BUILT_SOURCES)
229
230 marshal.h: marshal.list $(GLIB_GENMARSHAL)
231         $(GLIB_GENMARSHAL) $< --header --prefix=gl_marshal > $@
232
233 marshal.c: marshal.list $(GLIB_GENMARSHAL)
234         echo "#include \"marshal.h\"" > $@ && \
235         $(GLIB_GENMARSHAL) $< --body --prefix=gl_marshal >> $@
236
237 gnome-recent-marshal.h: gnome-recent-marshal.list $(GLIB_GENMARSHAL)
238         $(GLIB_GENMARSHAL) $< --header --prefix=gnome_recent > $@
239
240 gnome-recent-marshal.c: gnome-recent-marshal.list $(GLIB_GENMARSHAL)
241         echo "#include \"gnome-recent-marshal.h\"" > $@ && \
242         $(GLIB_GENMARSHAL) $< --body --prefix=gnome_recent >> $@
243
244
245 ui_DATA = glabels-ui.xml
246
247 EXTRA_DIST = \
248         $(ui_DATA)                      \
249         marshal.list                    \
250         gnome-recent-marshal.list
251
252 CLEANFILES = $(BUILT_SOURCES)
253
254 $(bin_PROGRAMS): $(LIB_BARCODE_DIR)/libbarcode.a
255
256 $(LIB_BARCODE_DIR)/libbarcode.a:
257         cd $(LIB_BARCODE_DIR); $(MAKE)
258
259 clean: barcode_clean
260
261 barcode_clean:
262         cd $(LIB_BARCODE_DIR); $(MAKE) clean
263
264 distclean maintainer-clean: barcode_distclean
265
266 barcode_distclean:
267         cd $(LIB_BARCODE_DIR); $(MAKE) distclean
268