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