xenocara/lib/fontconfig/Makefile.inc
matthieu da8e23aecc Only use atomic gcc builtins on arches that support them.
With help of kettenis@ guenther@ and miod@.
2013-03-19 17:53:11 +00:00

26 lines
750 B
Makefile

# $OpenBSD: Makefile.inc,v 1.2 2013/03/19 17:53:11 matthieu Exp $
X11BASE ?= /usr/X11R6
FC_CACHEDIR = /var/cache/fontconfig
BASECONFIGDIR = /etc/fonts
MANDIR = ${X11BASE}/man/man
CFLAGS += -Wall -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
-Wnested-externs -fno-strict-aliasing
CFLAGS += -DHAVE_CONFIG_H
CFLAGS += -I${FONTCONFIG} \
-I${X11BASE}/include -I${X11BASE}/include/freetype2 \
-I${.CURDIR}/../src -I${FONTCONFIG}/src \
-I${.CURDIR}/../common \
-I${.CURDIR}
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sparc64"
CFLAGS += -DHAVE_INTEL_ATOMIC_PRIMITIVES=1
.endif
NOPROFILE =