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