xref: /netbsd-src/external/mit/xorg/server/xorg-server/hw/xfree86/Makefile (revision 500db002748d9818288e46e10f026a2b09548086)
1#	$NetBSD: Makefile,v 1.25 2009/02/14 13:32:13 abs Exp $
2
3SUBDIR=		common init ddc dixmods doc dri dummy i2c int10 loader \
4		xf86modes exa \
5		xorgos rac ramdac scanpci pcidata shadowfb vbe vgahw \
6		x86emu xaa xf1bpp xf4bpp xf8_16bpp xf8_32bpp xf86config
7
8SUBDIR+=	.WAIT utils
9
10.include <bsd.own.mk>
11
12.include "../../Makefile.Xserver"
13
14PROG=		Xorg
15BINMODE=	4711
16
17.PATH:		${X11SRCDIR.xorg-server}/hw/xfree86
18SRCS=		xorg.c
19
20CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 \
21		-I${X11SRCDIR.xc}/include/fonts \
22		-I${X11SRCDIR.xorg-server}/fb \
23		-I${X11SRCDIR.xorg-server}/mfb \
24		-I${X11SRCDIR.xorg-server}/mi \
25		-I${X11SRCDIR.xorg-server}/include \
26		-I${X11SRCDIR.xorg-server}/os \
27		-I${X11SRCDIR.xorg-server}/Xext \
28		-I${DESTDIR}${X11INCDIR}/X11/extensions \
29		-I${DESTDIR}${X11INCDIR}/pixman-1 \
30		-I${DESTDIR}${X11INCDIR}/xorg \
31		-I${X11SRCDIR.xorg-server}/render \
32		-DHAVE_DIX_CONFIG_H
33
34CPPFLAGS+=	${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \
35		${X11FLAGS.EXTENSION}
36
37LDFLAGS+=	-rdynamic
38
39LDADD+=	-Wl,--whole-archive
40LDADD+=	${LDADD.dix}
41LDADD+=	${LDADD.hw/xfree86/init}
42LDADD+=	${LDADD.config}
43LDADD+=	${LDADD.hw/xfree86/loader}
44LDADD+=	${LDADD.hw/xfree86/common}
45LDADD+=	${LDADD.hw/xfree86/xorgos}
46#LDADD+=	${LDADD.osandcommon}
47LDADD+=	${LDADD.hw/xfree86/rac}
48LDADD+=	${LDADD.hw/xfree86/xf86config}
49LDADD+=	${LDADD.hw/xfree86/dixmods}
50LDADD+=	${LDADD.hw/xfree86/xf86modes}
51LDADD+=	${LDADD.hw/xfree86/ramdac}
52LDADD+=	${LDADD.hw/xfree86/ddc}
53LDADD+=	${LDADD.hw/xfree86/i2c}
54LDADD+=	${LDADD.composite}
55LDADD+=	${LDADD.mi}
56LDADD+=	${LDADD.xfixes}
57LDADD+=	${LDADD.Xext/Xextbuiltin}
58LDADD+=	${LDADD.render}
59LDADD+=	${LDADD.randr}
60LDADD+=	${LDADD.damageext}
61LDADD+=	${LDADD.miext/damage}
62LDADD+=	${LDADD.miext/shadow}
63LDADD+=	${LDADD.miext/cw}
64LDADD+=	${LDADD.Xi}
65LDADD+=	${LDADD.xkb}
66LDADD+=	${LDADD.dix/xpstubs}
67LDADD+=	${LDADD.os}
68LDADD+=	${LDADD.hw/xfree86/dixmods/fb}
69LDADD+=	${LDADD.hw/xfree86/dixmods/xorgxkb}
70LDADD+=	-lpixman-1 -lXfont -lfreetype -lXau -lfontenc -lXdmcp
71LDADD+=	-Wl,--no-whole-archive
72
73.if ${MACHINE_ARCH} == "i386"
74LDADD+=	-li386
75DPADD+=	${LIBI386}
76.elif ${MACHINE_ARCH} == "x86_64"
77LDADD+=	-lx86_64
78DPADD+=	${LIBX86_64}
79.elif ${MACHINE_ARCH} == "alpha"
80LDADD+=	-lalpha
81DPADD+=	${LIBALPHA}
82.endif
83
84LDADD+=	-lm
85
86DPADD+=	${DPADD.dix} \
87	${DPADD.fb} \
88	${DPADD.mi} \
89	${DPADD.xfixes} \
90	${DPADD.Xext} \
91	${DPADD.config} \
92	${DPADD.dbe} \
93	${DPADD.XTrap} \
94	${DPADD.record} \
95	${DPADD.render} \
96	${DPADD.randr} \
97	${DPADD.damageext} \
98	${DPADD.miext/damage} \
99	${DPADD.miext/shadow} \
100	${DPADD.miext/cw} \
101	${DPADD.Xi} \
102	${DPADD.xkb} \
103	${DPADD.composite} \
104	${DPADD.os} \
105	${DPADD.hw/xfree86/dixmods/fb} \
106	${DPADD.dix/xpstubs} \
107	${DPADD.hw/xfree86/fb} \
108	${DPADD.hw/xfree86/init} \
109	${DPADD.hw/xfree86/loader} \
110	${DPADD.hw/xfree86/rac} \
111	${DPADD.hw/xfree86/xf86config} \
112	${DPADD.hw/xfree86/dixmods} \
113	${DPADD.hw/xfree86/xf86modes} \
114	${DPADD.hw/xfree86/ramdac} \
115	${DPADD.hw/xfree86/ddc} \
116	${DPADD.hw/xfree86/i2c} \
117	${LIBCWRAPPER} \
118	${LIBXFONT} ${LIBFREETYPE} ${LIBXAU} ${LIBFONTENC} \
119	${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM}
120
121SYMLINKS=	${X11BINDIR}/Xorg ${X11BINDIR}/X
122
123# XXX
124#Xorg.1: Xorg.man.pre
125#	cp ${.ALLSRC} ${.TARGET}
126MKMAN=	no
127
128.include <bsd.x11.mk>
129.include <bsd.prog.mk>
130.include <bsd.subdir.mk>
131