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