diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-01-11 21:13:05 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-01-11 21:21:34 +0000 |
commit | ed113ef4229e23d137b2673f233a23064f51ff24 (patch) | |
tree | 7bb012ce65d5ef62be35d53aa721241600add9a4 /src/Makefile.am | |
parent | bcf0c442b91b553b226c78d254906f7127013391 (diff) | |
download | cairo-ed113ef4229e23d137b2673f233a23064f51ff24.tar.gz |
[check] Move the hidden symbol check into check-{def,plt}.sh
Behdad, once again the arbiter of good taste, objected to the use of
the dotfile within the Makefile, and suggested that one calls $MAKE to
pre-process the source file from within the check scripts.
Doing so removes the ugly wart added to Makefile.am...
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index f9e2eb73e..ff793c472 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -318,16 +318,12 @@ install-data-local: TESTS_ENVIRONMENT = srcdir="$(srcdir)" MAKE="$(MAKE)" TESTS = check-def.sh check-plt.sh check-headers.sh check-cairoint.sh -EXTRA_DIST += $(TESTS) +EXTRA_DIST += $(TESTS) check-has-hidden-symbols.c -check-def.sh check-plt.sh: .check-has-hidden-symbols - -EXTRA_PROGRAMS = check-has-hidden-symbols -CLEANFILES += $(EXTRA_PROGRAMS) .check-has-hidden-symbols - -check_has_hidden_symbols_CFLAGS = -I$(srcdir) $(CAIRO_CFLAGS) -.check-has-hidden-symbols: check-has-hidden-symbols$(EXEEXT) - @nm check-has-hidden-symbols$(EXEEXT) 2>/dev/null | grep cairo_has_hidden_symbols 2>/dev/null >/dev/null && echo 1 > $@ || echo 0 > $@ +# The pre-processed result is used by check-{def,plt}.sh to determine whether +# cairo has been compiled with symbol hiding. +.c.i: $(cairo_headers) cairo-features.h $(top_builddir)/config.h + $(CPP) -DHAVE_CONFIG_H -I$(srcdir) -I$(builddir) -I$(top_builddir) $(CAIRO_CFLAGS) $< -o $@ SPARSE = sparse sparse: |