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