$NetBSD: patch-aa,v 1.10 2008/11/12 18:45:04 adam Exp $ --- Makefile.orig 2008-11-12 19:29:05.000000000 +0100 +++ Makefile @@ -0,0 +1,38 @@ +OBJS= optipng.o opngoptim.o opngreduc.o cbitset.o osys.o strutil.o pngxio.o \ + pngxmem.o pngxrbmp.o pngxread.o pngxrgif.o pngxrjpg.o pngxrpnm.o \ + pngxrtif.o pngxset.o pngxwrite.o gifread.o pnmin.o pnmout.o pnmutil.o \ + png_write_sig.o minitiff.o tiffread.o tiffwrite.o + +CPPFLAGS= `libpng-config --cflags` -Ilib/pngxtern -Isrc + +all: $(OBJS) + $(CC) -o optipng $(LDFLAGS) $(OBJS) -lz `libpng-config --ldflags` + +optipng.o: src/optipng.c +opngoptim.o: src/opngoptim.c +opngreduc.o: src/opngreduc.c +cbitset.o: src/cbitset.c +osys.o: src/osys.c +strutil.o: src/strutil.c + +pngxio.o: lib/pngxtern/pngxio.c +pngxmem.o: lib/pngxtern/pngxmem.c +pngxrbmp.o: lib/pngxtern/pngxrbmp.c +pngxread.o: lib/pngxtern/pngxread.c +pngxrgif.o: lib/pngxtern/pngxrgif.c +pngxrjpg.o: lib/pngxtern/pngxrjpg.c +pngxrpnm.o: lib/pngxtern/pngxrpnm.c +pngxrtif.o: lib/pngxtern/pngxrtif.c +pngxset.o: lib/pngxtern/pngxset.c +pngxwrite.o: lib/pngxtern/pngxwrite.c +gifread.o: lib/pngxtern/gif/gifread.c +pnmin.o: lib/pngxtern/pnm/pnmin.c +pnmout.o: lib/pngxtern/pnm/pnmout.c +pnmutil.o: lib/pngxtern/pnm/pnmutil.c +minitiff.o: lib/pngxtern/minitiff/minitiff.c +tiffread.o: lib/pngxtern/minitiff/tiffread.c +tiffwrite.o: lib/pngxtern/minitiff/tiffwrite.c + +install: + ${BSD_INSTALL_PROGRAM} optipng "${DESTDIR}${PREFIX}/bin" + ${BSD_INSTALL_MAN} man/optipng.1 "${DESTDIR}${PREFIX}/${PKGMANDIR}/man1"