]> git.sur5r.net Git - glabels/blob - glabels2/src/Makefile.am
2009-09-07 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / Makefile.am
1 LIB_BARCODE_DIR = ../barcode-0.98
2 LIB_IEC16022_DIR = ../iec16022-0.2.1
3 LIB_QRENCODE_DIR = ../qrencode-3.1.0
4
5 SUBDIRS= pixmaps stock-pixmaps
6
7 bin_PROGRAMS = glabels glabels-batch
8
9 INCLUDES = \
10         -I$(top_srcdir)                                         \
11         -I$(top_builddir)                                       \
12         -I$(LIB_BARCODE_DIR)                                    \
13         -I$(LIB_IEC16022_DIR)                                   \
14         -I$(LIB_QRENCODE_DIR)                                   \
15         $(GLABELS_CFLAGS)                                       \
16         $(DISABLE_DEPRECATED_CFLAGS)                            \
17         -DPREFIX=\""$(prefix)"\"                                \
18         -DSYSCONFDIR=\""$(sysconfdir)"\"                        \
19         -DDATADIR=\""$(datadir)"\"                              \
20         -DLIBDIR=\""$(libdir)"\"                                \
21         -DGLABELS_LOCALEDIR=\""$(datadir)/locale"\"             \
22         -DGLABELS_BUILDER_DIR=\""$(datadir)/glabels/builder/"\" \
23         -DGLABELS_ICON_DIR=\""$(datadir)/pixmaps/"\"    \
24         -DGLABELS_PIXMAP_DIR=\""$(datadir)/pixmaps/glabels/"\"  \
25         -DG_LOG_DOMAIN=\""glabels\""
26
27 glabels_LDFLAGS = -export-dynamic
28
29 glabels_LDADD =                                 \
30         $(GLABELS_LIBS)                         \
31         ../libglabels/libglabels.la             \
32         $(LIB_BARCODE_DIR)/libbarcode.la        \
33         $(LIB_IEC16022_DIR)/libiec16022.la      \
34         $(LIB_QRENCODE_DIR)/libqrencode.la
35
36 glabels_batch_LDFLAGS = -export-dynamic
37
38 glabels_batch_LDADD =                           \
39         $(GLABELS_LIBS)                         \
40         ../libglabels/libglabels.la             \
41         $(LIB_BARCODE_DIR)/libbarcode.la        \
42         $(LIB_IEC16022_DIR)/libiec16022.la      \
43         $(LIB_QRENCODE_DIR)/libqrencode.la
44
45 BUILT_SOURCES =                         \
46         marshal.c                       \
47         marshal.h                       
48
49 glabels_SOURCES =                       \
50         glabels.c                       \
51         warning-handler.c               \
52         warning-handler.h               \
53         critical-error-handler.c        \
54         critical-error-handler.h        \
55         window.c                        \
56         window.h                        \
57         stock.c                         \
58         stock.h                         \
59         ui.h                            \
60         ui.c                            \
61         ui-util.h                       \
62         ui-util.c                       \
63         ui-commands.h                   \
64         ui-commands.c                   \
65         ui-property-bar.h               \
66         ui-property-bar.c               \
67         ui-sidebar.h                    \
68         ui-sidebar.c                    \
69         file.h                          \
70         file.c                          \
71         new-label-dialog.h              \
72         new-label-dialog.c              \
73         recent.h                        \
74         recent.c                        \
75         prefs.c                         \
76         prefs.h                         \
77         prefs-model.c                   \
78         prefs-model.h                   \
79         prefs-dialog.c                  \
80         prefs-dialog.h                  \
81         hig.h                           \
82         view.c                          \
83         view.h                          \
84         view-object.c                   \
85         view-object.h                   \
86         view-box.c                      \
87         view-box.h                      \
88         view-ellipse.c                  \
89         view-ellipse.h                  \
90         view-line.c                     \
91         view-line.h                     \
92         view-image.c                    \
93         view-image.h                    \
94         view-text.c                     \
95         view-text.h                     \
96         view-barcode.c                  \
97         view-barcode.h                  \
98         merge-properties-dialog.c       \
99         merge-properties-dialog.h       \
100         object-editor.c                 \
101         object-editor.h                 \
102         object-editor-private.h         \
103         object-editor-position-page.c   \
104         object-editor-size-page.c       \
105         object-editor-lsize-page.c      \
106         object-editor-line-page.c       \
107         object-editor-fill-page.c       \
108         object-editor-image-page.c      \
109         object-editor-text-page.c       \
110         object-editor-edit-page.c       \
111         object-editor-bc-page.c         \
112         object-editor-data-page.c       \
113         object-editor-shadow-page.c     \
114         print.c                         \
115         print.h                         \
116         print-op.c                      \
117         print-op.h                      \
118         template-designer.c             \
119         template-designer.h             \
120         bc.c                            \
121         bc.h                            \
122         bc-gnubarcode.c                 \
123         bc-gnubarcode.h                 \
124         bc-postnet.c                    \
125         bc-postnet.h                    \
126         bc-iec16022.c                   \
127         bc-iec16022.h                   \
128         bc-iec18004.c                   \
129         bc-iec18004.h                   \
130         label.c                         \
131         label.h                         \
132         label-object.c                  \
133         label-object.h                  \
134         label-text.c                    \
135         label-text.h                    \
136         label-box.c                     \
137         label-box.h                     \
138         label-line.c                    \
139         label-line.h                    \
140         label-ellipse.c                 \
141         label-ellipse.h                 \
142         label-image.c                   \
143         label-image.h                   \
144         label-barcode.c                 \
145         label-barcode.h                 \
146         xml-label.c                     \
147         xml-label.h                     \
148         xml-label-04.c                  \
149         xml-label-04.h                  \
150         pixbuf-cache.c                  \
151         pixbuf-cache.h                  \
152         merge.c                         \
153         merge.h                         \
154         merge-init.c                    \
155         merge-init.h                    \
156         merge-text.c                    \
157         merge-text.h                    \
158         merge-evolution.c               \
159         merge-evolution.h               \
160         merge-vcard.c                   \
161         merge-vcard.h                   \
162         text-node.c                     \
163         text-node.h                     \
164         mini-preview-pixbuf.c           \
165         mini-preview-pixbuf.h           \
166         mini-preview-pixbuf-cache.c     \
167         mini-preview-pixbuf-cache.h     \
168         wdgt-print-copies.c             \
169         wdgt-print-copies.h             \
170         wdgt-print-merge.c              \
171         wdgt-print-merge.h              \
172         wdgt-media-select.c             \
173         wdgt-media-select.h             \
174         mini-preview.c                  \
175         mini-preview.h                  \
176         wdgt-rotate-label.c             \
177         wdgt-rotate-label.h             \
178         wdgt-chain-button.c             \
179         wdgt-chain-button.h             \
180         wdgt-merge-menu.c               \
181         wdgt-merge-menu.h               \
182         color-combo.c                   \
183         color-combo.h                   \
184         color-combo-button.c            \
185         color-combo-button.h            \
186         color-combo-menu.c              \
187         color-combo-menu.h              \
188         color-combo-color-menu-item.c   \
189         color-combo-color-menu-item.h   \
190         color-combo-history.c           \
191         color-combo-history.h           \
192         color-swatch.c                  \
193         color-swatch.h                  \
194         font-combo.c                    \
195         font-combo.h                    \
196         font-combo-menu.c               \
197         font-combo-menu.h               \
198         font-combo-menu-item.c          \
199         font-combo-menu-item.h          \
200         font-sample.c                   \
201         font-sample.h                   \
202         font-util.c                     \
203         font-util.h                     \
204         cairo-label-path.c              \
205         cairo-label-path.h              \
206         cairo-markup-path.c             \
207         cairo-markup-path.h             \
208         cairo-ellipse-path.c            \
209         cairo-ellipse-path.h            \
210         util.c                          \
211         util.h                          \
212         color.c                         \
213         color.h                         \
214         debug.c                         \
215         debug.h                         \
216         $(BUILT_SOURCES)
217
218
219 glabels_batch_SOURCES =                 \
220         glabels-batch.c                 \
221         print.c                         \
222         print.h                         \
223         print-op.c                      \
224         print-op.h                      \
225         bc.c                            \
226         bc.h                            \
227         bc-gnubarcode.c                 \
228         bc-gnubarcode.h                 \
229         bc-postnet.c                    \
230         bc-postnet.h                    \
231         bc-iec16022.c                   \
232         bc-iec16022.h                   \
233         bc-iec18004.c                   \
234         bc-iec18004.h                   \
235         label.c                         \
236         label.h                         \
237         label-object.c                  \
238         label-object.h                  \
239         label-text.c                    \
240         label-text.h                    \
241         label-box.c                     \
242         label-box.h                     \
243         label-line.c                    \
244         label-line.h                    \
245         label-ellipse.c                 \
246         label-ellipse.h                 \
247         label-image.c                   \
248         label-image.h                   \
249         label-barcode.c                 \
250         label-barcode.h                 \
251         xml-label.c                     \
252         xml-label.h                     \
253         xml-label-04.c                  \
254         xml-label-04.h                  \
255         pixbuf-cache.c                  \
256         pixbuf-cache.h                  \
257         merge.c                         \
258         merge.h                         \
259         merge-init.c                    \
260         merge-init.h                    \
261         merge-text.c                    \
262         merge-text.h                    \
263         merge-evolution.c               \
264         merge-evolution.h               \
265         merge-vcard.c                   \
266         merge-vcard.h                   \
267         text-node.c                     \
268         text-node.h                     \
269         prefs.c                         \
270         prefs.h                         \
271         prefs-model.c                   \
272         prefs-model.h                   \
273         font-util.c                     \
274         font-util.h                     \
275         util.c                          \
276         util.h                          \
277         color.c                         \
278         color.h                         \
279         debug.c                         \
280         debug.h                         \
281         wdgt-print-copies.c             \
282         wdgt-print-copies.h             \
283         wdgt-print-merge.c              \
284         wdgt-print-merge.h              \
285         mini-preview.c                  \
286         mini-preview.h                  \
287         hig.h                           \
288         cairo-label-path.c              \
289         cairo-label-path.h              \
290         cairo-ellipse-path.c            \
291         cairo-ellipse-path.h            \
292         $(BUILT_SOURCES)
293
294 marshal.h: marshal.list $(GLIB_GENMARSHAL)
295         $(GLIB_GENMARSHAL) $< --header --prefix=gl_marshal > $@
296
297 marshal.c: marshal.list $(GLIB_GENMARSHAL)
298         echo "#include \"marshal.h\"" > $@ && \
299         $(GLIB_GENMARSHAL) $< --body --prefix=gl_marshal >> $@
300
301 EXTRA_DIST = \
302         marshal.list                    
303
304 CLEANFILES = $(BUILT_SOURCES)
305
306 $(bin_PROGRAMS): $(LIB_BARCODE_DIR)/libbarcode.la \
307                  $(LIB_IEC16022_DIR)/libiec16022.la \
308                  ../libglabels/libglabels.la
309
310 $(LIB_BARCODE_DIR)/libbarcode.la:
311         cd $(LIB_BARCODE_DIR); $(MAKE)
312
313 $(LIB_IEC16022_DIR)/libiec16022.la:
314         cd $(LIB_IEC16022_DIR); $(MAKE)
315
316 $(LIB_QRENCODE_DIR)/libqrencode.la:
317         cd $(LIB_QRENCODE_DIR); $(MAKE)
318
319 ../libglabels/libglabels.la:
320         cd ../libglabels; $(MAKE)
321