3900a396d15e84d4b99d5b3e78f8beeb428cb232
[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 include $(srcdir)/pan-view/Makefile.am
84
85 bin_PROGRAMS = geeqie
86
87 geeqie_SOURCES = \
88         $(module_SLIK)  \
89         $(module_pan_view)      \
90         ClayRGB1998.icc \
91         ClayRGB1998_icc.h \
92         advanced_exif.c \
93         advanced_exif.h \
94         bar.c           \
95         bar.h           \
96         bar_comment.c   \
97         bar_comment.h   \
98         bar_gps.c       \
99         bar_gps.h       \
100         bar_histogram.c \
101         bar_histogram.h \
102         bar_keywords.c  \
103         bar_keywords.h  \
104         bar_exif.c      \
105         bar_exif.h      \
106         bar_sort.c      \
107         bar_sort.h      \
108         cache.c         \
109         cache.h         \
110         cache-loader.c  \
111         cache-loader.h  \
112         cache_maint.c   \
113         cache_maint.h   \
114         cellrenderericon.c      \
115         cellrenderericon.h      \
116         collect.c       \
117         collect.h       \
118         collect-dlg.c   \
119         collect-dlg.h   \
120         collect-io.c    \
121         collect-io.h    \
122         collect-table.c \
123         collect-table.h \
124         color-man.c     \
125         color-man.h     \
126         compat.c        \
127         compat.h        \
128         debug.c         \
129         debug.h         \
130         desktop_file.c  \
131         desktop_file.h  \
132         dnd.c           \
133         dnd.h           \
134         dupe.c          \
135         dupe.h          \
136         editors.c       \
137         editors.h       \
138         exif.c          \
139         exif.h          \
140         exif-int.h      \
141         exif-common.c   \
142         exiv2.cc        \
143         filecache.c     \
144         filecache.h     \
145         filedata.c      \
146         filedata.h      \
147         filefilter.c    \
148         filefilter.h    \
149         gq-marshal.c    \
150         gq-marshal.h    \
151         gq-marshal.list \
152         format_canon.c  \
153         format_canon.h  \
154         format_fuji.c   \
155         format_fuji.h   \
156         format_nikon.c  \
157         format_nikon.h  \
158         format_olympus.c        \
159         format_olympus.h        \
160         format_raw.c    \
161         format_raw.h    \
162         fullscreen.c    \
163         fullscreen.h    \
164         histogram.c     \
165         histogram.h     \
166         history_list.c  \
167         history_list.h  \
168         image.c         \
169         image.h         \
170         image-load.c    \
171         image-load.h    \
172         image_load_gdk.c\
173         image_load_gdk.h\
174         image_load_jpeg.c\
175         image_load_jpeg.h\
176         image_load_tiff.c\
177         image_load_tiff.h\
178         image-overlay.c \
179         image-overlay.h \
180         img-view.c      \
181         img-view.h      \
182         jpeg_parser.c   \
183         jpeg_parser.h   \
184         layout.c        \
185         layout.h        \
186         layout_config.c \
187         layout_config.h \
188         layout_image.c  \
189         layout_image.h  \
190         layout_util.c   \
191         layout_util.h   \
192         lirc.c          \
193         lirc.h          \
194         logwindow.c     \
195         logwindow.h     \
196         main.c          \
197         main.h          \
198         md5-util.c      \
199         md5-util.h      \
200         menu.c          \
201         menu.h          \
202         metadata.c      \
203         metadata.h      \
204         misc.c          \
205         misc.h          \
206         options.c       \
207         options.h       \
208         pan-view.h      \
209         pixbuf-renderer.c       \
210         pixbuf-renderer.h       \
211         renderer-tiles.c        \
212         renderer-tiles.h        \
213         renderer-clutter.c      \
214         renderer-clutter.h      \
215         pixbuf_util.c   \
216         pixbuf_util.h   \
217         preferences.c   \
218         preferences.h   \
219         print.c         \
220         print.h         \
221         remote.c        \
222         remote.h        \
223         rcfile.c        \
224         rcfile.h        \
225         search.c        \
226         search.h        \
227         secure_save.c   \
228         secure_save.h   \
229         shortcuts.c     \
230         shortcuts.h     \
231         similar.c       \
232         similar.h       \
233         slideshow.c     \
234         slideshow.h     \
235         typedefs.h      \
236         thumb.c         \
237         thumb.h         \
238         thumb_standard.c        \
239         thumb_standard.h        \
240         trash.c         \
241         trash.h         \
242         uri_utils.c     \
243         uri_utils.h     \
244         utilops.c       \
245         utilops.h       \
246         view_dir.c      \
247         view_dir.h      \
248         view_dir_list.c \
249         view_dir_list.h \
250         view_dir_tree.c \
251         view_dir_tree.h \
252         view_file.c     \
253         view_file.h     \
254         view_file_list.c        \
255         view_file_list.h        \
256         view_file_icon.c        \
257         view_file_icon.h        \
258         window.c        \
259         window.h        \
260         lua.c           \
261         glua.h
262
263 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)
264
265 EXTRA_DIST = \
266         $(extra_SLIK)
267
268 gq-marshal.h: gq-marshal.list
269         $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --header >$@
270
271 gq-marshal.c: gq-marshal.list gq-marshal.h
272         (echo "#include \"gq-marshal.h\"" ; $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --body ) >$@
273
274
275