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