etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / server / xorg-server / hw / vfb / Makefile
blob9bc24c06bd4373eef7c711ffc9097757909428f2
1 # $NetBSD: Makefile,v 1.11 2011/08/02 09:11:38 mrg Exp $
3 .include <bsd.own.mk>
5 .include "../../Makefile.Xserver"
7 PROG= Xvfb
9 .PATH: ${X11SRCDIR.xorg-server}/hw/vfb
10 .PATH: ${X11SRCDIR.xorg-server}/hw/vfb/man
11 .PATH: ${X11SRCDIR.xorg-server}/Xext
12 .PATH: ${X11SRCDIR.xorg-server}/Xi
13 .PATH: ${X11SRCDIR.xorg-server}/mi
14 SRCS= InitInput.c InitOutput.c dpmsstubs.c miinitext.c stubs.c
16 .PATH: ${X11SRCDIR.xorg-server}/fb
17 SRCS+= fbcmap_mi.c
19 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \
20 -I${X11SRCDIR.xorg-server}/fb \
21 -I${X11SRCDIR.xorg-server}/mfb \
22 -I${X11SRCDIR.xorg-server}/mi \
23 -I${X11SRCDIR.xorg-server}/include \
24 -I${X11SRCDIR.xorg-server}/os \
25 -I${X11SRCDIR.xorg-server}/Xext \
26 -I${DESTDIR}${X11INCDIR}/X11/extensions \
27 -I${DESTDIR}${X11INCDIR}/pixman-1 \
28 -I${DESTDIR}${X11INCDIR}/xorg \
29 -I${X11SRCDIR.xorg-server}/render \
30 -DHAVE_DIX_CONFIG_H \
31 -DNO_HW_ONLY_EXTS \
32 -DNO_MODULE_EXTS \
33 -UGLXEXT
35 .if !defined(__MINIX)
36 CPPFLAGS+= ${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \
37 -DHAS_SHM -DHAS_MMAP -UXFree86LOADER
38 .else
39 CPPFLAGS+= ${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \
40 -DHAS_SHM -UXFree86LOADER
41 .endif # !defined(__MINIX)
43 .include "../../Makefile.common"
45 .if ${XSERVER_XFREE86} == "no"
46 CPPFLAGS+= -UDDXTIME
47 .endif
49 CPPFLAGS.InitInput.c= ${X11FLAGS.EXTENSION} \
50 -UGLXEXT
51 CPPFLAGS.miinitext.c= ${X11FLAGS.EXTENSION} \
52 -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS \
53 -UXFree86LOADER \
54 -UGLXEXT
55 CPPFLAGS.dpmsstubs.c= ${X11FLAGS.EXTENSION} \
56 -UGLXEXT
58 COPTS.InitInput.c= -Wno-error
59 COPTS.InitOutput.c= -Wno-error
61 LDADD+= ${LDADD.dix} \
62 ${LDADD.fb} \
63 ${LDADD.mi} \
64 ${LDADD.xfixes} \
65 ${LDADD.Xext} \
66 ${LDADD.config} \
67 ${LDADD.dbe} \
68 ${LDADD.record} \
69 ${LDADD.randr} \
70 ${LDADD.render} \
71 ${LDADD.damageext} \
72 ${LDADD.miext/damage} \
73 ${LDADD.miext/shadow} \
74 ${LDADD.miext/sync} \
75 ${LDADD.Xi} \
76 ${LDADD.xkb} \
77 ${LDADD.xkbstubs} \
78 ${LDADD.composite} \
79 ${LDADD.os} \
80 ${LDADD.glx} \
81 -lXfont \
82 -lfreetype \
83 -lXau \
84 -lfontenc \
85 ${LIBCWRAPPER} \
86 -lpixman-1 \
87 -lXdmcp \
88 -lz \
89 -lm \
90 -lcrypto
92 DPADD+= ${DPADD.dix} \
93 ${DPADD.fb} \
94 ${DPADD.mi} \
95 ${DPADD.xfixes} \
96 ${DPADD.Xext} \
97 ${DPADD.config} \
98 ${DPADD.dbe} \
99 ${DPADD.record} \
100 ${DPADD.render} \
101 ${DPADD.randr} \
102 ${DPADD.damageext} \
103 ${DPADD.miext/damage} \
104 ${DPADD.miext/shadow} \
105 ${DPADD.miext/sync} \
106 ${DPADD.Xi} \
107 ${DPADD.xkb} \
108 ${DPADD.xkbstubs} \
109 ${DPADD.composite} \
110 ${DPADD.os} \
111 ${DPADD.glx} \
112 ${LIBXFONT} \
113 ${LIBFREETYPE} \
114 ${LIBXAU} \
115 ${LIBFONTENC} \
116 ${LIBPIXMAN1} \
117 ${LIBXDMCP} \
118 ${LIBZ} \
119 ${LIBM} \
120 ${LIBCRYPTO}
122 .if !defined(__MINIX)
123 .if ${MACHINE_ARCH} == "i386"
124 LDADD+= -li386
125 DPADD+= ${LIBI386}
126 .endif
128 .if ${MACHINE_ARCH} == "x86_64"
129 LDADD+= -lx86_64
130 DPADD+= ${LIBX86_64}
131 .endif
133 .if ${MACHINE_ARCH} == "alpha"
134 LDADD+= -lalpha
135 DPADD+= ${LIBALPHA}
136 .endif
137 .endif # !defined(__MINIX)
139 COPTS.miinitext.c+= -Wno-error # XXX xf86bigfstr.h
141 .include <bsd.x11.mk>
142 .include <bsd.prog.mk>