summaryrefslogtreecommitdiff
path: root/external/mit/xorg/lib/libxshmfence/Makefile
blob: 29dc3383395175411a51b0bc267d2ad84582a810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#	$NetBSD: Makefile,v 1.6 2017/03/05 11:52:39 mrg Exp $

.include <bsd.own.mk>

LIB=	xshmfence

XSHMFENCEDIR=	${X11SRCDIR.${LIB}}
.PATH:		${XSHMFENCEDIR}/src
SRCS=	 	xshmfence_alloc.c xshmfence_semaphore.c

INCS=	xshmfence.h
INCSDIR=${X11INCDIR}/X11

CPPFLAGS+=	-DSHMDIR=\"/var/shm\"
CPPFLAGS+=	-DHAVE_SEMAPHORE
# XXX
CPPFLAGS+=	-DLIBXSHM_PAGESIZE=4096

LDADD+=	-lrt
DPADD+=	${LIBRT}

NOMAN=	# defined

PKGDIST=	${LIB}
# XXX PTHREAD_LIBS really should be -pthread for more general
# XXX but the package doesn't really do this.
PKGCONFIG_SED_FLAGS= \
        -e "s,@XPROTO_CFLAGS@,-I${X11INCDIR},; \
	    s,@PTHREAD_LIBS@,-lpthread,"

COPTS.xshmfence_semaphore.c += -Wno-stack-protector

.if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc"
COPTS.xshmfence_semaphore.c+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
.endif

.include <bsd.x11.mk>
.include <bsd.lib.mk>