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