1 # $NetBSD: Makefile,v 1.5 2005/02/10 10:39:25 ws Exp $
3 .
include "../../../Makefile.serverlib"
6 .PATH
: ${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/${LIB}
8 SRCS
= aoutloader.c coffloader.c dlloader.c elfloader.c hash.c loader.c \
9 loadmod.c loadfont.c loadext.c os.c dixsym.c misym.c xf86sym.c \
12 CPPFLAGS
+= -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/${LIB} \
13 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/common \
14 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support \
15 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/vbe \
16 -I
${X11SRCDIR.xc
}/programs
/Xserver
/dbe \
17 -I
${X11SRCDIR.xc
}/programs
/Xserver
/Xext \
18 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/int10 \
19 -I
${X11SRCDIR.xc
}/programs
/Xserver
/mfb \
20 -I
${X11SRCDIR.xc
}/programs
/Xserver
/mi \
21 -I
${X11SRCDIR.xc
}/programs
/Xserver
/include \
22 -I
${X11SRCDIR.xc
}/programs
/Xserver
/os \
23 -I
${DESTDIR}${X11INCDIR}/X11 \
24 -I
${X11SRCDIR.xc
}/include/fonts \
25 -I
${X11SRCDIR.xc
}/lib
/font
/include \
26 -I
${X11SRCDIR.xc
}/lib
/font
/fontcache \
27 -I
${DESTDIR}${X11INCDIR}/X11
/extensions \
28 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/ddc \
29 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/i2c \
30 -I
${X11SRCDIR.xc
}/programs
/Xserver
/render \
31 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/parser \
34 CPPFLAGS
+= ${X11FLAGS.OS_DEFINES
} -DDLOPEN_SUPPORT
-DHAS_SHM \
35 -DFONTENC_COMPATIBILITY
-DXFree86LOADER
-DFONTCACHE
37 .if
${MACHINE_ARCH} == "x86_64"
38 CPPFLAGS
+= -DUseMMAP
-DDoMMAPedMerge
41 CPPFLAGS.loadmod.c
= ${X11FLAGS.EXTENSION
} -DDEFAULT_MODULE_PATH
=\"${X11USRLIBDIR}/modules
\"
42 CPPFLAGS.xf86sym.c
= ${X11FLAGS.EXTENSION
}
43 CPPFLAGS.dixsym.c
= ${X11FLAGS.EXTENSION
}
45 COPTS.coffloader.c
= -Wno-error
46 COPTS.elfloader.c
= -Wno-error