Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / lib / pixman / Makefile
blob63bf1127b5d35a5fd0d28b0d6620ad80a0734942
1 # $NetBSD: Makefile,v 1.32 2015/05/02 14:54:18 macallan Exp $
3 NOLINT= 1 # defined
5 .include <bsd.own.mk>
7 LIB= pixman-1
9 DIST= ${X11SRCDIR.pixman}/pixman
10 .PATH: ${DIST}
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-edge.c \
21 pixman-edge-accessors.c \
22 pixman-fast-path.c \
23 pixman-filter.c \
24 pixman-glyph.c \
25 pixman-general.c \
26 pixman-gradient-walker.c \
27 pixman-image.c \
28 pixman-implementation.c \
29 pixman-linear-gradient.c \
30 pixman-matrix.c \
31 pixman-noop.c \
32 pixman-radial-gradient.c \
33 pixman-region16.c \
34 pixman-region32.c \
35 pixman-solid-fill.c \
36 pixman-timer.c \
37 pixman-trap.c \
38 pixman-utils.c
40 SRCS+= \
41 pixman-x86.c \
42 pixman-mips.c \
43 pixman-arm.c \
44 pixman-ppc.c \
46 # XXX
48 # missing: HAVE_GCC_VECTOR_EXTENSIONS
50 .if !defined(__MINIX)
51 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
52 . if ${MACHINE_ARCH} == "i386"
53 SRCS+= pixman-mmx.c
54 COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden
55 . if defined(HAVE_LLVM)
56 COPTS.pixman-mmx.c+= -Wno-error=attributes
57 . endif
58 CPPFLAGS+= -DUSE_X86_MMX
59 MKDEPFLAGS+= -mmmx
60 . endif
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
66 .endif
67 .endif # !defined(__MINIX)
69 .if ${MACHINE_ARCH} == "powerpc"
70 SRCS+= pixman-vmx.c
71 COPTS.pixman-vmx.c= -maltivec
72 CPPFLAGS+= -DUSE_VMX
73 MKDEPFLAGS+= -maltivec
74 .endif
76 .if !empty(MACHINE_ARCH:Mearm*)
77 # ARM SIMD
78 SRCS+= pixman-arm-simd.c \
79 pixman-arm-simd-asm.S \
80 pixman-arm-simd-asm-scaled.S
81 CPPFLAGS+= -DUSE_ARM_SIMD
82 # ARM NEON
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 :}
89 # ARM iwMMX
90 #SRCS+= pixman-mmx.c
91 #COPTS.pixman-mmx.c= -mcpu=iwmmxt
92 #CPPFLAGS+= -DUSE_ARM_IWMMXT
93 .endif
95 .if ${MACHINE_ARCH} == "mips64el"
96 # Loongson MMI
97 SRCS+= pixman-mmx.c
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
101 .endif
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
115 .else
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
126 PKGCONFIG= pixman-1
127 PKGDIST= pixman
129 .include <bsd.x11.mk>
130 .include <bsd.lib.mk>