1 # $NetBSD: Makefile,v 1.13 2014/03/23 20:39:40 tron Exp $
3 .
include "../../../Makefile.serverlib"
4 .
include "../../../Makefile.servermod"
7 LOADERDIR
= ${X11SRCDIR.xorg-server
}/hw
/xfree86
/${LIB}
10 SRCS
= loader.c loadext.c loadmod.c os.c sdksyms.c
12 .if
${MACHINE_ARCH} == "sparc" ||
${MACHINE_ARCH} == "sparc64"
16 CPPFLAGS
+= -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/${LIB} \
17 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/parser \
18 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/dixmods
/extmod \
19 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/vbe \
20 -I
${X11SRCDIR.xorg-server
}/miext
/cw \
21 -I
${X11SRCDIR.xorg-server
}/miext
/sync \
22 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/int10 \
23 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/ddc \
24 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/i2c \
25 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/modes \
26 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/ramdac \
27 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/common \
28 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/os-support
/bus \
29 -I
${X11SRCDIR.xorg-server
}/os \
30 -I
${X11SRCDIR.xorg-server
}/Xext \
31 -I
${X11SRCDIR.xorg-server
}/mi \
32 -I
${X11SRCDIR.xorg-server
}/xfixes \
33 -I
${DESTDIR}${X11INCDIR}/X11 \
34 -I
${DESTDIR}${X11INCDIR}/pixman-1 \
35 -I
${DESTDIR}${X11INCDIR}/xorg
37 CPPFLAGS
+= ${X11FLAGS.OS_DEFINES
} -DDLOPEN_SUPPORT
-DHAS_SHM \
41 .if
${MACHINE_ARCH} == "x86_64"
45 CPPFLAGS.loadmod.c
= ${X11FLAGS.EXTENSION
} -DDEFAULT_MODULE_PATH
=\"${X11USRLIBDIR}/modules
\"
46 CPPFLAGS.sdksyms.c
= ${X11FLAGS.EXTENSION
}
48 #COPTS.sdksyms.c= -Wno-error
49 COPTS.loadmod.c
= -Wno-error
52 CPP
=${CPP
:Q
} AWK
=${TOOL_AWK
:Q
} ${HOST_SH} $(LOADERDIR
)/sdksyms.sh
$(X11SRCDIR.xorg-server
) ${CFLAGS} ${CPPFLAGS}
54 CLEANFILES
+= sdksyms.c sdksyms.dep