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