1 1.25 skrll # $NetBSD: Makefile,v 1.25 2013/09/07 09:22:37 skrll Exp $ 2 1.2 rtr 3 1.2 rtr NOLINT= 1 # defined 4 1.1 mrg 5 1.1 mrg .include <bsd.own.mk> 6 1.1 mrg 7 1.1 mrg LIB= pixman-1 8 1.1 mrg 9 1.1 mrg DIST= ${X11SRCDIR.pixman}/pixman 10 1.6 veego .PATH: ${DIST} 11 1.1 mrg 12 1.15 jmcneill SRCS= \ 13 1.15 jmcneill pixman.c \ 14 1.15 jmcneill pixman-access.c \ 15 1.15 jmcneill pixman-access-accessors.c \ 16 1.15 jmcneill pixman-bits-image.c \ 17 1.15 jmcneill pixman-combine32.c \ 18 1.15 jmcneill pixman-combine-float.c \ 19 1.15 jmcneill pixman-conical-gradient.c \ 20 1.15 jmcneill pixman-edge.c \ 21 1.15 jmcneill pixman-edge-accessors.c \ 22 1.15 jmcneill pixman-fast-path.c \ 23 1.24 mrg pixman-filter.c \ 24 1.15 jmcneill pixman-glyph.c \ 25 1.15 jmcneill pixman-general.c \ 26 1.15 jmcneill pixman-gradient-walker.c \ 27 1.15 jmcneill pixman-image.c \ 28 1.15 jmcneill pixman-implementation.c \ 29 1.15 jmcneill pixman-linear-gradient.c \ 30 1.15 jmcneill pixman-matrix.c \ 31 1.15 jmcneill pixman-noop.c \ 32 1.15 jmcneill pixman-radial-gradient.c \ 33 1.15 jmcneill pixman-region16.c \ 34 1.15 jmcneill pixman-region32.c \ 35 1.15 jmcneill pixman-solid-fill.c \ 36 1.15 jmcneill pixman-timer.c \ 37 1.15 jmcneill pixman-trap.c \ 38 1.15 jmcneill pixman-utils.c 39 1.1 mrg 40 1.24 mrg SRCS+= \ 41 1.24 mrg pixman-x86.c \ 42 1.24 mrg pixman-mips.c \ 43 1.24 mrg pixman-arm.c \ 44 1.24 mrg pixman-ppc.c \ 45 1.24 mrg 46 1.1 mrg # XXX 47 1.1 mrg 48 1.10 mrg .if ${MACHINE_ARCH} == "i386" 49 1.10 mrg SRCS+= pixman-mmx.c 50 1.10 mrg COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden 51 1.23 martin MKDEPFLAGS+= -mmmx -msse2 -fvisibility=hidden 52 1.23 martin SRCS+= pixman-sse2.c 53 1.23 martin COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden 54 1.23 martin CPPFLAGS+= -DUSE_SSE2 -DUSE_X86_MMX 55 1.10 mrg .elif ${MACHINE_ARCH} == "x86_64" 56 1.20 martin SRCS+= pixman-sse2.c 57 1.20 martin COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden 58 1.20 martin CPPFLAGS+= -DUSE_SSE2 59 1.3 mrg .endif 60 1.1 mrg 61 1.19 macallan .if ${MACHINE_ARCH} == "powerpc" 62 1.19 macallan SRCS+= pixman-vmx.c 63 1.19 macallan COPTS.pixman-vmx.c= -maltivec 64 1.19 macallan CPPFLAGS+= -DUSE_VMX 65 1.19 macallan MKDEPFLAGS+= -maltivec 66 1.19 macallan .endif 67 1.19 macallan 68 1.18 jmcneill .if ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmhf" 69 1.15 jmcneill # ARM SIMD 70 1.25 skrll #SRCS+= pixman-arm-simd.c \ 71 1.25 skrll # pixman-arm-simd-asm.S \ 72 1.25 skrll # pixman-arm-simd-asm-scaled.S 73 1.25 skrll #CPPFLAGS+= -DUSE_ARM_SIMD 74 1.15 jmcneill # ARM NEON 75 1.15 jmcneill SRCS+= pixman-arm-neon.c \ 76 1.15 jmcneill pixman-arm-neon-asm.S \ 77 1.15 jmcneill pixman-arm-neon-asm-bilinear.S 78 1.15 jmcneill CPPFLAGS+= -DUSE_ARM_NEON 79 1.15 jmcneill # ARM iwMMX 80 1.22 skrll #SRCS+= pixman-mmx.c 81 1.22 skrll #COPTS.pixman-mmx.c= -mcpu=iwmmxt 82 1.22 skrll #CPPFLAGS+= -DUSE_ARM_IWMMXT 83 1.15 jmcneill .endif 84 1.15 jmcneill 85 1.21 macallan .if ${MACHINE} == "evbmips" 86 1.21 macallan # Loongson MMI 87 1.21 macallan SRCS+= pixman-mmx.c 88 1.21 macallan CPPFLAGS+= -DUSE_LOONGSON_MMI 89 1.21 macallan # SIMD instructions use floatpoint registers so we need to enable their use 90 1.21 macallan COPTS.pixman-mmx.c= -march=loongson2f -mhard-float 91 1.21 macallan .endif 92 1.21 macallan 93 1.1 mrg INCS= pixman.h pixman-version.h 94 1.1 mrg INCSDIR=${X11INCDIR}/pixman-1 95 1.1 mrg 96 1.11 mrg CPPFLAGS+= -DHAVE_CONFIG_H \ 97 1.1 mrg -I${X11SRCDIR.pixman}/../include \ 98 1.1 mrg -I${X11SRCDIR.pixman}/../combine \ 99 1.1 mrg -I${X11SRCDIR.pixman}/pixman 100 1.1 mrg 101 1.16 jmcneill # With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS 102 1.16 jmcneill CPPFLAGS+= -DHAVE_PTHREAD_SETSPECIFIC 103 1.16 jmcneill #CPPFLAGS+= -DTLS=__thread 104 1.12 mrg 105 1.7 veego LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm 106 1.7 veego 107 1.5 cube PKGCONFIG= pixman-1 108 1.5 cube PKGDIST= pixman 109 1.5 cube 110 1.1 mrg .include <bsd.x11.mk> 111 1.1 mrg .include <bsd.lib.mk> 112