# $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}