1# $NetBSD: Makefile,v 1.11 2010/05/23 04:26:19 mrg Exp $ 2 3NOLINT= 1 # defined 4 5.include <bsd.own.mk> 6 7LIB= pixman-1 8 9DIST= ${X11SRCDIR.pixman}/pixman 10.PATH: ${DIST} 11 12SRCS= \ 13 pixman-access.c \ 14 pixman-access-accessors.c \ 15 pixman-cpu.c \ 16 pixman-gradient-walker.c \ 17 pixman-region16.c \ 18 pixman-region32.c \ 19 pixman-image.c \ 20 pixman-implementation.c \ 21 pixman-combine32.c \ 22 pixman-combine64.c \ 23 pixman-general.c \ 24 pixman.c \ 25 pixman-fast-path.c \ 26 pixman-solid-fill.c \ 27 pixman-conical-gradient.c \ 28 pixman-linear-gradient.c \ 29 pixman-radial-gradient.c \ 30 pixman-bits-image.c \ 31 pixman-utils.c \ 32 pixman-edge.c \ 33 pixman-edge-accessors.c \ 34 pixman-trap.c \ 35 pixman-timer.c \ 36 pixman-matrix.c 37 38# XXX 39 40.if ${MACHINE_ARCH} == "i386" 41# SSE2 requires a gcc >= 4.2 42SRCS+= pixman-mmx.c 43COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden 44MKDEPFLAGS+= -mmmx -fvisibility=hidden 45.elif ${MACHINE_ARCH} == "x86_64" 46SRCS+= pixman-mmx.c 47SRCS+= pixman-sse2.c 48COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden 49COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden 50MKDEPFLAGS+= -mmmx -msse2 -fvisibility=hidden 51.endif 52 53# .if VMX 54# SRCS+= pixman-vmx.c 55# .endif 56 57INCS= pixman.h pixman-version.h 58INCSDIR=${X11INCDIR}/pixman-1 59 60CPPFLAGS+= -DHAVE_CONFIG_H \ 61 -I${X11SRCDIR.pixman}/../include \ 62 -I${X11SRCDIR.pixman}/../combine \ 63 -I${X11SRCDIR.pixman}/pixman 64 65LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm 66 67PKGCONFIG= pixman-1 68PKGDIST= pixman 69 70.include <bsd.x11.mk> 71.include <bsd.lib.mk> 72