mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Regenerated Makefile.in and configure; relocated libpng.def
to scripts/symbols.def, added scripts/checksym.*
This commit is contained in:
20
Makefile.in
20
Makefile.in
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user