Home | History | Annotate | Line # | Download | only in pixman
Makefile revision 1.23
      1 #	$NetBSD: Makefile,v 1.23 2013/05/07 07:01:37 martin 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 SRCS+= pixman-mmx.c
     47 COPTS.pixman-mmx.c=	-mmmx -fvisibility=hidden
     48 MKDEPFLAGS+=		-mmmx -msse2 -fvisibility=hidden
     49 SRCS+=	pixman-sse2.c
     50 COPTS.pixman-sse2.c=	-msse2 -fvisibility=hidden
     51 CPPFLAGS+=	-DUSE_SSE2 -DUSE_X86_MMX
     52 .elif ${MACHINE_ARCH} == "x86_64"
     53 SRCS+=	pixman-sse2.c
     54 COPTS.pixman-sse2.c=	-msse2 -fvisibility=hidden
     55 CPPFLAGS+=	-DUSE_SSE2
     56 .endif
     57 
     58 .if ${MACHINE_ARCH} == "powerpc"
     59 SRCS+=	pixman-vmx.c
     60 COPTS.pixman-vmx.c=	-maltivec
     61 CPPFLAGS+=		-DUSE_VMX
     62 MKDEPFLAGS+=		-maltivec
     63 .endif
     64 
     65 .if ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmhf"
     66 # ARM SIMD
     67 SRCS+=		pixman-arm-simd.c 		\
     68 		pixman-arm-simd-asm.S
     69 CPPFLAGS+=	-DUSE_ARM_SIMD
     70 # ARM NEON
     71 SRCS+=		pixman-arm-neon.c		\
     72 		pixman-arm-neon-asm.S		\
     73 		pixman-arm-neon-asm-bilinear.S
     74 CPPFLAGS+=	-DUSE_ARM_NEON
     75 # ARM iwMMX
     76 #SRCS+=		pixman-mmx.c
     77 #COPTS.pixman-mmx.c=	-mcpu=iwmmxt
     78 #CPPFLAGS+=	-DUSE_ARM_IWMMXT
     79 .endif
     80 
     81 .if ${MACHINE} == "evbmips"
     82 # Loongson MMI
     83 SRCS+=		pixman-mmx.c
     84 CPPFLAGS+=	-DUSE_LOONGSON_MMI
     85 # SIMD instructions use floatpoint registers so we need to enable their use
     86 COPTS.pixman-mmx.c=	-march=loongson2f -mhard-float
     87 .endif
     88 
     89 INCS=	pixman.h pixman-version.h
     90 INCSDIR=${X11INCDIR}/pixman-1
     91 
     92 CPPFLAGS+=	-DHAVE_CONFIG_H \
     93 		-I${X11SRCDIR.pixman}/../include \
     94 		-I${X11SRCDIR.pixman}/../combine \
     95 		-I${X11SRCDIR.pixman}/pixman
     96 
     97 # With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS
     98 CPPFLAGS+=	-DHAVE_PTHREAD_SETSPECIFIC
     99 #CPPFLAGS+=	-DTLS=__thread
    100 
    101 LIBDPLIBS=	m	${.CURDIR}/../../../../../lib/libm
    102 
    103 PKGCONFIG=	pixman-1
    104 PKGDIST=	pixman
    105 
    106 .include <bsd.x11.mk>
    107 .include <bsd.lib.mk>
    108