VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.42/scripts/makefile.netbsd@ 103892

Last change on this file since 103892 was 103316, checked in by vboxsync, 12 months ago

libpng-1.6.42: Applied and adjusted our libpng changes to 1.6.42. bugref:8515

File size: 1.3 KB
Line 
1# makefile for libpng on NetBSD
2# Copyright (C) 2020-2022 Cosmin Truta
3# Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson
4# Copyright (C) 2002 Patrick R.L. Welche
5#
6# This code is released under the libpng license.
7# For conditions of distribution and use, see the disclaimer
8# and license in png.h
9
10SHLIB_MAJOR= 16
11SHLIB_MINOR= 0
12
13LIB= png
14SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \
15 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c \
16 pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c
17INCS= png.h pngconf.h pnglibconf.h
18
19CPPFLAGS+= -I${.CURDIR}
20CFLAGS+= -Wall -Wextra -Wundef
21
22CLEANFILES+= pngtest.o pngtest pnglibconf.h
23
24# Pre-built configuration
25# See scripts/pnglibconf.mak for more options
26PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt
27
28# We should be able to do something like this instead of the manual
29# uncommenting, but it core dumps for me at the moment:
30# .if ${MACHINE_ARCH} == "i386"
31# MKLINT= no
32# .endif
33
34.c.o:
35 ${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $<
36
37pnglibconf.h: ${PNGLIBCONF_H_PREBUILT}
38 cp ${PNGLIBCONF_H_PREBUILT} $@
39
40pngtest.o: pngtest.c
41 ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
42
43pngtest: pngtest.o libpng.a
44 ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -lz -lm
45
46test: pngtest
47 ./pngtest
48
49install:
50 @echo "The $@ target is no longer supported by this makefile."
51 @false
52
53.include <bsd.lib.mk>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette