Makefile.am 8.39 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3 4
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
5
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
6

7 8 9 10 11 12 13 14 15 16 17 18 19 20
if PLATFORM_WIN32
no_undefined = -no-undefined
endif

if PLATFORM_WIN32
else
libm = -lm
endif

if OS_WIN32
gimpwidgets_def = gimpwidgets.def
libgimpwidgets_export_symbols = -export-symbols gimpwidgets.def

install-libtool-import-lib:
21
	$(INSTALL) .libs/libgimpwidgets-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
22
	$(INSTALL) gimpwidgets.def $(DESTDIR)$(libdir)
23 24

uninstall-libtool-import-lib:
25
	-rm $(DESTDIR)$(libdir)/libgimpwidgets-$(GIMP_API_VERSION).dll.a
26
	-rm $(DESTDIR)$(libdir)/gimpwidgets.def
27 28 29 30 31 32
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif

if MS_LIB_AVAILABLE
33
noinst_DATA = gimpwidgets-$(GIMP_API_VERSION).lib
34 35

install-ms-lib:
36
	$(INSTALL) gimpwidgets-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
37 38

uninstall-ms-lib:
39
	-rm $(DESTDIR)$(libdir)/gimpwidgets-$(GIMP_API_VERSION).lib
40

41 42
gimpwidgets-@GIMP_API_VERSION@.lib: gimpwidgets.def
	lib -name:libgimpwidgets-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpwidgets.def -out:$@
43 44 45 46 47 48

else
install-ms-lib:
uninstall-ms-lib:
endif

49
libgimpwidgetsincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpwidgets
50

51
AM_CPPFLAGS = \
52
	-DG_LOG_DOMAIN=\"LibGimpWidgets\"
53

54 55 56 57
INCLUDES = \
	-I$(top_srcdir)	\
	$(GTK_CFLAGS)	\
	-I$(includedir)
58

59
lib_LTLIBRARIES = libgimpwidgets-2.0.la
60

61
libgimpwidgets_2_0_la_sources = \
62 63 64 65 66 67 68 69
	gimpwidgets.c			\
	gimpwidgets.h			\
	gimpwidgetsenums.h		\
	gimpwidgetstypes.h		\
	gimpbrowser.c			\
	gimpbrowser.h			\
	gimpbutton.c			\
	gimpbutton.h			\
70 71
	gimpcairo-utils.c		\
	gimpcairo-utils.h		\
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
	gimpcellrenderercolor.c		\
	gimpcellrenderercolor.h		\
	gimpcellrenderertoggle.c	\
	gimpcellrenderertoggle.h	\
	gimpchainbutton.c		\
	gimpchainbutton.h		\
	gimpcolorarea.c			\
	gimpcolorarea.h			\
	gimpcolorbutton.c		\
	gimpcolorbutton.h		\
	gimpcolordisplay.c		\
	gimpcolordisplay.h		\
	gimpcolordisplaystack.c		\
	gimpcolordisplaystack.h		\
	gimpenumwidgets.c		\
	gimpenumwidgets.h		\
	gimpcolorhexentry.c		\
	gimpcolorhexentry.h		\
	gimpcolorprofilecombobox.c	\
	gimpcolorprofilecombobox.h	\
	gimpcolorprofilestore.c		\
	gimpcolorprofilestore.h		\
	gimpcolorprofilestore-private.h	\
	gimpcolornotebook.c		\
	gimpcolornotebook.h		\
	gimpcolorscale.c		\
	gimpcolorscale.h		\
	gimpcolorscales.c		\
	gimpcolorscales.h		\
	gimpcolorselector.c		\
	gimpcolorselector.h		\
	gimpcolorselect.c		\
	gimpcolorselect.h		\
	gimpcolorselection.c		\
	gimpcolorselection.h		\
	gimpcontroller.c		\
	gimpcontroller.h		\
	gimpdialog.c			\
	gimpdialog.h			\
	gimpenumstore.c			\
	gimpenumstore.h			\
	gimpenumcombobox.c		\
	gimpenumcombobox.h		\
	gimpenumlabel.c			\
	gimpenumlabel.h			\
	gimpfileentry.c			\
	gimpfileentry.h			\
	gimpframe.c			\
	gimpframe.h			\
	gimphelpui.c			\
	gimphelpui.h			\
	gimphintbox.c			\
	gimphintbox.h			\
	gimpintcombobox.c		\
	gimpintcombobox.h		\
	gimpintstore.c			\
	gimpintstore.h			\
	gimpmemsizeentry.c		\
	gimpmemsizeentry.h		\
	gimpnumberpairentry.c		\
	gimpnumberpairentry.h		\
	gimpoldwidgets.c		\
	gimpoldwidgets.h		\
	gimpoffsetarea.c		\
	gimpoffsetarea.h		\
	gimppageselector.c		\
	gimppageselector.h		\
	gimppatheditor.c		\
	gimppatheditor.h		\
	gimppickbutton.c		\
	gimppickbutton.h		\
	gimppixmap.c			\
	gimppixmap.h			\
	gimppreview.c			\
	gimppreview.h			\
	gimppreviewarea.c		\
	gimppreviewarea.h		\
	gimppropwidgets.c		\
	gimppropwidgets.h		\
	gimpquerybox.c			\
	gimpquerybox.h			\
153
	gimpscaleentry.c		\
154
	gimpscaleentry.h		\
155 156 157 158 159 160 161 162 163 164 165 166 167
	gimpscrolledpreview.c		\
	gimpscrolledpreview.h		\
	gimpsizeentry.c			\
	gimpsizeentry.h			\
	gimpstock.c			\
	gimpstock.h			\
	gimpstringcombobox.c		\
	gimpstringcombobox.h		\
	gimpunitmenu.c			\
	gimpunitmenu.h			\
	gimpzoommodel.c			\
	gimpzoommodel.h			\
	gimpwidgets-private.c		\
168
	gimpwidgets-private.h
169

170
libgimpwidgets_2_0_la_built_sources = \
171
	gimpwidgetsenums.c	\
172
	gimpwidgetsmarshal.c	\
Sven Neumann's avatar
Sven Neumann committed
173 174
	gimpwidgetsmarshal.h	\
	gimp-wilber-pixbufs.h	
175

176
libgimpwidgets_2_0_la_extra_sources = gimpwidgetsmarshal.list
177

178 179 180
libgimpwidgets_2_0_la_SOURCES = 		\
	$(libgimpwidgets_2_0_la_built_sources)	\
	$(libgimpwidgets_2_0_la_sources)
181

182
libgimpwidgetsinclude_HEADERS = \
183 184 185 186 187
	gimpwidgets.h			\
	gimpwidgetsenums.h		\
	gimpwidgetstypes.h		\
	gimpbrowser.h			\
	gimpbutton.h			\
188
	gimpcairo-utils.h		\
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
	gimpcellrenderercolor.h		\
	gimpcellrenderertoggle.h	\
	gimpchainbutton.h		\
	gimpcolorarea.h			\
	gimpcolorbutton.h		\
	gimpcolorprofilecombobox.h	\
	gimpcolorprofilestore.h		\
	gimpcolordisplay.h		\
	gimpcolordisplaystack.h		\
	gimpcolorhexentry.h		\
	gimpcolornotebook.h		\
	gimpcolorscale.h		\
	gimpcolorscales.h		\
	gimpcolorselector.h		\
	gimpcolorselect.h		\
	gimpcolorselection.h		\
	gimpcontroller.h		\
	gimpdialog.h			\
	gimpenumcombobox.h		\
	gimpenumlabel.h			\
	gimpenumstore.h			\
	gimpenumwidgets.h		\
	gimpfileentry.h			\
	gimpframe.h			\
	gimphelpui.h			\
	gimphintbox.h			\
	gimpintcombobox.h		\
	gimpintstore.h			\
	gimpmemsizeentry.h		\
	gimpnumberpairentry.h		\
	gimpoldwidgets.h		\
	gimpoffsetarea.h		\
	gimppageselector.h		\
	gimppatheditor.h		\
	gimppickbutton.h		\
	gimppixmap.h			\
	gimppreview.h			\
	gimppreviewarea.h		\
	gimppropwidgets.h		\
	gimpquerybox.h			\
229
	gimpscaleentry.h		\
230 231 232 233 234
	gimpscrolledpreview.h		\
	gimpsizeentry.h			\
	gimpstock.h			\
	gimpstringcombobox.h		\
	gimpunitmenu.h			\
235
	gimpzoommodel.h
236

237
libgimpwidgets_2_0_la_LDFLAGS = \
238 239
	-version-info $(LT_VERSION_INFO)\
	$(no_undefined) 		\
240 241
	$(libgimpwidgets_export_symbols)

242
libgimpwidgets_2_0_la_LIBADD = \
243 244 245 246
	$(libgimpcolor)		\
	$(libgimpconfig)	\
	$(libgimpbase)		\
	$(GTK_LIBS)		\
247
	$(libm)
248

249
libgimpwidgets_2_0_la_DEPENDENCIES = $(gimpwidgets_def)
250

Sven Neumann's avatar
Sven Neumann committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273

## Wilber icons for the window managaer, compiled in

WILBER_IMAGES = \
	wilber-16.png	\
	wilber-32.png	\
	wilber-48.png	\
	wilber-64.png

WILBER_VARIABLES = \
	wilber_16  $(srcdir)/wilber-16.png	\
	wilber_32  $(srcdir)/wilber-32.png	\
	wilber_48  $(srcdir)/wilber-48.png	\
	wilber_64  $(srcdir)/wilber-64.png


EXTRA_DIST = \
	makefile.msc				\
	gimpwidgets.def				\
	$(libgimpwidgets_2_0_la_extra_sources)	\
	$(WILBER_IMAGES)


274
gimpwidgets-private.lo: gimp-wilber-pixbufs.h
275 276


277 278 279 280
#
# rules to generate built sources
#
# setup autogeneration dependancies
281
gen_sources = xgen-wec xgen-wmh xgen-wmc gimp-wilber-pixbufs.h
282 283
CLEANFILES = $(gen_sources)

284
gimpwidgetsenums.c: $(srcdir)/gimpwidgetsenums.h $(GIMP_MKENUMS)
285
	$(GIMP_MKENUMS) \
286
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpwidgetsenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
287 288 289
		--fprod "\n/* enumerations from \"@filename@\" */" \
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
		--vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
290 291 292 293
		--vtail "    { 0, NULL, NULL }\n  };\n" \
		--dhead "  static const Gimp@Type@Desc descs[] =\n  {" \
		--dprod "    { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
		--dtail "    { 0, NULL, NULL }\n  };\n\n  static GType type = 0;\n\n  if (! type)\n    {\n      type = g_@type@_register_static (\"@EnumName@\", values);\n      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n      gimp_@type@_set_value_descriptions (type, descs);\n    }\n\n  return type;\n}\n" \
294 295 296 297
		$(srcdir)/gimpwidgetsenums.h > xgen-wec \
	&& cp xgen-wec $(@F) \
	&& rm -f xgen-wec

298
gimpwidgetsmarshal.h: $(srcdir)/gimpwidgetsmarshal.list
299 300 301
	$(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --header >> xgen-wmh \
	&& (cmp -s xgen-wmh $(@F) || cp xgen-wmh $(@F)) \
	&& rm -f xgen-wmh xgen-wmh~
302

303
gimpwidgetsmarshal.c: gimpwidgetsmarshal.h
304 305 306 307
	echo "#include \"gimpwidgetsmarshal.h\"" >> xgen-wmc \
	&& $(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --body >> xgen-wmc \
	&& cp xgen-wmc $(@F) \
	&& rm -f xgen-wmc xgen-wmc~
308

309

310
gimp-wilber-pixbufs.h: $(WILBER_IMAGES) Makefile.am
Sven Neumann's avatar
Sven Neumann committed
311 312 313
	$(GDK_PIXBUF_CSOURCE) --raw --build-list $(WILBER_VARIABLES) > $(@F)


314
#
315
# test programs, not installed
316 317
#

318
EXTRA_PROGRAMS = test-preview-area
319 320 321 322 323 324 325 326 327 328 329 330 331

test_preview_area_SOURCES = test-preview-area.c 

test_preview_area_DEPENDENCIES = \
	$(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la	\
	$(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la

test_preview_area_LDADD = \
	$(GTK_LIBS) \
	$(test_preview_area_DEPENDENCIES)



332 333 334
install-data-local: install-ms-lib install-libtool-import-lib

uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib