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