fukasawa e60969
# Makefile.am:
fukasawa e60969
#   Source file for Makefile.in (and hence Makefile)
fukasawa e60969
#
fukasawa e60969
fukasawa e60969
PNGLIB_BASENAME= libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
fukasawa e60969
fukasawa e60969
ACLOCAL_AMFLAGS = -I scripts
fukasawa e60969
fukasawa e60969
# test programs - run on make check, make distcheck
fukasawa e60969
check_PROGRAMS= pngtest pngunknown pngstest pngvalid pngimage
fukasawa e60969
fukasawa e60969
# Utilities - installed
fukasawa e60969
bin_PROGRAMS= pngfix png-fix-itxt
fukasawa e60969
fukasawa e60969
# This ensures that pnglibconf.h gets built at the start of 'make all' or
fukasawa e60969
# 'make check', but it does not add dependencies to the individual programs,
fukasawa e60969
# this is done below.
fukasawa e60969
#
fukasawa e60969
# IMPORTANT: always add the object modules of new programs to the list below
fukasawa e60969
# because otherwise the sequence 'configure; make new-program' will *sometimes*
fukasawa e60969
# result in the installed (system) pnglibconf.h being used and the result is
fukasawa e60969
# always wrong and always very confusing.
fukasawa e60969
BUILT_SOURCES = pnglibconf.h
fukasawa e60969
fukasawa e60969
pngtest_SOURCES = pngtest.c
fukasawa e60969
pngtest_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
fukasawa e60969
fukasawa e60969
pngvalid_SOURCES = contrib/libtests/pngvalid.c
fukasawa e60969
pngvalid_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
fukasawa e60969
fukasawa e60969
pngstest_SOURCES = contrib/libtests/pngstest.c
fukasawa e60969
pngstest_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
fukasawa e60969
fukasawa e60969
pngunknown_SOURCES = contrib/libtests/pngunknown.c
fukasawa e60969
pngunknown_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
fukasawa e60969
fukasawa e60969
pngimage_SOURCES = contrib/libtests/pngimage.c
fukasawa e60969
pngimage_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
fukasawa e60969
fukasawa e60969
pngfix_SOURCES = contrib/tools/pngfix.c
fukasawa e60969
pngfix_LDADD = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
fukasawa e60969
fukasawa e60969
png_fix_itxt_SOURCES = contrib/tools/png-fix-itxt.c
fukasawa e60969
fukasawa e60969
# Generally these are single line shell scripts to run a test with a particular
fukasawa e60969
# set of parameters:
fukasawa e60969
TESTS =\
fukasawa e60969
   tests/pngtest\
fukasawa e60969
   tests/pngvalid-gamma-16-to-8 tests/pngvalid-gamma-alpha-mode\
fukasawa e60969
   tests/pngvalid-gamma-background tests/pngvalid-gamma-expand16-alpha-mode\
fukasawa e60969
   tests/pngvalid-gamma-expand16-background\
fukasawa e60969
   tests/pngvalid-gamma-expand16-transform tests/pngvalid-gamma-sbit\
fukasawa e60969
   tests/pngvalid-gamma-threshold tests/pngvalid-gamma-transform\
fukasawa e60969
   tests/pngvalid-progressive-size\
fukasawa e60969
   tests/pngvalid-progressive-interlace-standard\
fukasawa e60969
   tests/pngvalid-transform\
fukasawa e60969
   tests/pngvalid-progressive-standard tests/pngvalid-standard\
fukasawa e60969
   tests/pngstest-1.8 tests/pngstest-1.8-alpha tests/pngstest-linear\
fukasawa e60969
   tests/pngstest-linear-alpha tests/pngstest-none tests/pngstest-none-alpha\
fukasawa e60969
   tests/pngstest-sRGB tests/pngstest-sRGB-alpha tests/pngunknown-IDAT\
fukasawa e60969
   tests/pngunknown-discard tests/pngunknown-if-safe tests/pngunknown-sAPI\
fukasawa e60969
   tests/pngunknown-sTER tests/pngunknown-save tests/pngunknown-vpAg\
fukasawa e60969
   tests/pngimage-quick tests/pngimage-full
fukasawa e60969
fukasawa e60969
# man pages
fukasawa e60969
dist_man_MANS= libpng.3 libpngpf.3 png.5
fukasawa e60969
fukasawa e60969
# generate the -config scripts if required
fukasawa e60969
binconfigs= libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@-config
fukasawa e60969
EXTRA_SCRIPTS= libpng-config libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@-config
fukasawa e60969
bin_SCRIPTS= @binconfigs@
fukasawa e60969
fukasawa e60969
# rules to build libpng, only build the old library on request
fukasawa e60969
lib_LTLIBRARIES=libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
fukasawa e60969
# EXTRA_LTLIBRARIES= libpng.la
fukasawa e60969
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES = png.c pngerror.c\
fukasawa e60969
	pngget.c pngmem.c pngpread.c pngread.c pngrio.c pngrtran.c pngrutil.c\
fukasawa e60969
	pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c\
fukasawa e60969
	png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h pngusr.dfa
fukasawa e60969
fukasawa e60969
if PNG_ARM_NEON
fukasawa e60969
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += arm/arm_init.c\
fukasawa e60969
	arm/filter_neon.S arm/filter_neon_intrinsics.c
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
nodist_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES = pnglibconf.h
fukasawa e60969
fukasawa e60969
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS = -no-undefined -export-dynamic \
fukasawa e60969
	-version-number @PNGLIB_MAJOR@@PNGLIB_MINOR@:@PNGLIB_RELEASE@:0
fukasawa e60969
fukasawa e60969
if HAVE_LD_VERSION_SCRIPT
fukasawa e60969
#   Versioned symbols and restricted exports
fukasawa e60969
if HAVE_SOLARIS_LD
fukasawa e60969
  libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS += -Wl,-M -Wl,libpng.vers
fukasawa e60969
else
fukasawa e60969
  libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS += -Wl,--version-script=libpng.vers
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
  libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = libpng.vers
fukasawa e60969
else
fukasawa e60969
#   Only restricted exports when possible
fukasawa e60969
  libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS += -export-symbols libpng.sym
fukasawa e60969
  libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = libpng.sym
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
#distribute headers in /usr/include/libpng/*
fukasawa e60969
pkgincludedir= $(includedir)/$(PNGLIB_BASENAME)
fukasawa e60969
pkginclude_HEADERS= png.h pngconf.h
fukasawa e60969
nodist_pkginclude_HEADERS= pnglibconf.h
fukasawa e60969
fukasawa e60969
# pkg-config stuff, note that libpng.pc is always required in order
fukasawa e60969
# to get the correct library
fukasawa e60969
pkgconfigdir = @pkgconfigdir@
fukasawa e60969
pkgconfig_DATA = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.pc
fukasawa e60969
fukasawa e60969
# Extra source distribution files, '${srcdir}' is used below to stop build files
fukasawa e60969
# from those directories being included.  This only works if the configure is
fukasawa e60969
# not done in the source directory!
fukasawa e60969
EXTRA_DIST= \
fukasawa e60969
	ANNOUNCE CHANGES INSTALL LICENSE README TODO \
fukasawa e60969
	pngtest.png pngbar.png pngnow.png pngbar.jpg autogen.sh \
fukasawa e60969
	${srcdir}/contrib ${srcdir}/projects ${srcdir}/scripts \
fukasawa e60969
	$(TESTS) $(XFAIL_TESTS) tests/pngstest \
fukasawa e60969
	CMakeLists.txt example.c libpng-manual.txt
fukasawa e60969
fukasawa e60969
SCRIPT_CLEANFILES=scripts/*.out scripts/*.chk
fukasawa e60969
fukasawa e60969
CLEANFILES= *.tf? pngout.png libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.pc \
fukasawa e60969
	libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@-config libpng.vers libpng.sym \
fukasawa e60969
	check.new pnglibconf.h pngprefix.h symbols.new pngtest-log.txt \
fukasawa e60969
	pnglibconf.out pnglibconf.c pnglibconf.pre pnglibconf.dfn \
fukasawa e60969
	$(SCRIPT_CLEANFILES)
fukasawa e60969
fukasawa e60969
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.h.in \
fukasawa e60969
config.sub configure depcomp install-sh ltmain.sh missing
fukasawa e60969
fukasawa e60969
# PNG_COPTS give extra options for the C compiler to be used on all compilation
fukasawa e60969
# steps (unless targe_CFLAGS is specified; that will take precedence over
fukasawa e60969
# AM_CFLAGS)
fukasawa e60969
PNG_COPTS = @PNG_COPTS@
fukasawa e60969
AM_CFLAGS = ${PNG_COPTS}
fukasawa e60969
fukasawa e60969
# DFNCPP is normally just CPP - the C preprocessor - but on Solaris and maybe
fukasawa e60969
# other operating systems (NeXT?) the C preprocessor selected by configure
fukasawa e60969
# checks input tokens for validity - effectively it performs part of the ANSI-C
fukasawa e60969
# parsing - and therefore fails with the .df files.  configure.ac has special
fukasawa e60969
# checks for this and sets DFNCPP appropriately.
fukasawa e60969
DFNCPP = @DFNCPP@
fukasawa e60969
fukasawa e60969
SUFFIXES = .chk .out
fukasawa e60969
fukasawa e60969
$(PNGLIB_BASENAME).pc: libpng.pc
fukasawa e60969
	cp libpng.pc $@
fukasawa e60969
fukasawa e60969
$(PNGLIB_BASENAME)-config: libpng-config
fukasawa e60969
	cp libpng-config $@
fukasawa e60969
fukasawa e60969
scripts/sym.out scripts/vers.out: png.h pngconf.h pnglibconf.h
fukasawa e60969
scripts/prefix.out: png.h pngconf.h pnglibconf.out
fukasawa e60969
scripts/symbols.out: png.h pngconf.h $(srcdir)/scripts/pnglibconf.h.prebuilt
fukasawa e60969
scripts/intprefix.out: pnglibconf.h
fukasawa e60969
fukasawa e60969
libpng.sym: scripts/sym.out
fukasawa e60969
	rm -f $@
fukasawa e60969
	cp $? $@
fukasawa e60969
libpng.vers: scripts/vers.out
fukasawa e60969
	rm -f $@
fukasawa e60969
	cp $? $@
fukasawa e60969
fukasawa e60969
if DO_PNG_PREFIX
fukasawa e60969
# Rename functions in scripts/prefix.out with a PNG_PREFIX prefix.
fukasawa e60969
# Rename macros in scripts/macro.lst from PNG_PREFIXpng_ to PNG_ (the actual
fukasawa e60969
# implementation of the macro).
fukasawa e60969
pnglibconf.h: pnglibconf.out scripts/prefix.out scripts/macro.lst
fukasawa e60969
	rm -f $@
fukasawa e60969
	$(AWK) 's==0 && NR>1{print prev}\
fukasawa e60969
	   s==0{prev=$$0}\
fukasawa e60969
	   s==1{print "#define", $$1, "@PNG_PREFIX@" $$1}\
fukasawa e60969
	   s==2{print "#define @PNG_PREFIX@png_" $$1, "PNG_" $$1}\
fukasawa e60969
	   END{print prev}' s=0 pnglibconf.out s=1 scripts/prefix.out\
fukasawa e60969
	   s=2 ${srcdir}/scripts/macro.lst >pnglibconf.tf8
fukasawa e60969
	mv pnglibconf.tf8 $@
fukasawa e60969
fukasawa e60969
pngprefix.h: scripts/intprefix.out
fukasawa e60969
	rm -f pngprefix.tf1
fukasawa e60969
	$(AWK) '{print "#define", $$1, "@PNG_PREFIX@" $$1}' $? >pngprefix.tf1
fukasawa e60969
	mv pngprefix.tf1 $@
fukasawa e60969
else
fukasawa e60969
pnglibconf.h: pnglibconf.out
fukasawa e60969
	rm -f $@
fukasawa e60969
	cp $? $@
fukasawa e60969
fukasawa e60969
pngprefix.h: # is empty
fukasawa e60969
	:>$@
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
$(srcdir)/scripts/pnglibconf.h.prebuilt:
fukasawa e60969
	@echo "Attempting to build $@" >&2
fukasawa e60969
	@echo "This is a machine generated file, but if you want to make" >&2
fukasawa e60969
	@echo "a new one simply make 'scripts/pnglibconf.out', copy that" >&2
fukasawa e60969
	@echo "AND set PNG_ZLIB_VERNUM to 0 (you MUST do this)" >&2
fukasawa e60969
	@exit 1
fukasawa e60969
fukasawa e60969
# The following is necessary to ensure that the local pnglibconf.h is used, not
fukasawa e60969
# an installed one (this can happen immediately after on a clean system if
fukasawa e60969
# 'make test' is the first thing the user does.)  Only files which include
fukasawa e60969
# one of the png source files (typically png.h or pngpriv.h) need to be listed
fukasawa e60969
# here:
fukasawa e60969
pngtest.o: pnglibconf.h
fukasawa e60969
fukasawa e60969
contrib/libtests/makepng.o: pnglibconf.h
fukasawa e60969
contrib/libtests/pngstest.o: pnglibconf.h
fukasawa e60969
contrib/libtests/pngunknown.o: pnglibconf.h
fukasawa e60969
contrib/libtests/pngimage.o: pnglibconf.h
fukasawa e60969
contrib/libtests/pngvalid.o: pnglibconf.h
fukasawa e60969
contrib/libtests/readpng.o: pnglibconf.h
fukasawa e60969
contrib/libtests/tarith.o: pnglibconf.h
fukasawa e60969
contrib/libtests/timepng.o: pnglibconf.h
fukasawa e60969
fukasawa e60969
contrib/tools/makesRGB.o: pnglibconf.h
fukasawa e60969
contrib/tools/pngfix.o: pnglibconf.h
fukasawa e60969
fukasawa e60969
# We must use -DPNG_NO_USE_READ_MACROS here even when the library may actually
fukasawa e60969
# be built with PNG_USE_READ_MACROS; this prevents the read macros from
fukasawa e60969
# interfering with the symbol file format.
fukasawa e60969
SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0'\
fukasawa e60969
		-DPNGLIB_VERSION='@PNGLIB_VERSION@'\
fukasawa e60969
		-DSYMBOL_PREFIX='$(SYMBOL_PREFIX)'\
fukasawa e60969
		-DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE
fukasawa e60969
fukasawa e60969
if DO_PNG_PREFIX
fukasawa e60969
SYMBOL_CFLAGS += -DPNG_PREFIX='@PNG_PREFIX@'
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
.c.out:
fukasawa e60969
	rm -f $@ $*.tf[12]
fukasawa e60969
	test -d scripts || mkdir scripts || test -d scripts
fukasawa e60969
	$(DFNCPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)\
fukasawa e60969
	    $(CPPFLAGS) $(SYMBOL_CFLAGS) $< > $*.tf1
fukasawa e60969
	$(AWK) -f "${srcdir}/scripts/dfn.awk" out="$*.tf2" $*.tf1 1>&2
fukasawa e60969
	rm -f $*.tf1
fukasawa e60969
	mv $*.tf2 $@
fukasawa e60969
fukasawa e60969
# The .c file for pnglibconf.h is machine generated
fukasawa e60969
pnglibconf.c: scripts/pnglibconf.dfa scripts/options.awk pngconf.h pngusr.dfa $(DFA_XTRA)
fukasawa e60969
	rm -f $@ $*.tf[45]
fukasawa e60969
	$(AWK) -f ${srcdir}/scripts/options.awk out=$*.tf4 version=search\
fukasawa e60969
	    ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
fukasawa e60969
	    ${srcdir}/pngusr.dfa $(DFA_XTRA) 1>&2
fukasawa e60969
	$(AWK) -f ${srcdir}/scripts/options.awk out=$*.tf5 $*.tf4 1>&2
fukasawa e60969
	rm $*.tf4
fukasawa e60969
	mv $*.tf5 $@
fukasawa e60969
fukasawa e60969
# Symbol checks (.def and .out files should match)
fukasawa e60969
scripts/symbols.chk: scripts/checksym.awk scripts/symbols.def scripts/symbols.out
fukasawa e60969
fukasawa e60969
.out.chk:
fukasawa e60969
	rm -f $@ $*.new
fukasawa e60969
	$(AWK) -f ${srcdir}/scripts/checksym.awk ${srcdir}/scripts/${*F}.def\
fukasawa e60969
	    of="$*.new" $< >&2
fukasawa e60969
	mv $*.new $@
fukasawa e60969
fukasawa e60969
# used on demand to regenerate the standard header, CPPFLAGS should
fukasawa e60969
# be empty - no non-standard defines
fukasawa e60969
scripts/pnglibconf.c: scripts/pnglibconf.dfa scripts/options.awk pngconf.h
fukasawa e60969
	rm -f $@ pnglibconf.tf[67]
fukasawa e60969
	test -z "$(CPPFLAGS)"
fukasawa e60969
	echo "com @PNGLIB_VERSION@ STANDARD API DEFINITION" |\
fukasawa e60969
	$(AWK) -f ${srcdir}/scripts/options.awk out=pnglibconf.tf6\
fukasawa e60969
	    logunsupported=1 version=search ${srcdir}/pngconf.h -\
fukasawa e60969
	    ${srcdir}/scripts/pnglibconf.dfa 1>&2
fukasawa e60969
	$(AWK) -f ${srcdir}/scripts/options.awk out=pnglibconf.tf7\
fukasawa e60969
	    pnglibconf.tf6 1>&2
fukasawa e60969
	rm pnglibconf.tf6
fukasawa e60969
	mv pnglibconf.tf7 $@
fukasawa e60969
fukasawa e60969
$(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS): png.h pngconf.h \
fukasawa e60969
	pnglibconf.h pngpriv.h pngdebug.h pnginfo.h pngstruct.h pngprefix.h
fukasawa e60969
fukasawa e60969
test: check-am
fukasawa e60969
fukasawa e60969
# Extra checks
fukasawa e60969
check: scripts/symbols.chk
fukasawa e60969
fukasawa e60969
# Don't distribute the generated script files
fukasawa e60969
dist-hook:
fukasawa e60969
	cd '$(top_distdir)'; rm -f $(SCRIPT_CLEANFILES)
fukasawa e60969
fukasawa e60969
# Make links between installed files with release-specific names and the generic
fukasawa e60969
# file names.  If this install rule is run the generic names will be deleted and
fukasawa e60969
# recreated - this has obvious issues for systems with multiple installations.
fukasawa e60969
fukasawa e60969
install-header-links:
fukasawa e60969
	@set -ex; cd '$(DESTDIR)$(includedir)'; for f in $(HEADERS); do \
fukasawa e60969
	   rm -f "$$f"; $(LN_S) "$(PNGLIB_BASENAME)/$$f" "$$f"; done
fukasawa e60969
fukasawa e60969
uninstall-header-links:
fukasawa e60969
	cd '$(DESTDIR)$(includedir)'; rm -f $(HEADERS)
fukasawa e60969
fukasawa e60969
install-libpng-pc:
fukasawa e60969
	@set -ex; cd '$(DESTDIR)$(pkgconfigdir)'; rm -f libpng.pc; \
fukasawa e60969
	   $(LN_S) '$(PNGLIB_BASENAME).pc' libpng.pc
fukasawa e60969
fukasawa e60969
uninstall-libpng-pc:
fukasawa e60969
	rm -f '$(DESTDIR)$(pkgconfigdir)/libpng.pc'
fukasawa e60969
fukasawa e60969
# EXT_LIST is a list of the possibly library directory extensions, this exists
fukasawa e60969
# because we can't find a good way of discovering the file extensions that are
fukasawa e60969
# actually installed on a given system, so instead we check for every extension
fukasawa e60969
# we have seen.
fukasawa e60969
fukasawa e60969
EXT_LIST = a dll.a so so.@PNGLIB_MAJOR@@PNGLIB_MINOR@.@PNGLIB_RELEASE@ la sl dylib
fukasawa e60969
fukasawa e60969
install-library-links:
fukasawa e60969
	@set -x; cd '$(DESTDIR)$(libdir)';\
fukasawa e60969
	for ext in $(EXT_LIST); do\
fukasawa e60969
	   rm -f "libpng.$$ext";\
fukasawa e60969
           if test -f "$(PNGLIB_BASENAME).$$ext"; then\
fukasawa e60969
              $(LN_S) "$(PNGLIB_BASENAME).$$ext" "libpng.$$ext" || exit 1;\
fukasawa e60969
           fi;\
fukasawa e60969
	done
fukasawa e60969
fukasawa e60969
uninstall-library-links:
fukasawa e60969
	@set -x; cd '$(DESTDIR)$(libdir)'; for ext in $(EXT_LIST); do\
fukasawa e60969
	   rm -f "libpng.$$ext"; done
fukasawa e60969
fukasawa e60969
install-libpng-config:
fukasawa e60969
	@set -ex; cd '$(DESTDIR)$(bindir)'; rm -f libpng-config; \
fukasawa e60969
	   $(LN_S) '$(PNGLIB_BASENAME)-config' libpng-config
fukasawa e60969
fukasawa e60969
uninstall-libpng-config:
fukasawa e60969
	rm -f '$(DESTDIR)$(bindir)/libpng-config'
fukasawa e60969
fukasawa e60969
if DO_INSTALL_LINKS
fukasawa e60969
# If --enable-unversioned-links is specified the header and lib file links
fukasawa e60969
# will be automatically made on a 'make install':
fukasawa e60969
fukasawa e60969
install-data-hook: install-header-links
fukasawa e60969
uninstall-hook: uninstall-header-links
fukasawa e60969
install-exec-hook: install-library-links
fukasawa e60969
uninstall-hook: uninstall-library-links
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
if DO_INSTALL_LIBPNG_PC
fukasawa e60969
# Likewise, --install-pc causes libpng.pc to be constructed:
fukasawa e60969
fukasawa e60969
install-data-hook: install-libpng-pc
fukasawa e60969
uninstall-hook: uninstall-libpng-pc
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
if DO_INSTALL_LIBPNG_CONFIG
fukasawa e60969
# And --install-config:
fukasawa e60969
fukasawa e60969
install-exec-hook: install-libpng-config
fukasawa e60969
uninstall-hook: uninstall-libpng-config
fukasawa e60969
endif
fukasawa e60969
fukasawa e60969
# The following addition ensures that 'make all' always builds the test programs
fukasawa e60969
# too.  It used to, but some change either in libpng or configure stopped this
fukasawa e60969
# working.
fukasawa e60969
all-am: $(check_PROGRAMS)