blob: 2164853ee48e6dc612c1bb5132dfd6d89ff3ab5a [file] [log] [blame]
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -05001# makefile for libpng for NetBSD for the standard
2# make obj && make depend && make && make test
3# make includes && make install
4# Copyright (C) 2002 Patrick R.L. Welche
Glenn Randers-Pehrson glennrp@comcast.net7ecf7bd2009-05-02 15:36:08 -05005# Copyright (C) 2007, 2009 Glenn Randers-Pehrson
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -05006# For conditions of distribution and use, see copyright notice in png.h
7
8# You should also run makefile.netbsd
9
10LOCALBASE?=/usr/local
11LIBDIR= ${LOCALBASE}/lib
12MANDIR= ${LOCALBASE}/man
Glenn Randers-Pehrson17218292006-04-20 07:20:46 -050013INCSDIR=${LOCALBASE}/include/libpng14
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050014
Glenn Randers-Pehrsonbeb572e2006-08-19 13:59:24 -050015LIB= png14
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050016SHLIB_MAJOR= 0
Glenn Randers-Pehrson76546822009-05-16 07:25:42 -050017SHLIB_MINOR= 1.4.0beta60
Glenn Randers-Pehrson glennrp@comcast.net7ecf7bd2009-05-02 15:36:08 -050018SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
19 pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
20 pngwtran.c pngmem.c pngerror.c pngpread.c
21INCS= png.h pngconf.h
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050022MAN= libpng.3 libpngpf.3 png.5
23
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050024CPPFLAGS+=-I${.CURDIR}
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050025
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050026# We should be able to do something like this instead of the manual
27# uncommenting, but it core dumps for me at the moment:
28# .if ${MACHINE_ARCH} == "i386"
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050029# MKLINT= no
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050030# .endif
31
Glenn Randers-Pehrson glennrp@comcast.net7ecf7bd2009-05-02 15:36:08 -050032CLEANFILES+=pngtest.o pngtest
33
Glenn Randers-Pehrson4fb046a2002-04-15 09:25:51 -050034pngtest.o: pngtest.c
35 ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
36
37pngtest: pngtest.o libpng.a
38 ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
39
40test: pngtest
41 cd ${.CURDIR} && ${.OBJDIR}/pngtest
42
43.include <bsd.lib.mk>