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