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