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