Last change
on this file since 25603 was 6395, checked in by vboxsync, 17 years ago |
export libpng and zlib so Windows and OS/2 build cleanly.
|
-
Property svn:eol-style
set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | # 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
|
---|
5 | # For conditions of distribution and use, see copyright notice in png.h
|
---|
6 |
|
---|
7 | # You should also run makefile.ne0bsd
|
---|
8 |
|
---|
9 | LOCALBASE?=/usr/local
|
---|
10 | LIBDIR= ${LOCALBASE}/lib
|
---|
11 | MANDIR= ${LOCALBASE}/man
|
---|
12 | INCSDIR=${LOCALBASE}/include/libpng
|
---|
13 |
|
---|
14 | LIB= png
|
---|
15 | SHLIB_MAJOR= 3
|
---|
16 | SHLIB_MINOR= 1.2.8
|
---|
17 | SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
---|
18 | pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
---|
19 | pngwtran.c pngmem.c pngerror.c pngpread.c
|
---|
20 | INCS= png.h pngconf.h
|
---|
21 | MAN= libpng.3 libpngpf.3 png.5
|
---|
22 |
|
---|
23 | CPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD
|
---|
24 |
|
---|
25 | # something like this for mmx assembler, but it core dumps for me at the moment
|
---|
26 | # .if ${MACHINE_ARCH} == "i386"
|
---|
27 | # CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
|
---|
28 | # MKLINT= no
|
---|
29 | # .else
|
---|
30 | CPPFLAGS+=-DPNG_NO_ASSEMBLER_CODE
|
---|
31 | # .endif
|
---|
32 |
|
---|
33 | CLEANFILES+=pngtest.o pngtest
|
---|
34 |
|
---|
35 | pngtest.o: pngtest.c
|
---|
36 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
|
---|
37 |
|
---|
38 | pngtest: pngtest.o libpng.a
|
---|
39 | ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
|
---|
40 |
|
---|
41 | test: pngtest
|
---|
42 | cd ${.CURDIR} && ${.OBJDIR}/pngtest
|
---|
43 |
|
---|
44 | .include <bsd.lib.mk>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.