| # makefile for libpng under FreeBSD |
| # Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov |
| # This code is released under the libpng license. |
| # For conditions of distribution and use, see the disclaimer |
| SHLIB_MAJOR= ${SHLIB_VER} |
| # where make install puts libpng.a and png.h |
| INCS= png.h pngconf.h pngpriv.h |
| INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk |
| MAN= libpng.3 libpngpf.3 png.5 |
| SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \ |
| libpng/pngconf.h ${INCSDIR}/../pngconf.h |
| SRCS= 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 |
| pngtest: pngtest.o libpng.a |
| ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm |
| CLEANFILES= pngtest pngtest.o pngout.png |
| DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO |
| chmod a-w *.[ch35] $(DOCS) scripts/* |