350f95d074e9bea261b1910f204c6fd470e7b4af
[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_gdk.c\
185         image_load_gdk.h\
186         image_load_jpeg.c\
187         image_load_jpeg.h\
188         image_load_tiff.c\
189         image_load_tiff.h\
190         image_load_dds.c\
191         image_load_dds.h\
192         image_load_collection.c\
193         image_load_collection.h\
194         image_load_pdf.c\
195         image_load_pdf.h\
196         image_load_heif.c\
197         image_load_heif.h\
198         image_load_webp.c\
199         image_load_webp.h\
200         image_load_djvu.c\
201         image_load_djvu.h\
202         image_load_psd.c\
203         image_load_psd.h\
204         image_load_j2k.c\
205         image_load_j2k.h\
206         image_load_svgz.c\
207         image_load_svgz.h\
208         image_load_ffmpegthumbnailer.c\
209         image_load_ffmpegthumbnailer.h\
210         image-overlay.c \
211         image-overlay.h \
212         img-view.c      \
213         img-view.h      \
214         jpeg_parser.c   \
215         jpeg_parser.h   \
216         layout.c        \
217         layout.h        \
218         layout_config.c \
219         layout_config.h \
220         layout_image.c  \
221         layout_image.h  \
222         layout_util.c   \
223         layout_util.h   \
224         keymap_template.c\
225         lirc.c          \
226         lirc.h          \
227         logwindow.c     \
228         logwindow.h     \
229         main.c          \
230         main.h          \
231         md5-util.c      \
232         md5-util.h      \
233         menu.c          \
234         menu.h          \
235         metadata.c      \
236         metadata.h      \
237         misc.c          \
238         misc.h          \
239         options.c       \
240         options.h       \
241         osd.c   \
242         osd.h   \
243         pan-view.h      \
244         pixbuf-renderer.c       \
245         pixbuf-renderer.h       \
246         renderer-tiles.c        \
247         renderer-tiles.h        \
248         renderer-clutter.c      \
249         renderer-clutter.h      \
250         pixbuf_util.c   \
251         pixbuf_util.h   \
252         preferences.c   \
253         preferences.h   \
254         print.c         \
255         print.h         \
256         remote.c        \
257         remote.h        \
258         rcfile.c        \
259         rcfile.h        \
260         search.c        \
261         search.h        \
262         search_and_run.c        \
263         search_and_run.h        \
264         secure_save.c   \
265         secure_save.h   \
266         shortcuts.c     \
267         shortcuts.h     \
268         similar.c       \
269         similar.h       \
270         slideshow.c     \
271         slideshow.h     \
272         typedefs.h      \
273         thumb.c         \
274         thumb.h         \
275         thumb_standard.c        \
276         thumb_standard.h        \
277         toolbar.c       \
278         toolbar.h       \
279         trash.c         \
280         trash.h         \
281         uri_utils.c     \
282         uri_utils.h     \
283         utilops.c       \
284         utilops.h       \
285         view_dir.c      \
286         view_dir.h      \
287         view_dir_list.c \
288         view_dir_list.h \
289         view_dir_tree.c \
290         view_dir_tree.h \
291         view_file.h     \
292         window.c        \
293         window.h        \
294         lua.c           \
295         glua.h          \
296         zonedetect.c    \
297         zonedetect.h
298
299 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)
300
301 EXTRA_DIST = \
302         $(extra_SLIK)
303
304 gq-marshal.h: gq-marshal.list
305         $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --header >$@
306
307 gq-marshal.c: gq-marshal.list gq-marshal.h
308         (echo "#include \"gq-marshal.h\"" ; $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --body ) >$@