237e6f29ce2faed73676488e0e57f24b24e024df
[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_load_jpeg.c\
166         image_load_jpeg.h\
167         image-overlay.c \
168         image-overlay.h \
169         img-view.c      \
170         img-view.h      \
171         jpeg_parser.c   \
172         jpeg_parser.h   \
173         layout.c        \
174         layout.h        \
175         layout_config.c \
176         layout_config.h \
177         layout_image.c  \
178         layout_image.h  \
179         layout_util.c   \
180         layout_util.h   \
181         lirc.c          \
182         lirc.h          \
183         logwindow.c     \
184         logwindow.h     \
185         main.c          \
186         main.h          \
187         md5-util.c      \
188         md5-util.h      \
189         menu.c          \
190         menu.h          \
191         metadata.c      \
192         metadata.h      \
193         misc.c          \
194         misc.h          \
195         options.c       \
196         options.h       \
197         pan-calendar.c  \
198         pan-folder.c    \
199         pan-grid.c      \
200         pan-item.c      \
201         pan-timeline.c  \
202         pan-types.h     \
203         pan-util.c      \
204         pan-view.c      \
205         pan-view.h      \
206         pixbuf-renderer.c       \
207         pixbuf-renderer.h       \
208         renderer-tiles.c        \
209         renderer-tiles.h        \
210         pixbuf_util.c   \
211         pixbuf_util.h   \
212         preferences.c   \
213         preferences.h   \
214         print.c         \
215         print.h         \
216         remote.c        \
217         remote.h        \
218         rcfile.c        \
219         rcfile.h        \
220         search.c        \
221         search.h        \
222         secure_save.c   \
223         secure_save.h   \
224         similar.c       \
225         similar.h       \
226         slideshow.c     \
227         slideshow.h     \
228         typedefs.h      \
229         thumb.c         \
230         thumb.h         \
231         thumb_standard.c        \
232         thumb_standard.h        \
233         trash.c         \
234         trash.h         \
235         uri_utils.c     \
236         uri_utils.h     \
237         utilops.c       \
238         utilops.h       \
239         view_dir.c      \
240         view_dir.h      \
241         view_dir_list.c \
242         view_dir_list.h \
243         view_dir_tree.c \
244         view_dir_tree.h \
245         view_file.c     \
246         view_file.h     \
247         view_file_list.c        \
248         view_file_list.h        \
249         view_file_icon.c        \
250         view_file_icon.h        \
251         window.c        \
252         window.h
253
254 geeqie_LDADD = $(GTK_LIBS) $(GLIB_LIBS) $(INTLLIBS) $(JPEG_LIBS) $(LCMS_LIBS) $(EXIV2_LIBS) $(LIBCHAMPLAIN_LIBS) $(LIBCHAMPLAIN_GTK_LIBS)
255
256 EXTRA_DIST = \
257         $(extra_SLIK)
258
259 gq-marshal.h: gq-marshal.list
260         $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --header >$@
261
262 gq-marshal.c: gq-marshal.list
263         (echo "#include \"gq-marshal.h\"" ; $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --body ) >$@
264
265
266