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