summaryrefslogtreecommitdiff
path: root/external/mit/xorg/server/xorg-server/Makefile.Xserver
blob: 3a4f9607fdfb5340e2f42608c04dcf854f309430 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#	$NetBSD: Makefile.Xserver,v 1.25 2022/07/21 22:51:23 mrg Exp $

.for _SL in \
	mi \
	config \
	fb \
	xfixes \
	Xext \
	dbe \
	present \
	pseudoramiX \
	record \
	render \
	randr \
	damageext \
	miext/damage \
	miext/shadow \
	miext/sync \
	Xi \
	xkb \
	xkbstubs \
	composite \
	dix/xpstubs \
	os \
	dix \
	dri3 \
	config \
	glx \
	hw/xnest \
	hw/xfree86/common \
	hw/xfree86/ddc \
	hw/xfree86/dixmods \
	hw/xfree86/dixmods/shadow \
	hw/xfree86/dixmods/wfb \
	hw/xfree86/doc \
	hw/xfree86/dri \
	hw/xfree86/dri2 \
	hw/xfree86/dummy \
	hw/xfree86/i2c \
	hw/xfree86/int10 \
	hw/xfree86/loader \
	hw/xfree86/xorgos \
	hw/xfree86/ramdac \
	hw/xfree86/shadowfb \
	hw/xfree86/utils \
	hw/xfree86/vbe \
	hw/xfree86/vgahw \
	hw/xfree86/x86emu \
	hw/xfree86/xf86config \
	hw/xfree86/xf86modes \
	hw/xfree86/xkb

.if !defined(LIBDIR.${_SL})
LIBDIR.${_SL}!=	cd ${NETBSDSRCDIR}/external/mit/xorg/server/${XORG_SERVER_SUBDIR}/${_SL} && ${PRINTOBJDIR}
.MAKEOVERRIDES+=LIBDIR.${_SL}
.endif
LDADD.${_SL}=	${LIBDIR.${_SL}}/lib${_SL:T}.a
DPADD.${_SL}=	${LIBDIR.${_SL}}/lib${_SL:T}.a
.endfor

LDADD.XORG_CORE=	${LDADD.dix} ${LDADD.config}
DPADD.XORG_CORE=	${DPADD.dix} ${DPADD.config}

# X servers cannot load certain modules when built with BIND_NOW
NOFULLRELRO=	yes

# X servers need all symbols exported
LDFLAGS+=	-Wl,--export-dynamic

LDFLAGS+=	-pthread
CFLAGS+=	-pthread

CPPFLAGS+=	-I${X11SRCDIR.xorg-server}/include \
		-I${X11SRCDIR.xorg-server}/Xext \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${X11SRCDIR.xorg-server}/../include

LDADD+=		-lm -lexecinfo
DPADD+=		${LIBM} ${LIBEXECINFO}