Makefile.servermod revision 1.7 1 # $NetBSD: Makefile.servermod,v 1.7 2024/01/27 10:57:04 tsutsui Exp $
2
3 NOFULLRELRO= yes
4
5 .include <bsd.own.mk> # For /etc/mk.conf processing
6
7 .if defined(XMODULEDIR)
8 SHLIB_MAJOR=0
9
10 # dri, dri2 and fb need to be linked statically as well?
11 .if !defined(XMODULEDIRANDSTATIC)
12 MKSTATICLIB:= no
13 .endif
14
15 .else
16
17 # if these aren't defined the module being built is not installed
18 # instead it is statically linked into the xserver
19 libinstall::
20 moduleinstall::
21
22 .endif
23
24 # x11 modules that are installed need the X11FLAGS.LOADABLE's defined
25 .if defined(XMODULEDIR)
26 CPPFLAGS+= ${X11FLAGS.LOADABLE}
27 .endif
28
29 # IOPortBase is particularly annoying to fix
30 COPTS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :}
31