# $NetBSD: Makefile,v 1.42 2022/12/17 09:46:21 mrg Exp $ NOLINT= 1 # defined .include 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 ${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 -msse3 -mssse3 -fvisibility=hidden .endif .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 # ARM NEON SRCS+= pixman-arm-neon.c \ pixman-arm-neon-asm.S \ pixman-arm-neon-asm-bilinear.S AFLAGS+= ${${ACTIVE_CC} == "clang" :? -fno-integrated-as :} # ARM iwMMX #SRCS+= pixman-mmx.c #COPTS.pixman-mmx.c= -mcpu=iwmmxt .endif .if !empty(MACHINE_ARCH:Maarch64*) # XXX not yet; new pixman bad on arm64. # ARM64 NEON #SRCS+= pixman-arm-neon.c \ # pixman-arma64-neon-asm.S \ # pixman-arma64-neon-asm-bilinear.S #CPPFLAGS+= -DUSE_ARM_A64_NEON # # XXX: not sure if needed? #AFLAGS+= ${${ACTIVE_CC} == "clang" :? -fno-integrated-as :} .endif .if !empty(MACHINE_ARCH:Mmips*64el) && empty(COPTS:M-march=*) # 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 -Wa,-mhard-float .endif .if ${MACHINE_CPU} == "sh3" # XXX pixman-fast-path.c:1204:1: internal compiler error: Segmentation fault COPTS.pixman-fast-path.c+= -O1 .endif .include "Makefile.cflags" INCS= pixman.h pixman-version.h INCSDIR=${X11INCDIR}/pixman-1 # With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS CPPFLAGS+= -DHAVE_PTHREAD_SETSPECIFIC #CPPFLAGS+= -DTLS=__thread LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm PKGCONFIG= pixman-1 PKGDIST= pixman .include .include d>Apply the following patch submitted by Evgeniy Ivanov:tsutsui 2011-06-16Add an optional MD calling convention flag for use in libsa when spacejoerg 2009-01-17Remove __P().tsutsui 2008-11-19For the x86 boot loader, autoload a kernel module corresponding to thead 2008-03-25- use mem* instead of b* routines, and kill the b* routines.christos 2007-11-24style, indent, and ANSI-fy.isaki 2007-02-25Add missing newlines to debug messages.uwe 2006-12-29remove nqnfs from comments. from Arnaud Lacombe.yamt 2006-01-25free -> deallocchristos 2005-12-11merge ktrace-lwp.christos 2005-02-26nuke trailing whitespaceperry 2003-09-04Um, undo last; libsa printf doesn't do %z.he 2003-09-04Use the %zu format for size_t printing instead of cast + %lu.he 2003-09-03Cast size_t to u_long before printing, and use %lu instead of %d as format.he 2003-08-31Fix signed/unsigned warnings.fvdl 2003-08-18make 'path' argument to ufs_open 'const char *' and fix the fallout.dsl 2003-03-18Move some stuff into .rodata.mycroft 2003-03-12no need to include "netif.h" anymoredrochner 2000-03-30Kill some more register declarations.augustss 1999-11-23Remove leading '/' from pathnames, using same logic as ufs.c. Allows newsimonb 1999-11-13Backout my libsa changes.thorpej 1999-11-11Update for the improvements to libsa, and don't reference libkern.h.thorpej 1999-03-31Make a bunch of backward-compatible changes to the boot blocks which allowcgd 1999-02-11Add missing prototypes.pk 1998-01-23Fix some debugging printf formats.thorpej 1997-06-26Avoid user space headers for standalone programs.drochner 1997-06-16Conditionally compile without symlink support (#ifdef NFS_NOSYMLINK).drochner 1996-12-27Add missing `#ifdef NFS_DEBUG' (from Rolf Grossmann; PR#3061).pk 1996-10-13backout previous kprintf changeschristos 1996-10-10printf -> kprintf, sprintf -> ksprintfchristos 1996-10-02fix several endianness bugs that caused name lookup (!!) and symlinkcgd 1996-09-30Add support for booting from cd9660 fsws