xref: /netbsd-src/external/mit/xorg/server/xorg-server/Makefile.servermod (revision 7863ba460b0a05b553c754e5dbc29247dddec322)
1#	$NetBSD: Makefile.servermod,v 1.4 2016/01/25 18:00:26 christos Exp $
2
3.include <bsd.own.mk>	# For /etc/mk.conf processing
4
5.if defined(XMODULEDIR)
6SHLIB_MAJOR=0
7
8# dri, dri2 and fb need to be linked statically as well?
9.if !defined(XMODULEDIRANDSTATIC)
10MKSTATICLIB:=	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
17libinstall::
18moduleinstall::
19
20.endif
21
22# x11 modules that are installed need the X11FLAGS.LOADABLE's defined
23.if defined(XMODULEDIR)
24CPPFLAGS+=	${X11FLAGS.LOADABLE}
25.endif
26