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