Move miscellaneous functions to their own files (new misc.[ch]).
[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         filecache.c     \
119         filecache.h     \
120         filedata.c      \
121         filedata.h      \
122         filefilter.c    \
123         filefilter.h    \
124         gq-marshal.c    \
125         gq-marshal.h    \
126         gq-marshal.list \
127         format_canon.c  \
128         format_canon.h  \
129         format_fuji.c   \
130         format_fuji.h   \
131         format_nikon.c  \
132         format_nikon.h  \
133         format_olympus.c        \
134         format_olympus.h        \
135         format_raw.c    \
136         format_raw.h    \
137         fullscreen.c    \
138         fullscreen.h    \
139         histogram.c     \
140         histogram.h     \
141         history_list.c  \
142         history_list.h  \
143         image.c         \
144         image.h         \
145         image-load.c    \
146         image-load.h    \
147         image-overlay.c \
148         image-overlay.h \
149         img-view.c      \
150         img-view.h      \
151         info.c          \
152         info.h          \
153         layout.c        \
154         layout.h        \
155         layout_config.c \
156         layout_config.h \
157         layout_image.c  \
158         layout_image.h  \
159         layout_util.c   \
160         layout_util.h   \
161         lirc.c          \
162         lirc.h          \
163         logwindow.c     \
164         logwindow.h     \
165         main.c          \
166         main.h          \
167         md5-util.c      \
168         md5-util.h      \
169         menu.c          \
170         menu.h          \
171         misc.c          \
172         misc.h          \
173         options.c       \
174         options.h       \
175         pan-calendar.c  \
176         pan-folder.c    \
177         pan-grid.c      \
178         pan-item.c      \
179         pan-timeline.c  \
180         pan-types.h     \
181         pan-util.c      \
182         pan-view.c      \
183         pan-view.h      \
184         pixbuf-renderer.c       \
185         pixbuf-renderer.h       \
186         pixbuf_util.c   \
187         pixbuf_util.h   \
188         preferences.c   \
189         preferences.h   \
190         print.c         \
191         print.h         \
192         remote.c        \
193         remote.h        \
194         rcfile.c        \
195         rcfile.h        \
196         search.c        \
197         search.h        \
198         secure_save.c   \
199         secure_save.h   \
200         similar.c       \
201         similar.h       \
202         slideshow.c     \
203         slideshow.h     \
204         typedefs.h      \
205         thumb.c         \
206         thumb.h         \
207         thumb_standard.c        \
208         thumb_standard.h        \
209         trash.c         \
210         trash.h         \
211         uri_utils.c     \
212         uri_utils.h     \
213         utilops.c       \
214         utilops.h       \
215         view_dir.c      \
216         view_dir.h      \
217         view_dir_list.c \
218         view_dir_list.h \
219         view_dir_tree.c \
220         view_dir_tree.h \
221         view_file.c     \
222         view_file.h     \
223         view_file_list.c        \
224         view_file_list.h        \
225         view_file_icon.c        \
226         view_file_icon.h        \
227         window.c        \
228         window.h
229
230 geeqie_LDADD = $(GTK_LIBS) $(GLIB_LIBS) $(INTLLIBS) $(LCMS_LIBS) $(EXIV2_LIBS)
231
232 EXTRA_DIST = \
233         $(extra_SLIK)
234
235 gq-marshal.h: gq-marshal.list
236         $(GLIB_GENMARSHAL) --prefix=gq_marshal gq-marshal.list --header >$@
237
238 gq-marshal.c: gq-marshal.list
239         (echo "#include \"gq-marshal.h\"" ; $(GLIB_GENMARSHAL) --prefix=gq_marshal gq-marshal.list --body ) >$@
240
241
242