Home | History | Annotate | Line # | Download | only in pixman
Makefile revision 1.16
      1 #	$NetBSD: Makefile,v 1.16 2013/01/31 12:21:12 jmcneill Exp $
      2 
      3 NOLINT=	1	# defined
      4 
      5 .include <bsd.own.mk>
      6 
      7 LIB=		pixman-1
      8 
      9 DIST=	${X11SRCDIR.pixman}/pixman
     10 .PATH:	${DIST}
     11 
     12 SRCS=					\
     13 	pixman.c			\
     14 	pixman-access.c			\
     15 	pixman-access-accessors.c	\
     16 	pixman-bits-image.c		\
     17 	pixman-combine32.c		\
     18 	pixman-combine-float.c		\
     19 	pixman-conical-gradient.c	\
     20 	pixman-x86.c			\
     21 	pixman-mips.c			\
     22 	pixman-arm.c			\
     23 	pixman-ppc.c			\
     24 	pixman-edge.c			\
     25 	pixman-edge-accessors.c		\
     26 	pixman-fast-path.c		\
     27 	pixman-glyph.c			\
     28 	pixman-general.c		\
     29 	pixman-gradient-walker.c	\
     30 	pixman-image.c			\
     31 	pixman-implementation.c		\
     32 	pixman-linear-gradient.c	\
     33 	pixman-matrix.c			\
     34 	pixman-noop.c			\
     35 	pixman-radial-gradient.c	\
     36 	pixman-region16.c		\
     37 	pixman-region32.c		\
     38 	pixman-solid-fill.c		\
     39 	pixman-timer.c			\
     40 	pixman-trap.c			\
     41 	pixman-utils.c
     42 
     43 # XXX
     44 
     45 .if ${MACHINE_ARCH} == "i386"
     46 # SSE2 requires a gcc >= 4.2
     47 SRCS+= pixman-mmx.c
     48 COPTS.pixman-mmx.c=	-mmmx -fvisibility=hidden
     49 MKDEPFLAGS+=		-mmmx -fvisibility=hidden
     50 .elif ${MACHINE_ARCH} == "x86_64"
     51 SRCS+=	pixman-mmx.c
     52 # XXX sse2 is broken with pixman 0.21.2; GCC generates unaligned accesses
     53 #SRCS+=	pixman-sse2.c
     54 COPTS.pixman-mmx.c=	-mmmx -fvisibility=hidden
     55 #COPTS.pixman-sse2.c=	-msse2 -fvisibility=hidden
     56 .endif
     57 
     58 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm"
     59 # ARM SIMD
     60 SRCS+=		pixman-arm-simd.c 		\
     61 		pixman-arm-simd-asm.S
     62 CPPFLAGS+=	-DUSE_ARM_SIMD
     63 # ARM NEON
     64 SRCS+=		pixman-arm-neon.c		\
     65 		pixman-arm-neon-asm.S		\
     66 		pixman-arm-neon-asm-bilinear.S
     67 CPPFLAGS+=	-DUSE_ARM_NEON
     68 .endif
     69 .if ${MACHINE_ARCH} == "earm"
     70 # ARM iwMMX
     71 SRCS+=		pixman-mmx.c
     72 COPTS.pixman-mmx.c=	-mcpu=iwmmxt
     73 CPPFLAGS+=	-DUSE_ARM_IWMMXT
     74 .endif
     75 
     76 # .if VMX
     77 # SRCS+=	pixman-vmx.c
     78 # .endif
     79 
     80 INCS=	pixman.h pixman-version.h
     81 INCSDIR=${X11INCDIR}/pixman-1
     82 
     83 CPPFLAGS+=	-DHAVE_CONFIG_H \
     84 		-I${X11SRCDIR.pixman}/../include \
     85 		-I${X11SRCDIR.pixman}/../combine \
     86 		-I${X11SRCDIR.pixman}/pixman
     87 
     88 # With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS
     89 CPPFLAGS+=	-DHAVE_PTHREAD_SETSPECIFIC
     90 #CPPFLAGS+=	-DTLS=__thread
     91 
     92 LIBDPLIBS=	m	${.CURDIR}/../../../../../lib/libm
     93 
     94 PKGCONFIG=	pixman-1
     95 PKGDIST=	pixman
     96 
     97 .include <bsd.x11.mk>
     98 .include <bsd.lib.mk>
     99