libpng/Makefile.am

79 lines
2.4 KiB
Makefile
Raw Normal View History

2004-12-02 19:14:51 -05:00
# test
check_PROGRAMS= pngtest
pngtest_SOURCES = pngtest.c
pngtest_LDADD = libpng.la
TESTS = test-pngtest.sh
TESTS_ENVIRONMENT= srcdir=$(srcdir)
dist_man_MANS= libpng.3 libpngpf.3 png.5
include_HEADERS= png.h pngconf.h
bin_SCRIPTS=libpng-config libpng12-config
#rules to build libpng
lib_LTLIBRARIES=libpng12.la libpng.la
libpng12_la_SOURCES = png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
pngwtran.c pngmem.c pngerror.c pngpread.c \
png.h pngconf.h
libpng_la_SOURCES = $(libpng12_la_SOURCES)
2006-02-20 23:09:05 -05:00
libpng12_la_LDFLAGS = -no-undefined -export-dynamic -version-info \
$(LIBPNG12_VERSION_INFO)
libpng_la_LDFLAGS = -no-undefined -export-dynamic -version-info \
$(LIBPNG3_VERSION_INFO)
2004-12-02 19:14:51 -05:00
#distribute headers in /usr/include/libpng/*
pkginclude_HEADERS= png.h pngconf.h
#extra source distribution files.
2006-02-24 07:30:16 -05:00
EXTRA_DIST= \
NEWS AUTHORS ChangeLog INSTALL KNOWNBUG COPYING README TODO Y2KINFO \
2004-12-02 19:14:51 -05:00
pngtest.png pngbar.png pngnow.png pngbar.jpg autogen.sh \
2006-02-24 07:30:16 -05:00
${srcdir}/projects/cbuilder5/* \
${srcdir}/projects/beos/* \
${srcdir}/projects/visualc6/* \
${srcdir}/projects/visualc71/* \
${srcdir}/projects/wince.txt \
${srcdir}/projects/netware.txt \
2004-12-02 19:14:51 -05:00
${srcdir}/scripts/* \
${srcdir}/contrib/gregbook/* \
${srcdir}/contrib/pngminus/* \
${srcdir}/contrib/pngsuite/* \
${srcdir}/contrib/visupng/* \
$(TESTS) \
2006-02-24 07:30:16 -05:00
example.c libpng.txt pnggccrd.c pngvcrd.c
2004-12-02 19:14:51 -05:00
CLEANFILES= pngout.png libpng.pc libpng12.pc libpng-config libpng12-config
libpng.pc:
cat ${srcdir}/scripts/libpng.pc.in | \
2006-02-24 07:30:16 -05:00
sed -e 's,[@]PREFIX[@],$(prefix),' \
-e 's,[@]INCLUDEDIR[@],$(includedir),' \
-e 's,[@]EXEC_PREFIX[@],$(exec_prefix),' > libpng.pc
2004-12-02 19:14:51 -05:00
libpng12.pc: libpng.pc
cp libpng.pc libpng12.pc
2006-02-24 07:30:16 -05:00
2004-12-02 19:14:51 -05:00
install-data-local: libpng.pc libpng12.pc
2006-02-24 07:30:16 -05:00
@INSTALL@ -d $(DESTDIR)@PKGCONFIGDIR@
@INSTALL_DATA@ libpng.pc $(DESTDIR)@PKGCONFIGDIR@
@INSTALL_DATA@ libpng12.pc $(DESTDIR)@PKGCONFIGDIR@
2004-12-02 19:14:51 -05:00
uninstall-local:
2006-02-24 07:30:16 -05:00
rm -f $(DESTDIR)@PKGCONFIGDIR@/libpng.pc
rm -f $(DESTDIR)@PKGCONFIGDIR@/libpng12.pc
2004-12-02 19:14:51 -05:00
libpng-config:
( cat ${srcdir}/scripts/libpng-config-head.in; \
echo prefix=\"$(prefix)\"; \
echo I_opts=\"-I$(includedir)\"; \
echo L_opts=\"-L$(libdir)\"; \
echo R_opts=\"-Wl,-rpath,$(libdir)\"; \
echo libs=\"-lpng12 -lz -lm\"; \
cat ${srcdir}/scripts/libpng-config-body.in ) > libpng-config
2006-02-24 07:30:16 -05:00
chmod 755 libpng-config
2004-12-02 19:14:51 -05:00
libpng12-config: libpng-config
cp libpng-config libpng12-config
2006-02-24 07:30:16 -05:00
chmod 755 libpng12-config