Makefile.am 6.27 KB
Newer Older
1 2
SUBDIRS = icons
DIST_SUBDIRS = icons 
Paolo Bacchilega's avatar
Paolo Bacchilega committed
3 4 5

gladedir = $(datadir)/gthumb/glade

Paolo Bacchilega's avatar
Paolo Bacchilega committed
6
if ENABLE_DEPRECATIONS
7
DISABLE_DEPRECATED = -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED
Paolo Bacchilega's avatar
Paolo Bacchilega committed
8 9 10
else
DISABLE_DEPRECATED =
endif
Paolo Bacchilega's avatar
Paolo Bacchilega committed
11 12 13 14

INCLUDES =					\
	$(GTHUMB_CFLAGS)			\
	$(EXIF_CFLAGS)				\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
15
	$(IPTCDATA_CFLAGS)			\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
16
	$(DISABLE_DEPRECATED)			\
17
	$(GPHOTO_CFLAGS)			\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
18 19 20 21 22
	-DGTHUMB_PREFIX=\"$(prefix)\"		\
	-DGTHUMB_SYSCONFDIR=\"$(sysconfdir)\"	\
	-DGTHUMB_DATADIR=\"$(datadir)\"		\
	-DGTHUMB_LIBDIR=\"$(libdir)\"		\
	-DPIXMAPSDIR=\""$(datadir)/pixmaps/"\"	\
23
	-DBONOBO_UIDIR=\""$(uidir)/"\"		\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
24
	-DGTHUMB_GLADEDIR=\""$(gladedir)"\"	\
25 26
	-I$(top_srcdir)/libgthumb		\
	-I../libgthumb		
Paolo Bacchilega's avatar
Paolo Bacchilega committed
27 28 29

bin_PROGRAMS = gthumb

30 31 32 33 34 35 36 37 38 39 40
gnome_gthumb_idl_sources =              \
	GNOME_GThumb-stubs.c            \
	GNOME_GThumb-skels.c            \
	GNOME_GThumb.h                  \
	GNOME_GThumb-common.c

$(gnome_gthumb_idl_sources): gnome_gthumb_idl_stamp
gnome_gthumb_idl_stamp: GNOME_GThumb.idl $(ORBIT_IDL)
	$(ORBIT_IDL) $(IDL_INCLUDES) $<
	touch $@

41
gthumb_SOURCES = 				\
42
	$(gnome_gthumb_idl_sources)		\
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
	bookmark-list.c				\
	bookmark-list.h				\
	catalog-list.c				\
	catalog-list.h				\
	dlg-bookmarks.c				\
	dlg-bookmarks.h				\
	dlg-brightness-contrast.c		\
	dlg-brightness-contrast.h		\
	dlg-catalog.c				\
	dlg-catalog.h				\
	dlg-categories.c			\
	dlg-categories.h			\
	dlg-change-date.c			\
	dlg-change-date.h			\
	dlg-color-balance.c			\
	dlg-color-balance.h			\
	dlg-comment.c				\
	dlg-comment.h				\
	dlg-convert.c				\
	dlg-convert.h				\
	dlg-crop.c				\
	dlg-crop.h				\
	dlg-file-utils.c			\
	dlg-file-utils.h			\
	dlg-hue-saturation.c			\
	dlg-hue-saturation.h			\
	dlg-image-prop.c			\
	dlg-image-prop.h			\
	dlg-open-with.c				\
	dlg-open-with.h				\
	dlg-posterize.c				\
	dlg-posterize.h				\
	dlg-preferences.c			\
	dlg-preferences.h			\
77 78
	dlg-redeye-removal.c			\
	dlg-redeye-removal.h			\
79 80
	dlg-rename-series.c			\
	dlg-rename-series.h			\
81 82
        dlg-reset-exif.c                        \
        dlg-reset-exif.h                        \
83 84 85 86 87 88
	dlg-scale-image.c			\
	dlg-scale-image.h			\
	dlg-scale-series.c			\
	dlg-scale-series.h			\
	dlg-write-to-cd.c			\
	dlg-write-to-cd.h			\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
89 90
	gs-fade.c				\
	gs-fade.h				\
91 92
	gth-application.c			\
	gth-application.h			\
93 94 95 96 97 98 99 100
	gth-batch-op.c				\
	gth-batch-op.h				\
	gth-browser.c				\
	gth-browser.h				\
	gth-browser-actions-entries.h		\
	gth-browser-actions-callbacks.h		\
	gth-browser-actions-callbacks.c		\
	gth-browser-ui.h			\
101 102
	gth-dir-list.c				\
	gth-dir-list.h				\
103 104
	gth-exif-data-viewer.c			\
	gth-exif-data-viewer.h			\
105 106
	gth-filter-bar.c			\
	gth-filter-bar.h			\
107 108 109 110 111 112 113 114
	gth-folder-selection-dialog.c		\
	gth-folder-selection-dialog.h		\
	gth-fullscreen.c			\
	gth-fullscreen.h			\
	gth-fullscreen-actions-entries.h	\
	gth-fullscreen-actions-callbacks.h	\
	gth-fullscreen-actions-callbacks.c	\
	gth-fullscreen-ui.h			\
115 116
	gth-image-history.c			\
	gth-image-history.h			\
117 118
	gth-image-selector.c			\
	gth-image-selector.h			\
119 120
	gth-location.c				\
	gth-location.h				\
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
	gth-monitor.c				\
	gth-monitor.h				\
	gth-viewer.c				\
	gth-viewer.h				\
	gth-viewer-actions-entries.h		\
	gth-viewer-actions-callbacks.h		\
	gth-viewer-actions-callbacks.c		\
	gth-viewer-ui.h				\
	gth-window.c				\
	gth-window.h				\
	gth-window-actions-entries.h		\
	gth-window-actions-callbacks.h		\
	gth-window-actions-callbacks.c		\
	gth-window-utils.c			\
	gth-window-utils.h			\
	gthumb-preloader.c			\
	gthumb-preloader.h			\
	gtkcellrendererthreestates.h		\
	gtkcellrendererthreestates.c		\
	main.c					\
	main.h					\
	totem-scrsaver.c			\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
143 144 145
	totem-scrsaver.h			\
	rotation-utils.c			\
	rotation-utils.h
Paolo Bacchilega's avatar
Paolo Bacchilega committed
146

147 148 149 150
if PLATFORM_WIN32
gthumb_LDFLAGS = -Wl,--export-all-symbols,--out-implib,.libs/gthumb.exe.a
endif

151
gthumb_LDADD = 					\
152 153
	$(top_builddir)/libgthumb/jpegutils/libgthumb-jpegutils.la	\
	$(top_builddir)/libgthumb/libgthumb.la	\
154
	$(EXIF_LIBS)				\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
155
	$(IPTCDATA_LIBS)			\
156 157 158 159
	$(GTHUMB_LIBS)				\
	$(JPEG_LIBS)				\
	$(TIFF_LIBS)				\
	$(RENDER_LIBS)				\
160
	$(GPHOTO_LIBS)				\
Paolo Bacchilega's avatar
Paolo Bacchilega committed
161
	$(XF86GAMMA_LIBS)			\
162
	$(XTEST_LIBS)				
Paolo Bacchilega's avatar
Paolo Bacchilega committed
163

164 165 166 167 168 169
moduledir = $(libdir)/gthumb/modules
module_LTLIBRARIES = 		\
	libduplicates.la	\
	libjpegtran.la		\
	libpngexporter.la	\
	libsearch.la		\
170 171
	libwebexporter.la	\
	libphotoimporter.la
172 173 174

libduplicates_la_SOURCES = dlg-duplicates.c dlg-duplicates.h
libduplicates_la_LDFLAGS = $(MODULE_LIBTOOL_FLAGS)
175 176
libduplicates_la_LIBADD = $(top_builddir)/libgthumb/libgthumb.la $(JPEG_LIBS) $(PNG_LIBS) $(TIFF_LIBS) $(GTHUMB_LIBS)
libduplicates_la_DEPENDENCIES = gthumb$(EXEEXT)
177 178 179

libjpegtran_la_SOURCES = dlg-jpegtran.c dlg-jpegtran.h
libjpegtran_la_LDFLAGS = $(MODULE_LIBTOOL_FLAGS)
180 181
libjpegtran_la_LIBADD  = $(top_builddir)/libgthumb/jpegutils/libgthumb-jpegutils.la $(top_builddir)/libgthumb/libgthumb.la $(EXIF_LIBS) $(JPEG_LIBS) $(GTHUMB_LIBS)
libjpegtran_la_DEPENDENCIES = gthumb$(EXEEXT)
182 183 184 185 186 187 188

libpngexporter_la_SOURCES = 	\
	catalog-png-exporter.c	\
	catalog-png-exporter.h	\
	dlg-png-exporter.c	\
	dlg-png-exporter.h
libpngexporter_la_LDFLAGS = $(MODULE_LIBTOOL_FLAGS)
189 190
libpngexporter_la_LIBADD = $(top_builddir)/libgthumb/libgthumb.la $(GTHUMB_LIBS) $(PNG_LIBS)
libpngexporter_la_DEPENDENCIES = gthumb$(EXEEXT)
191 192 193

libsearch_la_SOURCES = dlg-search.c dlg-search.h
libsearch_la_LDFLAGS = $(MODULE_LIBTOOL_FLAGS)
194 195
libsearch_la_LIBADD = $(top_builddir)/libgthumb/libgthumb.la $(JPEG_LIBS) $(TIFF_LIBS) $(PNG_LIBS) $(GTHUMB_LIBS)
libsearch_la_DEPENDENCIES = gthumb$(EXEEXT)
196 197 198 199 200 201 202 203 204 205

libwebexporter_la_SOURCES = 	\
	albumtheme.c		\
	albumtheme-private.c	\
	albumtheme-private.h	\
	catalog-web-exporter.c	\
	catalog-web-exporter.h	\
	dlg-web-exporter.c	\
	dlg-web-exporter.h
libwebexporter_la_LDFLAGS = $(MODULE_LIBTOOL_FLAGS)
206 207
libwebexporter_la_LIBADD = $(top_builddir)/libgthumb/libgthumb.la $(GTHUMB_LIBS) $(EXIF_LIBS)
libwebexporter_la_DEPENDENCIES = gthumb$(EXEEXT)
Paolo Bacchilega's avatar
Paolo Bacchilega committed
208

209 210
libphotoimporter_la_SOURCES = dlg-photo-importer.c dlg-photo-importer.h
libphotoimporter_la_LDFLAGS = $(MODULE_LIBTOOL_FLAGS)
211 212
libphotoimporter_la_LIBADD  = $(top_builddir)/libgthumb/jpegutils/libgthumb-jpegutils.la $(top_builddir)/libgthumb/libgthumb.la $(GTHUMB_LIBS) $(EXIF_LIBS) $(JPEG_LIBS) $(GPHOTO_LIBS)
libphotoimporter_la_DEPENDENCIES = gthumb$(EXEEXT)
Paolo Bacchilega's avatar
Paolo Bacchilega committed
213

214
EXTRA_DIST = 			\
215
	GNOME_GThumb.idl	\
216 217 218
	albumtheme.c		\
	albumtheme.y		\
	albumtheme.l		\
219
	lex.albumtheme.c
220 221


222 223 224
CLEANFILES =				\
	$(gnome_gthumb_idl_sources)	\
	gnome_gthumb_idl_stamp