bf9d5f3949
This adds a separate variable name "CLUTTER_SONAME_INFIX" to define the infix for the clutter library that gets linked. Currently the WINSYS corresponds to the directory we enter when building to compile the window system and input support, but it is desirable to be able to define multiple flavours that use the same WINSYS but should result in different library names. For example we are planning to combine the eglx and eglnative window systems into one "egl" winsys but we will need to preserve the current library names for the eglx and eglnative flavours.
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
NULL =
|
|
|
|
SUBDIRS = build clutter tests doc po
|
|
|
|
ACLOCAL_AMFLAGS = -I build/autotools
|
|
|
|
pcfiles = \
|
|
clutter-$(CLUTTER_API_VERSION).pc \
|
|
clutter-$(CLUTTER_SONAME_INFIX)-$(CLUTTER_API_VERSION).pc \
|
|
$(NULL)
|
|
|
|
# clutter-<major>.<minor>.pc - for generic dependencies
|
|
clutter-$(CLUTTER_API_VERSION).pc: clutter.pc
|
|
$(QUIET_GEN)cp $< $@
|
|
|
|
# clutter-<winsys>-<major>.<minor>.pc - for backend-specific dependencies
|
|
clutter-$(CLUTTER_SONAME_INFIX)-$(CLUTTER_API_VERSION).pc: clutter.pc
|
|
$(QUIET_GEN)cp $< $@
|
|
|
|
.PHONY: test-report full-report
|
|
test-report full-report:
|
|
$(MAKE) -C tests/conform $(@)
|
|
|
|
pkgconfig_DATA = $(pcfiles)
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
EXTRA_DIST = \
|
|
ChangeLog.pre-git-import \
|
|
clutter.pc.in \
|
|
$(NULL)
|
|
|
|
CLEANFILES = $(pcfiles)
|
|
|
|
DISTCLEANFILES = doltcompile doltlibtool
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags
|
|
|
|
# Extra clean files so that maintainer-clean removes *everything*
|
|
MAINTAINERCLEANFILES = \
|
|
aclocal.m4 \
|
|
config.guess \
|
|
config.h.in \
|
|
configure \
|
|
gtk-doc.make \
|
|
Makefile.in \
|
|
$(NULL)
|
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.changelog
|
|
|
|
gcov:
|
|
@( cd clutter && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$?
|