[devel] Regenerated Makefile.in and configure; relocated libpng.def

to scripts/symbols.def, added scripts/checksym.*
This commit is contained in:
Glenn Randers-Pehrson
2010-03-16 08:07:22 -05:00
parent c551c0dbb3
commit 8069aeb88e
5 changed files with 394 additions and 27 deletions

View File

@@ -329,13 +329,14 @@ EXTRA_DIST = \
${srcdir}/contrib/pngsuite/* \
${srcdir}/contrib/visupng/* \
$(TESTS) \
CMakeLists.txt example.c libpng.def libpng-@PNGLIB_VERSION@.txt
CMakeLists.txt example.c libpng-@PNGLIB_VERSION@.txt
CLEANFILES = dfn.c dfn?.out pngout.png libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.pc \
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@-config libpng.vers libpng.sym
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@-config libpng.vers libpng.sym \
libpng.def checksym.lst symbols.new symbols.chk
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.h.in \
config.sub configure depcomp install-sh ltmain.sh missing libpng.def
config.sub configure depcomp install-sh ltmain.sh missing
SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0'\
-DPNGLIB_VERSION='@PNGLIB_VERSION@'\
@@ -1215,15 +1216,24 @@ $(PNGLIB_BASENAME)-config: libpng-config
libpng.sym: scripts/sym.dfn png.h pngconf.h
libpng.vers: scripts/vers.dfn png.h pngconf.h
libpng.def: scripts/def.dfn png.h pngconf.h
checksym.lst: scripts/checksym.dfn png.h pngconf.h
libpng.sym libpng.vers libpng.def:
$(RM) -f $@ dfn.c dfn?.out
libpng.sym libpng.vers libpng.def checksym.lst:
$(RM) $@ dfn.c dfn?.out
echo '#include "$<"' >dfn.c
$(CPP) @LIBPNG_DEFINES@ $(CPPFLAGS) $(SYMBOL_CFLAGS) dfn.c >dfn1.out
$(SED) -n -e 's|^.*PNG_DEFN_MAGIC-\(.*\)-PNG_DEFN_END.*$$|\1|p' dfn1.out >dfn2.out
$(SED) -e 's| *@@@ *||' -e 's| *$$||' dfn2.out >dfn3.out
$(RM) dfn.c dfn[12].out
mv dfn3.out $@
symbols.chk: scripts/checksym.awk scripts/symbols.def checksym.lst
$(RM) $@ symbols.new
$(AWK) -f $^ >&2
mv symbols.new $@
dist: symbols.chk
test: check
# install the .../include headers as links to the new ones