Use full path in genmarshal.
[geeqie.git] / src / Makefile.am
1 SUBDIRS = icons
2 DIST_SUBDIRS = icons
3
4 AM_CFLAGS =                             \
5         $(GLIB_CFLAGS) $(GTK_CFLAGS)    \
6         $(LCMS_CFLAGS)                  \
7         $(EXIV2_CFLAGS)                 \
8         -I$(top_srcdir)                 \
9         -I$(top_builddir)
10
11
12 AM_CXXFLAGS =                           \
13         $(GLIB_CFLAGS) $(GTK_CFLAGS)    \
14         $(LCMS_CFLAGS)                  \
15         $(EXIV2_CFLAGS)                 \
16         -I$(top_srcdir)                 \
17         -I$(top_builddir)
18
19 module_SLIK = \
20         intl.h          \
21         ui_bookmark.c   \
22         ui_bookmark.h   \
23         ui_fileops.c    \
24         ui_fileops.h    \
25         ui_help.c       \
26         ui_help.h       \
27         ui_menu.c       \
28         ui_menu.h       \
29         ui_misc.c       \
30         ui_misc.h       \
31         ui_pathsel.c    \
32         ui_pathsel.h    \
33         ui_spinner.c    \
34         ui_spinner.h    \
35         ui_tabcomp.c    \
36         ui_tabcomp.h    \
37         ui_tree_edit.c  \
38         ui_tree_edit.h  \
39         ui_utildlg.c    \
40         ui_utildlg.h
41
42 extra_ICONS = \
43         ui_spinner.png  \
44         ui_tabcomp.png
45
46 ICON_PAIRS = \
47         icon_spinner            $(srcdir)/ui_spinner.png        \
48         icon_tabcomp            $(srcdir)/ui_tabcomp.png
49
50 ui_icons.h: $(extra_ICONS) Makefile.in
51         @(echo '/* Auto generated file, do not edit */'; echo; \
52          echo '#ifndef UI_ICONS_H'; \
53          echo '#define UI_ICONS_H'; echo; \
54          $(GDK_PIXBUF_CSOURCE) --raw --extern --build-list $(ICON_PAIRS); \
55          echo '#endif /* UI_ICONS_H */') > $@ || echo "!!! Failed to generate $@ !!!"
56
57 ClayRGB1998_icc.h: ClayRGB1998.icc
58         echo "/*" > $@ 
59         echo " * This file was generated from ClayRGB1998.icc, DO NOT EDIT " >> $@
60         echo " * http://www.argyllcms.com/ClayRGB1998.zip " >> $@
61         echo " */ " >> $@
62         xxd -i $^ >> $@
63
64 ui_spinner.o: ui_icons.h
65
66
67 noinst_DATA = ui_icons.h
68 CLEANFILES = $(noinst_DATA)
69                                                                                                                      
70 extra_SLIK = \
71         $(extra_ICONS)
72
73 bin_PROGRAMS = geeqie
74
75 geeqie_SOURCES = \
76         $(module_SLIK)  \
77         ClayRGB1998.icc \
78         ClayRGB1998_icc.h \
79         advanced_exif.c \
80         advanced_exif.h \
81         bar.c           \
82         bar.h           \
83         bar_comment.c   \
84         bar_comment.h   \
85         bar_histogram.c \
86         bar_histogram.h \
87         bar_keywords.c  \
88         bar_keywords.h  \
89         bar_exif.c      \
90         bar_exif.h      \
91         bar_sort.c      \
92         bar_sort.h      \
93         cache.c         \
94         cache.h         \
95         cache-loader.c  \
96         cache-loader.h  \
97         cache_maint.c   \
98         cache_maint.h   \
99         cellrenderericon.c      \
100         cellrenderericon.h      \
101         collect.c       \
102         collect.h       \
103         collect-dlg.c   \
104         collect-dlg.h   \
105         collect-io.c    \
106         collect-io.h    \
107         collect-table.c \
108         collect-table.h \
109         color-man.c     \
110         color-man.h     \
111         compat.c        \
112         compat.h        \
113         debug.c         \
114         debug.h         \
115         desktop_file.c  \
116         desktop_file.h  \
117         dnd.c           \
118         dnd.h           \
119         dupe.c          \
120         dupe.h          \
121         editors.c       \
122         editors.h       \
123         exif.c          \
124         exif.h          \
125         exif-int.h      \
126         exif-common.c   \
127         exiv2.cc        \
128         filecache.c     \
129         filecache.h     \
130         filedata.c      \
131         filedata.h      \
132         filefilter.c    \
133         filefilter.h    \
134         gq-marshal.c    \
135         gq-marshal.h    \
136         gq-marshal.list \
137         format_canon.c  \
138         format_canon.h  \
139         format_fuji.c   \
140         format_fuji.h   \
141         format_nikon.c  \
142         format_nikon.h  \
143         format_olympus.c        \
144         format_olympus.h        \
145         format_raw.c    \
146         format_raw.h    \
147         fullscreen.c    \
148         fullscreen.h    \
149         histogram.c     \
150         histogram.h     \
151         history_list.c  \
152         history_list.h  \
153         image.c         \
154         image.h         \
155         image-load.c    \
156         image-load.h    \
157         image-overlay.c \
158         image-overlay.h \
159         img-view.c      \
160         img-view.h      \
161         layout.c        \
162         layout.h        \
163         layout_config.c \
164         layout_config.h \
165         layout_image.c  \
166         layout_image.h  \
167         layout_util.c   \
168         layout_util.h   \
169         lirc.c          \
170         lirc.h          \
171         logwindow.c     \
172         logwindow.h     \
173         main.c          \
174         main.h          \
175         md5-util.c      \
176         md5-util.h      \
177         menu.c          \
178         menu.h          \
179         metadata.c      \
180         metadata.h      \
181         misc.c          \
182         misc.h          \
183         options.c       \
184         options.h       \
185         pan-calendar.c  \
186         pan-folder.c    \
187         pan-grid.c      \
188         pan-item.c      \
189         pan-timeline.c  \
190         pan-types.h     \
191         pan-util.c      \
192         pan-view.c      \
193         pan-view.h      \
194         pixbuf-renderer.c       \
195         pixbuf-renderer.h       \
196         pixbuf_util.c   \
197         pixbuf_util.h   \
198         preferences.c   \
199         preferences.h   \
200         print.c         \
201         print.h         \
202         remote.c        \
203         remote.h        \
204         rcfile.c        \
205         rcfile.h        \
206         search.c        \
207         search.h        \
208         secure_save.c   \
209         secure_save.h   \
210         similar.c       \
211         similar.h       \
212         slideshow.c     \
213         slideshow.h     \
214         typedefs.h      \
215         thumb.c         \
216         thumb.h         \
217         thumb_standard.c        \
218         thumb_standard.h        \
219         trash.c         \
220         trash.h         \
221         uri_utils.c     \
222         uri_utils.h     \
223         utilops.c       \
224         utilops.h       \
225         view_dir.c      \
226         view_dir.h      \
227         view_dir_list.c \
228         view_dir_list.h \
229         view_dir_tree.c \
230         view_dir_tree.h \
231         view_file.c     \
232         view_file.h     \
233         view_file_list.c        \
234         view_file_list.h        \
235         view_file_icon.c        \
236         view_file_icon.h        \
237         window.c        \
238         window.h
239
240 geeqie_LDADD = $(GTK_LIBS) $(GLIB_LIBS) $(INTLLIBS) $(LCMS_LIBS) $(EXIV2_LIBS)
241
242 EXTRA_DIST = \
243         $(extra_SLIK)
244
245 gq-marshal.h: gq-marshal.list
246         $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --header >$@
247
248 gq-marshal.c: gq-marshal.list
249         (echo "#include \"gq-marshal.h\"" ; $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --body ) >$@
250
251
252