This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
131 lines
2.9 KiB
Makefile
131 lines
2.9 KiB
Makefile
# $NetBSD: Makefile,v 1.32 2015/05/02 14:54:18 macallan Exp $
|
|
|
|
NOLINT= 1 # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= pixman-1
|
|
|
|
DIST= ${X11SRCDIR.pixman}/pixman
|
|
.PATH: ${DIST}
|
|
|
|
SRCS= \
|
|
pixman.c \
|
|
pixman-access.c \
|
|
pixman-access-accessors.c \
|
|
pixman-bits-image.c \
|
|
pixman-combine32.c \
|
|
pixman-combine-float.c \
|
|
pixman-conical-gradient.c \
|
|
pixman-edge.c \
|
|
pixman-edge-accessors.c \
|
|
pixman-fast-path.c \
|
|
pixman-filter.c \
|
|
pixman-glyph.c \
|
|
pixman-general.c \
|
|
pixman-gradient-walker.c \
|
|
pixman-image.c \
|
|
pixman-implementation.c \
|
|
pixman-linear-gradient.c \
|
|
pixman-matrix.c \
|
|
pixman-noop.c \
|
|
pixman-radial-gradient.c \
|
|
pixman-region16.c \
|
|
pixman-region32.c \
|
|
pixman-solid-fill.c \
|
|
pixman-timer.c \
|
|
pixman-trap.c \
|
|
pixman-utils.c
|
|
|
|
SRCS+= \
|
|
pixman-x86.c \
|
|
pixman-mips.c \
|
|
pixman-arm.c \
|
|
pixman-ppc.c \
|
|
|
|
# XXX
|
|
|
|
# missing: HAVE_GCC_VECTOR_EXTENSIONS
|
|
|
|
.if !defined(__MINIX)
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
SRCS+= pixman-mmx.c
|
|
COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden
|
|
. if defined(HAVE_LLVM)
|
|
COPTS.pixman-mmx.c+= -Wno-error=attributes
|
|
. endif
|
|
CPPFLAGS+= -DUSE_X86_MMX
|
|
MKDEPFLAGS+= -mmmx
|
|
. endif
|
|
SRCS+= pixman-sse2.c pixman-ssse3.c
|
|
COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden
|
|
COPTS.pixman-ssse3.c= -msse3 -mssse3 -fvisibility=hidden
|
|
CPPFLAGS+= -DUSE_SSE2 -DUSE_SSSE3
|
|
MKDEPFLAGS+= -msse2 -mssse3 -mssse3 -fvisibility=hidden
|
|
.endif
|
|
.endif # !defined(__MINIX)
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
SRCS+= pixman-vmx.c
|
|
COPTS.pixman-vmx.c= -maltivec
|
|
CPPFLAGS+= -DUSE_VMX
|
|
MKDEPFLAGS+= -maltivec
|
|
.endif
|
|
|
|
.if !empty(MACHINE_ARCH:Mearm*)
|
|
# ARM SIMD
|
|
SRCS+= pixman-arm-simd.c \
|
|
pixman-arm-simd-asm.S \
|
|
pixman-arm-simd-asm-scaled.S
|
|
CPPFLAGS+= -DUSE_ARM_SIMD
|
|
# ARM NEON
|
|
SRCS+= pixman-arm-neon.c \
|
|
pixman-arm-neon-asm.S \
|
|
pixman-arm-neon-asm-bilinear.S
|
|
CPPFLAGS+= -DUSE_ARM_NEON
|
|
|
|
AFLAGS+= ${${ACTIVE_CC} == "clang" :? -fno-integrated-as :}
|
|
# ARM iwMMX
|
|
#SRCS+= pixman-mmx.c
|
|
#COPTS.pixman-mmx.c= -mcpu=iwmmxt
|
|
#CPPFLAGS+= -DUSE_ARM_IWMMXT
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "mips64el"
|
|
# Loongson MMI
|
|
SRCS+= pixman-mmx.c
|
|
CPPFLAGS+= -DUSE_LOONGSON_MMI
|
|
# SIMD instructions use floatpoint registers so we need to enable their use
|
|
COPTS.pixman-mmx.c= -march=loongson2f -mhard-float
|
|
.endif
|
|
|
|
INCS= pixman.h pixman-version.h
|
|
INCSDIR=${X11INCDIR}/pixman-1
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H \
|
|
-I${X11SRCDIR.pixman}/../include \
|
|
-I${X11SRCDIR.pixman}/../combine \
|
|
-I${X11SRCDIR.pixman}/pixman
|
|
|
|
# With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS
|
|
.if !defined(__MINIX)
|
|
CPPFLAGS+= -DHAVE_PTHREAD_SETSPECIFIC
|
|
#CPPFLAGS+= -DTLS=__thread
|
|
.else
|
|
# LSC: No thread support on minix
|
|
CPPFLAGS+= -DPIXMAN_NO_TLS
|
|
|
|
.if ${ACTIVE_CC} == "gcc"
|
|
CPPFLAGS+= -I${DESTDIR}/usr/include/gcc-4.5
|
|
.endif # ${ACTIVE_CC} == "gcc"
|
|
.endif # !defined(__MINIX)
|
|
|
|
LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm
|
|
|
|
PKGCONFIG= pixman-1
|
|
PKGDIST= pixman
|
|
|
|
.include <bsd.x11.mk>
|
|
.include <bsd.lib.mk>
|