1 # $NetBSD: Makefile,v 1.32 2015/05/02 14:54:18 macallan Exp $
9 DIST
= ${X11SRCDIR.pixman
}/pixman
15 pixman-access-accessors.c \
18 pixman-combine-float.c \
19 pixman-conical-gradient.c \
21 pixman-edge-accessors.c \
26 pixman-gradient-walker.c \
28 pixman-implementation.c \
29 pixman-linear-gradient.c \
32 pixman-radial-gradient.c \
48 # missing: HAVE_GCC_VECTOR_EXTENSIONS
51 .if
${MACHINE_ARCH} == "i386" ||
${MACHINE_ARCH} == "x86_64"
52 . if
${MACHINE_ARCH} == "i386"
54 COPTS.pixman-mmx.c
= -mmmx
-fvisibility
=hidden
55 . if defined
(HAVE_LLVM
)
56 COPTS.pixman-mmx.c
+= -Wno-error
=attributes
58 CPPFLAGS
+= -DUSE_X86_MMX
61 SRCS
+= pixman-sse2.c pixman-ssse3.c
62 COPTS.pixman-sse2.c
= -msse2
-fvisibility
=hidden
63 COPTS.pixman-ssse3.c
= -msse3
-mssse3
-fvisibility
=hidden
64 CPPFLAGS
+= -DUSE_SSE2
-DUSE_SSSE3
65 MKDEPFLAGS
+= -msse2
-mssse3
-mssse3
-fvisibility
=hidden
67 .
endif # !defined(__MINIX)
69 .if
${MACHINE_ARCH} == "powerpc"
71 COPTS.pixman-vmx.c
= -maltivec
73 MKDEPFLAGS
+= -maltivec
76 .if
!empty
(MACHINE_ARCH
:Mearm
*)
78 SRCS
+= pixman-arm-simd.c \
79 pixman-arm-simd-asm.S \
80 pixman-arm-simd-asm-scaled.S
81 CPPFLAGS
+= -DUSE_ARM_SIMD
83 SRCS
+= pixman-arm-neon.c \
84 pixman-arm-neon-asm.S \
85 pixman-arm-neon-asm-bilinear.S
86 CPPFLAGS
+= -DUSE_ARM_NEON
88 AFLAGS
+= ${${ACTIVE_CC} == "clang" :?
-fno-integrated-as
:}
91 #COPTS.pixman-mmx.c= -mcpu=iwmmxt
92 #CPPFLAGS+= -DUSE_ARM_IWMMXT
95 .if
${MACHINE_ARCH} == "mips64el"
98 CPPFLAGS
+= -DUSE_LOONGSON_MMI
99 # SIMD instructions use floatpoint registers so we need to enable their use
100 COPTS.pixman-mmx.c
= -march
=loongson2f
-mhard-float
103 INCS
= pixman.h pixman-version.h
104 INCSDIR
=${X11INCDIR}/pixman-1
106 CPPFLAGS
+= -DHAVE_CONFIG_H \
107 -I
${X11SRCDIR.pixman
}/..
/include \
108 -I
${X11SRCDIR.pixman
}/..
/combine \
109 -I
${X11SRCDIR.pixman
}/pixman
111 # With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS
112 .if
!defined
(__MINIX
)
113 CPPFLAGS
+= -DHAVE_PTHREAD_SETSPECIFIC
114 #CPPFLAGS+= -DTLS=__thread
116 # LSC: No thread support on minix
117 CPPFLAGS
+= -DPIXMAN_NO_TLS
119 .if
${ACTIVE_CC} == "gcc"
120 CPPFLAGS
+= -I
${DESTDIR}/usr
/include/gcc-4.5
121 .
endif # ${ACTIVE_CC} == "gcc"
122 .
endif # !defined(__MINIX)
124 LIBDPLIBS
= m
${.CURDIR
}/..
/..
/..
/..
/..
/lib
/libm
129 .
include <bsd.x11.mk
>
130 .
include <bsd.lib.mk
>