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