Home | History | Annotate | Line # | Download | only in xorg-server
      1 #	$NetBSD: Makefile.servermod,v 1.10 2022/10/28 09:43:59 wiz Exp $
      2 
      3 NOFULLRELRO=	yes
      4 
      5 USE_FORT?=	yes # network server *and* setuid
      6 
      7 .include <bsd.own.mk>	# For /etc/mk.conf processing
      8 
      9 .if defined(XMODULEDIR)
     10 SHLIB_MAJOR=0
     11 
     12 # dri, dri2 and fb need to be linked statically as well?
     13 .if !defined(XMODULEDIRANDSTATIC)
     14 MKSTATICLIB:=	no
     15 .endif
     16 
     17 .else
     18 
     19 # if these aren't defined the module being built is not installed
     20 # instead it is statically linked into the xserver
     21 libinstall::
     22 moduleinstall::
     23 
     24 .endif
     25 
     26 # x11 modules that are installed need the X11FLAGS.LOADABLE's defined
     27 .if defined(XMODULEDIR)
     28 CPPFLAGS+=	${X11FLAGS.LOADABLE}
     29 .endif
     30 
     31 CPPFLAGS+=	${X11FLAGS.DIX}
     32 
     33 # IOPortBase is particularly annoying to fix
     34 COPTS+=         ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :}
     35