libXfixes:moved to "simplified /usr"
[nyanlinux.git] / builders / xserver-sh-069ad69efe166105b8d2280bf2fb217d522b68a9 / contrib / linux-glibc.sh
blobe231d316c9ae26a25042ce1841a10d0401c8b797
1 #!/bin/sh
2 version_0=21
3 version_1=1
4 version_2=99
5 version_3=1
6 #===================================================================================================
7 # build dir and src dir
8 build_dir=$(readlink -f .)
9 printf "build_dir=$build_dir\n"
10 # we are in contrib subdir
11 src_dir=$(readlink -f $(dirname $0)/..)
12 printf "src_dir=$src_dir\n"
13 #===================================================================================================
14 # the current configur-able variables may be individually overridden with the
15 # content of the file in $1 or $build_dir/local_conf.sh. Look for "unset" in
16 # those scripts to find what you can override to tune the build.
17 if test -f "$1"; then
18 . "$1"
19 else
20 if test -f $build_dir/local_conf.sh; then
21 . $build_dir/local_conf.sh
24 #===================================================================================================
25 if test "${sysconfdir-unset}" = unset; then
26 sysconfdir='/etc'
28 #===================================================================================================
29 if test "${defaultfontdir-unset}" = unset; then
30 defaultfontdir='/usr/share/fonts'
32 #===================================================================================================
33 if test "${miscconfigdir-unset}" = unset; then
34 miscconfigdir='/usr/lib/xorg'
36 #===================================================================================================
37 if test "${dridriverpath-unset}" = unset; then
38 dridriverpath='/usr/lib/dri'
40 #===================================================================================================
41 if test "${projectroot-unset}" = unset; then
42 # careful, will be used to configure some source files, no idea if it is benign
43 projectroot=/usr
45 if test "${bindir_store-unset}" = unset; then
46 bindir_store=/usr/store/xserver/git/bin
48 if test "${bindir_store_virtual-unset}" = unset; then
49 bindir_store_virtual=/usr/store/xserver/current/bin
51 if test "${bindir-unset}" = unset; then
52 bindir=/usr/bin
54 #===================================================================================================
55 if test "${xkbbasedir-unset}" = unset; then
56 xkbbasedir='/usr/share/X11/xkb'
58 #===================================================================================================
59 if test "${xkbbindir-unset}" = unset; then
60 xkbbindir='/usr/bin'
62 #===================================================================================================
63 if test "${xkmoutputdir-unset}" = unset; then
64 xkmoutputdir='/usr/share/X11/xkb/compiled'
66 #===================================================================================================
67 if test "${module_store-unset}" = unset; then
68 module_store='/usr/store/xserver/git/modules'
70 if test "${module_store_virtual-unset}" = unset; then
71 module_store_virtual='/usr/store/xserver/current/modules'
73 if test "${defaultmodulepath-unset}" = unset; then
74 defaultmodulepath='/usr/lib/xorg/modules'
76 #===================================================================================================
77 if test "${defaultlibrarypath-unset}" = unset; then
78 defaultlibrarypath='/usr/lib'
80 #===================================================================================================
81 if test "${defaultlogdir-unset}" = unset; then
82 defaultlogdir='/var/log'
84 #===================================================================================================
85 if test "${datadir-unset}" = unset; then
86 datadir='/usr/share'
88 #===================================================================================================
89 if test "${incdir_store-unset}" = unset; then
90 incdir_store=/usr/store/xserver/git/include
92 if test "${incdir_store_virtual-unset}" = unset; then
93 incdir_store_virtual=/usr/store/xserver/current/include
95 #===================================================================================================
96 if test "${cpp-unset}" = unset; then
97 cpp=false
99 #===================================================================================================
100 if test "${cc-unset}" = unset; then
101 cc=false
103 #===================================================================================================
104 # you must use binutils ld export-dynamic option because dynamically loaded modules will refer back
105 # to symbols in the xorg binary
106 if test "${xorg_ccld_prolog-unset}" = unset; then
107 xorg_ccld_prolog=false
109 if test "${xorg_ccld_epilog-unset}" = unset; then
110 xorg_ccld_epilog=
112 #===================================================================================================
113 # this template expect the variable "module_name" to be defined
114 if test "${module_ccld_prolog_tmpl-unset}" = unset; then
115 module_ccld_prolog_tmpl=false
117 if test "${module_ccld_epilog_tmpl-unset}" = unset; then
118 module_ccld_epilog_tmpl=
120 #===================================================================================================
121 if test "${ar_rcs-unset}" = unset; then
122 ar_rcs=false
124 #===================================================================================================
125 if test "${awk-unset}" = unset; then
126 awk=false
128 #===================================================================================================
129 if test "${xorgproto_cppflags-unset}" = unset; then
130 xorgproto_cppflags=
132 #===================================================================================================
133 if test "${xtrans_cppflags-unset}" = unset; then
134 xtrans_cppflags=
136 #===================================================================================================
137 if test "${libxcvt_cppflags-unset}" = unset; then
138 libxcvt_cppflags=
140 if test "${libxcvt_ldflags-unset}" = unset; then
141 libxcvt_ldflags=
143 #===================================================================================================
144 if test "${mesa_gl_cppflags-unset}" = unset; then
145 mesa_gl_cppflags=
147 if test "${mesa_gl_ldflags-unset}" = unset; then
148 mesa_gl_ldflags=
150 if test "${mesa_gbm_ldflags-unset}" = unset; then
151 mesa_gbm_ldflags=
153 #===================================================================================================
154 if test "${libxkbfile_cppflags-unset}" = unset; then
155 libxkbfile_cppflags=
157 #===================================================================================================
158 if test "${pixman_cppflags-unset}" = unset; then
159 pixman_cppflags=
161 if test "${pixman_ldflags-unset}" = unset; then
162 pixman_ldflags=
164 #===================================================================================================
165 # why? we are server side
166 if test "${libX11_cppflags-unset}" = unset; then
167 libX11_cppflags=
169 #===================================================================================================
170 # why? we are server side
171 if test "${libxcb_cppflags-unset}" = unset; then
172 libxcb_cppflags=
174 #===================================================================================================
175 # used by the server
176 if test "${libxau_cppflags-unset}" = unset; then
177 libxau_cppflags=
179 if test "${libxau_ldflags-unset}" = unset; then
180 libxau_ldflags=
182 #===================================================================================================
183 # used by the server
184 if test "${libxfont2_cppflags-unset}" = unset; then
185 libxfont2_cppflags=
187 if test "${libxfont2_ldflags-unset}" = unset; then
188 libxfont2_ldflags=
190 #===================================================================================================
191 if test "${libfontenc_cppflags-unset}" = unset; then
192 libfontenc_cppflags=
194 #===================================================================================================
195 if test "${freetype_cppflags-unset}" = unset; then
196 freetype_cppflags=
198 #===================================================================================================
199 if test "${zlib_cppflags-unset}" = unset; then
200 zlib_cppflags=
202 #===================================================================================================
203 if test "${libpng_cppflags-unset}" = unset; then
204 libpng_cppflags=
206 #===================================================================================================
207 if test "${libxshmfence_cppflags-unset}" = unset; then
208 libxshmfence_cppflags=
210 if test "${libxshmfence_ldflags-unset}" = unset; then
211 libxshmfence_ldflags=
213 #===================================================================================================
214 if test "${ssl_cppflags-unset}" = unset; then
215 ssl_cppflags=
217 if test "${ssl_ldflags-unset}" = unset; then
218 ssl_ldflags=
220 #===================================================================================================
221 if test "${libdrm_cppflags-unset}" = unset; then
222 libdrm_cppflags=
224 if test "${libdrm_ldflags-unset}" = unset; then
225 libdrm_ldflags=
227 #===================================================================================================
228 if test "${libepoxy_cppflags-unset}" = unset; then
229 libepoxy_cppflags=
231 if test "${libepoxy_ldflags-unset}" = unset; then
232 libepoxy_ldflags=
234 #===================================================================================================
235 if test "${libudev_cppflags-unset}" = unset; then
236 libudev_cppflags=
238 if test "${libudev_ldflags-unset}" = unset; then
239 libudev_ldflags=
241 #===================================================================================================
242 if test "${libpciaccess_cppflags-unset}" = unset; then
243 libpciaccess_cppflags=
245 if test "${libpciaccess_ldflags-unset}" = unset; then
246 libpciaccess_ldflags=
248 #===================================================================================================
249 if test "${libglvnd_cppflags-unset}" = unset; then
250 libglvnd_cppflags=
252 if test "${libglvnd_gl_ldflags-unset}" = unset; then
253 libglvnd_gl_ldflags=
255 #===================================================================================================
256 mkdir -p $build_dir/dix
257 sed -e "s:@sysconfdir@:$sysconfdir:g" \
258 -e "s:@miscconfigpath@:$miscconfigpath:g" \
259 -e "s:@defaultfontdir@:$defaultfontdir:g" \
260 -e "s:@dridriverpath@:$dridriverpath:g" \
261 -e "s:@projectroot@:$projectroot:g" \
262 -e "s:@version_0@:$version_0:g" \
263 -e "s:@version_1@:$version_1:g" \
264 -e "s:@version_2@:$version_2:g" \
265 <$src_dir/contrib/dix-config.h.in \
266 >$build_dir/dix/dix-config.h
267 #---------------------------------------------------------------------------------------------------
268 mkdir -p $build_dir/include
269 sed -e "s:@version_0@:$version_0:g" \
270 -e "s:@version_1@:$version_1:g" \
271 -e "s:@version_2@:$version_2:g" \
272 -e "s:@version_2@:$version_3:g" \
273 <$src_dir/contrib/version-config.h.in \
274 >$build_dir/include/version-config.h
275 #---------------------------------------------------------------------------------------------------
276 mkdir -p $build_dir/include
277 sed -e "s:@xkbbasedir@:$xkbbasedir:g" \
278 -e "s:@xkbbindir@:$xkbbindir:g" \
279 -e "s:@xkmoutputdir@:$xkmoutputdir:g" \
280 <$src_dir/contrib/xkb-config.h.in \
281 >$build_dir/include/xkb-config.h
282 #===================================================================================================
283 unknown_cppflags="\
284 -D_DEFAULT_SOURCE \
285 -D_BSD_SOURCE \
286 -DHAS_FCHOWN \
287 -DHAS_STICKY_DIR_BIT \
289 xserver_cppflags="\
290 -DHAVE_CONFIG_H \
291 -DHAVE_DIX_CONFIG_H \
292 -DHAVE_MODESETTING_DRIVER \
293 -DXORG_NO_SDKSYMS \
295 cppflags="\
296 $unknown_cppflags \
297 $xserver_cppflags \
298 $xorgproto_cppflags \
299 $xtrans_cppflags \
300 $libxcvt_cppflags \
301 $pixman_cppflags \
302 $libx11_cppflags \
303 $libxcb_cppflags \
304 $libxau_cppflags \
305 $libxfont2_cppflags \
306 $libfontenc_cppflags \
307 $freetype_cppflags \
308 $zlib_cppflags \
309 $libpng_cppflags \
310 $libxshmfence_cppflags \
311 $ssl_cppflags \
312 $libxkbfile_cppflags \
313 $libglvnd_cppflags \
314 $mesa_gl_cppflags \
315 $libdrm_cppflags \
316 $libepoxy_cppflags \
317 $libudev_cppflags \
318 $libpciaccess_cppflags \
319 -I$build_dir/dix \
320 -I$src_dir/dix \
321 -I$build_dir/include \
322 -I$src_dir/include \
323 -I$src_dir/glamor \
324 -I$src_dir/glx \
325 -I$src_dir/Xext \
326 -I$src_dir/composite \
327 -I$src_dir/damageext \
328 -I$src_dir/xfixes \
329 -I$src_dir/Xi \
330 -I$src_dir/mi \
331 -I$src_dir/miext/sync \
332 -I$src_dir/miext/shadow \
333 -I$src_dir/miext/damage \
334 -I$src_dir/render \
335 -I$src_dir/randr \
336 -I$src_dir/fb \
337 -I$src_dir/dbe \
338 -I$src_dir/present \
339 -I$src_dir/dri3 \
340 -I$build_dir \
341 -I$src_dir \
343 #===================================================================================================
344 dix_c_files="\
345 $src_dir/dix/atom.c \
346 $src_dir/dix/color.c \
347 $src_dir/dix/colormap.c \
348 $src_dir/dix/cursor.c \
349 $src_dir/dix/devices.c \
350 $src_dir/dix/dispatch.c \
351 $src_dir/dix/dixfonts.c \
352 $src_dir/dix/events.c \
353 $src_dir/dix/main.c \
354 $src_dir/dix/dixutils.c \
355 $src_dir/dix/enterleave.c \
356 $src_dir/dix/eventconvert.c \
357 $src_dir/dix/extension.c \
358 $src_dir/dix/gc.c \
359 $src_dir/dix/getevents.c \
360 $src_dir/dix/gestures.c \
361 $src_dir/dix/globals.c \
362 $src_dir/dix/glyphcurs.c \
363 $src_dir/dix/grabs.c \
364 $src_dir/dix/initatoms.c \
365 $src_dir/dix/inpututils.c \
366 $src_dir/dix/pixmap.c \
367 $src_dir/dix/privates.c \
368 $src_dir/dix/property.c \
369 $src_dir/dix/ptrveloc.c \
370 $src_dir/dix/region.c \
371 $src_dir/dix/registry.c \
372 $src_dir/dix/resource.c \
373 $src_dir/dix/selection.c \
374 $src_dir/dix/swaprep.c \
375 $src_dir/dix/swapreq.c \
376 $src_dir/dix/tables.c \
377 $src_dir/dix/touch.c \
378 $src_dir/dix/window.c \
380 $src_dir/dix/stubmain.c \
382 mkdir -p $build_dir/dix
383 for f in $dix_c_files
385 dix_obj=$build_dir/dix/$(basename $f .c).o
386 dix_objs="$dix_objs $dix_obj"
388 $cc $cppflags $f -o $dix_obj &
389 done
390 #===================================================================================================
391 fb_c_files_with_wrapper="\
392 $src_dir/fb/fballpriv.c \
393 $src_dir/fb/fbarc.c \
394 $src_dir/fb/fbbits.c \
395 $src_dir/fb/fbblt.c \
396 $src_dir/fb/fbbltone.c \
397 $src_dir/fb/fbcmap_mi.c \
398 $src_dir/fb/fbcopy.c \
399 $src_dir/fb/fbfill.c \
400 $src_dir/fb/fbfillrect.c \
401 $src_dir/fb/fbfillsp.c \
402 $src_dir/fb/fbgc.c \
403 $src_dir/fb/fbgetsp.c \
404 $src_dir/fb/fbglyph.c \
405 $src_dir/fb/fbimage.c \
406 $src_dir/fb/fbline.c \
407 $src_dir/fb/fboverlay.c \
408 $src_dir/fb/fbpict.c \
409 $src_dir/fb/fbpixmap.c \
410 $src_dir/fb/fbpoint.c \
411 $src_dir/fb/fbpush.c \
412 $src_dir/fb/fbscreen.c \
413 $src_dir/fb/fbseg.c \
414 $src_dir/fb/fbsetsp.c \
415 $src_dir/fb/fbsolid.c \
416 $src_dir/fb/fbtile.c \
417 $src_dir/fb/fbtrap.c \
418 $src_dir/fb/fbutil.c \
419 $src_dir/fb/fbwindow.c \
421 mkdir -p $build_dir/fb
422 for f in $fb_c_files_with_wrapper
424 fb_obj=$build_dir/fb/fb_$(basename $f .c).o
425 fbw_obj=$build_dir/fb/fbw_$(basename $f .c).o
426 fb_objs="$fb_objs $fb_obj"
427 fbw_objs="$fbw_objs $fbw_obj"
429 $cc $cppflags $f -o $fb_obj &
430 # w as in 'W'rapper
431 $cc $cppflags -DFB_ACCESS_WRAPPER $f -o $fbw_obj &
432 done
433 #===================================================================================================
434 mi_c_files="\
435 $src_dir/mi/miarc.c \
436 $src_dir/mi/mibitblt.c \
437 $src_dir/mi/micmap.c \
438 $src_dir/mi/micopy.c \
439 $src_dir/mi/midash.c \
440 $src_dir/mi/midispcur.c \
441 $src_dir/mi/mieq.c \
442 $src_dir/mi/miexpose.c \
443 $src_dir/mi/mifillarc.c \
444 $src_dir/mi/mifillrct.c \
445 $src_dir/mi/migc.c \
446 $src_dir/mi/miglblt.c \
447 $src_dir/mi/mioverlay.c \
448 $src_dir/mi/mipointer.c \
449 $src_dir/mi/mipoly.c \
450 $src_dir/mi/mipolypnt.c \
451 $src_dir/mi/mipolyrect.c \
452 $src_dir/mi/mipolyseg.c \
453 $src_dir/mi/mipolytext.c \
454 $src_dir/mi/mipushpxl.c \
455 $src_dir/mi/miscrinit.c \
456 $src_dir/mi/misprite.c \
457 $src_dir/mi/mivaltree.c \
458 $src_dir/mi/miwideline.c \
459 $src_dir/mi/miwindow.c \
460 $src_dir/mi/mizerarc.c \
461 $src_dir/mi/mizerclip.c \
462 $src_dir/mi/mizerline.c \
464 mkdir -p $build_dir/mi
465 for f in $mi_c_files
467 mi_obj=$build_dir/mi/$(basename $f .c).o
468 mi_objs="$mi_objs $mi_obj"
470 $cc $cppflags $f -o $mi_obj &
471 done
472 #===================================================================================================
473 xext_c_files="\
474 $src_dir/Xext/bigreq.c \
475 $src_dir/Xext/geext.c \
476 $src_dir/Xext/shape.c \
477 $src_dir/Xext/sync.c \
478 $src_dir/Xext/xcmisc.c \
479 $src_dir/Xext/xtest.c \
480 $src_dir/Xext/shm.c \
481 $src_dir/Xext/xvmain.c \
482 $src_dir/Xext/xvdisp.c \
483 $src_dir/Xext/xvmc.c \
484 $src_dir/Xext/xres.c \
485 $src_dir/Xext/saver.c \
486 $src_dir/Xext/panoramiX.c \
487 $src_dir/Xext/panoramiXprocs.c \
488 $src_dir/Xext/panoramiXSwap.c \
489 $src_dir/Xext/xace.c \
490 $src_dir/Xext/dpms.c \
491 $src_dir/Xext/hashtable.c \
492 $src_dir/Xext/sleepuntil.c \
494 mkdir -p $build_dir/xext
495 for f in $xext_c_files
497 xext_obj=$build_dir/xext/$(basename $f .c).o
498 xext_objs="$xext_objs $xext_obj"
500 $cc $cppflags $f -o $xext_obj &
501 done
502 #---------------------------------------------------------------------------------------------------
503 xext_vidmod_c_files="\
504 $src_dir/Xext/vidmode.c \
506 for f in $xext_vidmod_c_files
508 xext_vidmod_obj=$build_dir/xext/$(basename $f .c).o
509 xext_vidmod_objs="$xext_vidmod_objs $xext_vidmod_obj"
511 $cc $cppflags $f -o $xext_vidmod_obj &
512 done
513 #===================================================================================================
514 miext_sync_c_files="\
515 $src_dir/miext/sync/misync.c \
516 $src_dir/miext/sync/misyncfd.c \
517 $src_dir/miext/sync/misyncshm.c \
519 mkdir -p $build_dir/miext/sync
520 for f in $miext_sync_c_files
522 miext_sync_obj=$build_dir/miext/sync/$(basename $f .c).o
523 miext_sync_objs="$miext_sync_objs $miext_sync_obj"
525 $cc $cppflags $f -o $miext_sync_obj &
526 done
527 #===================================================================================================
528 miext_damage_c_files="\
529 $src_dir/miext/damage/damage.c \
531 mkdir -p $build_dir/miext/damage
532 for f in $miext_damage_c_files
534 miext_damage_obj=$build_dir/miext/damage/$(basename $f .c).o
535 miext_damage_objs="$miext_damage_objs $miext_damage_obj"
537 $cc $cppflags $f -o $miext_damage_obj &
538 done
539 #===================================================================================================
540 miext_shadow_c_files="\
541 $src_dir/miext/shadow/shadow.c \
542 $src_dir/miext/shadow/sh3224.c \
543 $src_dir/miext/shadow/shafb4.c \
544 $src_dir/miext/shadow/shafb8.c \
545 $src_dir/miext/shadow/shiplan2p4.c \
546 $src_dir/miext/shadow/shiplan2p8.c \
547 $src_dir/miext/shadow/shpacked.c \
548 $src_dir/miext/shadow/shplanar8.c \
549 $src_dir/miext/shadow/shplanar.c \
550 $src_dir/miext/shadow/shrot16pack_180.c \
551 $src_dir/miext/shadow/shrot16pack_270.c \
552 $src_dir/miext/shadow/shrot16pack_270YX.c \
553 $src_dir/miext/shadow/shrot16pack_90.c \
554 $src_dir/miext/shadow/shrot16pack_90YX.c \
555 $src_dir/miext/shadow/shrot16pack.c \
556 $src_dir/miext/shadow/shrot32pack_180.c \
557 $src_dir/miext/shadow/shrot32pack_270.c \
558 $src_dir/miext/shadow/shrot32pack_90.c \
559 $src_dir/miext/shadow/shrot32pack.c \
560 $src_dir/miext/shadow/shrot8pack_180.c \
561 $src_dir/miext/shadow/shrot8pack_270.c \
562 $src_dir/miext/shadow/shrot8pack_90.c \
563 $src_dir/miext/shadow/shrot8pack.c \
564 $src_dir/miext/shadow/shrotate.c \
566 mkdir -p $build_dir/miext/shadow
567 for f in $miext_shadow_c_files
569 miext_shadow_obj=$build_dir/miext/shadow/$(basename $f .c).o
570 miext_shadow_objs="$miext_shadow_objs $miext_shadow_obj"
572 $cc $cppflags $f -o $miext_shadow_obj &
573 done
574 #===================================================================================================
575 miext_rootless_c_files="\
576 $src_dir/miext/rootless/rootlessCommon.c \
577 $src_dir/miext/rootless/rootlessGC.c \
578 $src_dir/miext/rootless/rootlessScreen.c \
579 $src_dir/miext/rootless/rootlessValTree.c \
580 $src_dir/miext/rootless/rootlessWindow.c \
582 mkdir -p $build_dir/miext/rootless
583 for f in $miext_rootless_c_files
585 miext_rootless_obj=$build_dir/miext/rootless/$(basename $f .c).o
586 miext_rootless_objs="$miext_rootless_objs $miext_rootless_obj"
588 $cc $cppflags $f -o $miext_rootless_obj &
589 done
590 #===================================================================================================
591 os_c_files="\
592 $src_dir/os/access.c \
593 $src_dir/os/alloc.c \
594 $src_dir/os/auth.c \
595 $src_dir/os/WaitFor.c \
596 $src_dir/os/backtrace.c \
597 $src_dir/os/client.c \
598 $src_dir/os/connection.c \
599 $src_dir/os/fmt.c \
600 $src_dir/os/inputthread.c \
601 $src_dir/os/io.c \
602 $src_dir/os/mitauth.c \
603 $src_dir/os/osinit.c \
604 $src_dir/os/ospoll.c \
605 $src_dir/os/utils.c \
606 $src_dir/os/xdmauth.c \
607 $src_dir/os/xsha1.c \
608 $src_dir/os/xstrans.c \
609 $src_dir/os/xprintf.c \
610 $src_dir/os/log.c \
611 $src_dir/os/busfault.c \
612 $src_dir/os/string.c \
613 $src_dir/os/strlcat.c \
614 $src_dir/os/strlcpy.c \
615 $src_dir/os/timingsafe_memcmp.c \
617 mkdir -p $build_dir/os
618 for f in $os_c_files
620 os_obj=$build_dir/os/$(basename $f .c).o
621 os_objs="$os_objs $os_obj"
623 $cc $cppflags $f -o $os_obj &
624 done
625 #===================================================================================================
626 randr_c_files="\
627 $src_dir/randr/randr.c \
628 $src_dir/randr/rrcrtc.c \
629 $src_dir/randr/rrdispatch.c \
630 $src_dir/randr/rrinfo.c \
631 $src_dir/randr/rrlease.c \
632 $src_dir/randr/rrmode.c \
633 $src_dir/randr/rrmonitor.c \
634 $src_dir/randr/rroutput.c \
635 $src_dir/randr/rrpointer.c \
636 $src_dir/randr/rrproperty.c \
637 $src_dir/randr/rrprovider.c \
638 $src_dir/randr/rrproviderproperty.c \
639 $src_dir/randr/rrscreen.c \
640 $src_dir/randr/rrsdispatch.c \
641 $src_dir/randr/rrtransform.c \
642 $src_dir/randr/rrxinerama.c \
644 mkdir -p $build_dir/randr
645 for f in $randr_c_files
647 randr_obj=$build_dir/randr/$(basename $f .c).o
648 randr_objs="$randr_objs $randr_obj"
650 $cc $cppflags $f -o $randr_obj &
651 done
652 #===================================================================================================
653 render_c_files="\
654 $src_dir/render/animcur.c \
655 $src_dir/render/filter.c \
656 $src_dir/render/glyph.c \
657 $src_dir/render/matrix.c \
658 $src_dir/render/miindex.c \
659 $src_dir/render/mipict.c \
660 $src_dir/render/mirect.c \
661 $src_dir/render/mitrap.c \
662 $src_dir/render/mitri.c \
663 $src_dir/render/picture.c \
664 $src_dir/render/render.c \
666 mkdir -p $build_dir/render
667 for f in $render_c_files
669 render_obj=$build_dir/render/$(basename $f .c).o
670 render_objs="$render_objs $render_obj"
672 $cc $cppflags $f -o $render_obj &
673 done
674 #===================================================================================================
675 xi_c_files="\
676 $src_dir/Xi/allowev.c \
677 $src_dir/Xi/chgdctl.c \
678 $src_dir/Xi/chgfctl.c \
679 $src_dir/Xi/chgkbd.c \
680 $src_dir/Xi/chgkmap.c \
681 $src_dir/Xi/chgprop.c \
682 $src_dir/Xi/chgptr.c \
683 $src_dir/Xi/closedev.c \
684 $src_dir/Xi/devbell.c \
685 $src_dir/Xi/exevents.c \
686 $src_dir/Xi/extinit.c \
687 $src_dir/Xi/getbmap.c \
688 $src_dir/Xi/getdctl.c \
689 $src_dir/Xi/getfctl.c \
690 $src_dir/Xi/getfocus.c \
691 $src_dir/Xi/getkmap.c \
692 $src_dir/Xi/getmmap.c \
693 $src_dir/Xi/getprop.c \
694 $src_dir/Xi/getselev.c \
695 $src_dir/Xi/getvers.c \
696 $src_dir/Xi/grabdev.c \
697 $src_dir/Xi/grabdevb.c \
698 $src_dir/Xi/grabdevk.c \
699 $src_dir/Xi/gtmotion.c \
700 $src_dir/Xi/listdev.c \
701 $src_dir/Xi/opendev.c \
702 $src_dir/Xi/queryst.c \
703 $src_dir/Xi/selectev.c \
704 $src_dir/Xi/sendexev.c \
705 $src_dir/Xi/setbmap.c \
706 $src_dir/Xi/setdval.c \
707 $src_dir/Xi/setfocus.c \
708 $src_dir/Xi/setmmap.c \
709 $src_dir/Xi/setmode.c \
710 $src_dir/Xi/ungrdev.c \
711 $src_dir/Xi/ungrdevb.c \
712 $src_dir/Xi/ungrdevk.c \
713 $src_dir/Xi/xiallowev.c \
714 $src_dir/Xi/xibarriers.c \
715 $src_dir/Xi/xichangecursor.c \
716 $src_dir/Xi/xichangehierarchy.c \
717 $src_dir/Xi/xigetclientpointer.c \
718 $src_dir/Xi/xigrabdev.c \
719 $src_dir/Xi/xipassivegrab.c \
720 $src_dir/Xi/xiproperty.c \
721 $src_dir/Xi/xiquerydevice.c \
722 $src_dir/Xi/xiquerypointer.c \
723 $src_dir/Xi/xiqueryversion.c \
724 $src_dir/Xi/xiselectev.c \
725 $src_dir/Xi/xisetclientpointer.c \
726 $src_dir/Xi/xisetdevfocus.c \
727 $src_dir/Xi/xiwarppointer.c \
729 mkdir -p $build_dir/xi
730 for f in $xi_c_files
732 xi_obj=$build_dir/xi/$(basename $f .c).o
733 xi_objs="$xi_objs $xi_obj"
735 $cc $cppflags $f -o $xi_obj &
736 done
737 #---------------------------------------------------------------------------------------------------
738 xi_stubs_c_files="\
739 $src_dir/Xi/stubs.c \
741 for f in $xi_stubs_c_files
743 xi_stubs_obj=$build_dir/xi/$(basename $f .c).o
744 xi_stubs_objs="$xi_stubs_objs $xi_stubs_obj"
746 $cc $cppflags $f -o $xi_stubs_obj &
747 done
748 #===================================================================================================
749 xkb_c_files="\
750 $src_dir/xkb/ddxBeep.c \
751 $src_dir/xkb/ddxCtrls.c \
752 $src_dir/xkb/ddxLEDs.c \
753 $src_dir/xkb/ddxLoad.c \
754 $src_dir/xkb/xkb.c \
755 $src_dir/xkb/xkbUtils.c \
756 $src_dir/xkb/xkbEvents.c \
757 $src_dir/xkb/xkbAccessX.c \
758 $src_dir/xkb/xkbSwap.c \
759 $src_dir/xkb/xkbLEDs.c \
760 $src_dir/xkb/xkbInit.c \
761 $src_dir/xkb/xkbActions.c \
762 $src_dir/xkb/xkbPrKeyEv.c \
763 $src_dir/xkb/maprules.c \
764 $src_dir/xkb/xkmread.c \
765 $src_dir/xkb/xkbtext.c \
766 $src_dir/xkb/xkbfmisc.c \
767 $src_dir/xkb/xkbout.c \
768 $src_dir/xkb/XKBMisc.c \
769 $src_dir/xkb/XKBAlloc.c \
770 $src_dir/xkb/XKBGAlloc.c \
771 $src_dir/xkb/XKBMAlloc.c \
773 mkdir -p $build_dir/xkb
774 for f in $xkb_c_files
776 xkb_obj=$build_dir/xkb/$(basename $f .c).o
777 xkb_objs="$xkb_objs $xkb_obj"
779 $cc $cppflags $f -o $xkb_obj &
780 done
781 #---------------------------------------------------------------------------------------------------
782 xkb_stubs_c_files="\
783 $src_dir/xkb/ddxVT.c \
784 $src_dir/xkb/ddxPrivate.c \
785 $src_dir/xkb/ddxKillSrv.c \
787 for f in $xkb_stubs_c_files
789 xkb_stubs_obj=$build_dir/xkb/$(basename $f .c).o
790 xkb_stubs_objs="$xkb_stubs_objs $xkb_stubs_obj"
792 $cc $cppflags $f -o $xkb_stubs_obj &
793 done
794 #===================================================================================================
795 dbe_c_files="\
796 $src_dir/dbe/dbe.c \
797 $src_dir/dbe/midbe.c \
799 mkdir -p $build_dir/dbe
800 for f in $dbe_c_files
802 dbe_obj=$build_dir/dbe/$(basename $f .c).o
803 dbe_objs="$dbe_objs $dbe_obj"
805 $cc $cppflags $f -o $dbe_obj &
806 done
807 #===================================================================================================
808 record_c_files="\
809 $src_dir/record/record.c \
810 $src_dir/record/set.c \
812 mkdir -p $build_dir/record
813 for f in $record_c_files
815 record_obj=$build_dir/record/$(basename $f .c).o
816 record_objs="$record_objs $record_obj"
818 $cc $cppflags $f -o $record_obj &
819 done
820 #===================================================================================================
821 xfixes_c_files="\
822 $src_dir/xfixes/xfixes.c \
823 $src_dir/xfixes/cursor.c \
824 $src_dir/xfixes/disconnect.c \
825 $src_dir/xfixes/region.c \
826 $src_dir/xfixes/saveset.c \
827 $src_dir/xfixes/select.c \
829 mkdir -p $build_dir/xfixes
830 for f in $xfixes_c_files
832 xfixes_obj=$build_dir/xfixes/$(basename $f .c).o
833 xfixes_objs="$xfixes_objs $xfixes_obj"
835 $cc $cppflags $f -o $xfixes_obj &
836 done
837 #===================================================================================================
838 damageext_c_files="\
839 $src_dir/damageext/damageext.c \
841 mkdir -p $build_dir/damageext
842 for f in $damageext_c_files
844 damageext_obj=$build_dir/damageext/$(basename $f .c).o
845 damageext_objs="$damageext_objs $damageext_obj"
847 $cc $cppflags $f -o $damageext_obj &
848 done
849 #===================================================================================================
850 composite_c_files="\
851 $src_dir/composite/compalloc.c \
852 $src_dir/composite/compext.c \
853 $src_dir/composite/compinit.c \
854 $src_dir/composite/compoverlay.c \
855 $src_dir/composite/compwindow.c \
857 mkdir -p $build_dir/composite
858 for f in $composite_c_files
860 composite_obj=$build_dir/composite/$(basename $f .c).o
861 composite_objs="$composite_objs $composite_obj"
863 $cc $cppflags $f -o $composite_obj &
864 done
865 #===================================================================================================
866 glx_c_files="\
867 $src_dir/glx/indirect_dispatch.c \
868 $src_dir/glx/indirect_dispatch_swap.c \
869 $src_dir/glx/indirect_reqsize.c \
870 $src_dir/glx/indirect_size_get.c \
871 $src_dir/glx/indirect_table.c \
872 $src_dir/glx/clientinfo.c \
873 $src_dir/glx/createcontext.c \
874 $src_dir/glx/extension_string.c \
875 $src_dir/glx/indirect_util.c \
876 $src_dir/glx/indirect_program.c \
877 $src_dir/glx/indirect_texture_compression.c \
878 $src_dir/glx/glxcmds.c \
879 $src_dir/glx/glxcmdsswap.c \
880 $src_dir/glx/glxext.c \
881 $src_dir/glx/glxdriswrast.c \
882 $src_dir/glx/glxdricommon.c \
883 $src_dir/glx/glxscreens.c \
884 $src_dir/glx/render2.c \
885 $src_dir/glx/render2swap.c \
886 $src_dir/glx/renderpix.c \
887 $src_dir/glx/renderpixswap.c \
888 $src_dir/glx/rensize.c \
889 $src_dir/glx/single2.c \
890 $src_dir/glx/single2swap.c \
891 $src_dir/glx/singlepix.c \
892 $src_dir/glx/singlepixswap.c \
893 $src_dir/glx/singlesize.c \
894 $src_dir/glx/swap_interval.c \
895 $src_dir/glx/xfont.c \
897 mkdir -p $build_dir/glx
898 for f in $glx_c_files
900 glx_obj=$build_dir/glx/$(basename $f .c).o
901 glx_objs="$glx_objs $glx_obj"
903 $cc -I$src_dir/glx \
904 -I$src_dir/hw/xfree86/common \
905 -I$src_dir/hw/xfree86/dri2 \
906 $cppflags \
907 -D__GLX_ALIGN64 $f -o $glx_obj &
908 done
909 #---------------------------------------------------------------------------------------------------
910 glxdri_c_files="\
911 $src_dir/glx/glxdri2.c \
913 for f in $glxdri_c_files
915 glxdri_obj=$build_dir/glx/$(basename $f .c).o
916 glxdri_objs="$glxdri_objs $glxdri_obj"
918 $cc -I$src_dir/glx \
919 -I$src_dir/hw/xfree86/common \
920 -I$src_dir/hw/xfree86/dri2 \
921 $cppflags \
922 -D__GLX_ALIGN64 $f -o $glxdri_obj &
923 done
924 #---------------------------------------------------------------------------------------------------
925 glxvnd_c_files="\
926 $src_dir/glx/vndcmds.c \
927 $src_dir/glx/vndext.c \
928 $src_dir/glx/vndservermapping.c \
929 $src_dir/glx/vndservervendor.c \
931 for f in $glxvnd_c_files
933 glxvnd_obj=$build_dir/glx/$(basename $f .c).o
934 glxvnd_objs="$glxvnd_objs $glxvnd_obj"
936 $cc -I$src_dir/glx \
937 -I$src_dir/hw/xfree86/common \
938 -I$src_dir/hw/xfree86/dri2 \
939 $cppflags \
940 -D__GLX_ALIGN64 $f -o $glxvnd_obj &
941 done
942 #===================================================================================================
943 present_c_files="\
944 $src_dir/present/present.c \
945 $src_dir/present/present_event.c \
946 $src_dir/present/present_execute.c \
947 $src_dir/present/present_fake.c \
948 $src_dir/present/present_fence.c \
949 $src_dir/present/present_notify.c \
950 $src_dir/present/present_request.c \
951 $src_dir/present/present_scmd.c \
952 $src_dir/present/present_screen.c \
953 $src_dir/present/present_vblank.c \
955 mkdir -p $build_dir/present
956 for f in $present_c_files
958 present_obj=$build_dir/present/$(basename $f .c).o
959 present_objs="$present_objs $present_obj"
961 $cc $cppflags $f -o $present_obj &
962 done
963 #===================================================================================================
964 dri3_c_files="\
965 $src_dir/dri3/dri3.c \
966 $src_dir/dri3/dri3_request.c \
967 $src_dir/dri3/dri3_screen.c \
969 mkdir -p $build_dir/dri3
970 for f in $dri3_c_files
972 dri3_obj=$build_dir/dri3/$(basename $f .c).o
973 dri3_objs="$dri3_objs $dri3_obj"
975 $cc $cppflags $f -o $dri3_obj &
976 done
977 #===================================================================================================
978 exa_c_files="\
979 $src_dir/exa/exa.c \
980 $src_dir/exa/exa_classic.c \
981 $src_dir/exa/exa_migration_classic.c \
982 $src_dir/exa/exa_driver.c \
983 $src_dir/exa/exa_mixed.c \
984 $src_dir/exa/exa_migration_mixed.c \
985 $src_dir/exa/exa_accel.c \
986 $src_dir/exa/exa_glyphs.c \
987 $src_dir/exa/exa_offscreen.c \
988 $src_dir/exa/exa_render.c \
989 $src_dir/exa/exa_unaccel.c \
991 mkdir -p $build_dir/exa
992 for f in $exa_c_files
994 exa_obj=$build_dir/exa/$(basename $f .c).o
995 exa_objs="$exa_objs $exa_obj"
997 $cc $cppflags $f -o $exa_obj &
998 done
999 #===================================================================================================
1000 glamor_c_files="\
1001 $src_dir/glamor/glamor.c \
1002 $src_dir/glamor/glamor_copy.c \
1003 $src_dir/glamor/glamor_core.c \
1004 $src_dir/glamor/glamor_dash.c \
1005 $src_dir/glamor/glamor_font.c \
1006 $src_dir/glamor/glamor_composite_glyphs.c \
1007 $src_dir/glamor/glamor_image.c \
1008 $src_dir/glamor/glamor_lines.c \
1009 $src_dir/glamor/glamor_segs.c \
1010 $src_dir/glamor/glamor_render.c \
1011 $src_dir/glamor/glamor_gradient.c \
1012 $src_dir/glamor/glamor_prepare.c \
1013 $src_dir/glamor/glamor_program.c \
1014 $src_dir/glamor/glamor_rects.c \
1015 $src_dir/glamor/glamor_spans.c \
1016 $src_dir/glamor/glamor_text.c \
1017 $src_dir/glamor/glamor_transfer.c \
1018 $src_dir/glamor/glamor_transform.c \
1019 $src_dir/glamor/glamor_trapezoid.c \
1020 $src_dir/glamor/glamor_triangles.c \
1021 $src_dir/glamor/glamor_addtraps.c \
1022 $src_dir/glamor/glamor_glyphblt.c \
1023 $src_dir/glamor/glamor_points.c \
1024 $src_dir/glamor/glamor_pixmap.c \
1025 $src_dir/glamor/glamor_largepixmap.c \
1026 $src_dir/glamor/glamor_picture.c \
1027 $src_dir/glamor/glamor_vbo.c \
1028 $src_dir/glamor/glamor_window.c \
1029 $src_dir/glamor/glamor_fbo.c \
1030 $src_dir/glamor/glamor_compositerects.c \
1031 $src_dir/glamor/glamor_utils.c \
1032 $src_dir/glamor/glamor_sync.c \
1033 $src_dir/glamor/glamor_xv.c \
1034 $src_dir/glamor/glamor_glx_provider.c \
1036 mkdir -p $build_dir/glamor
1037 for f in $glamor_c_files
1039 glamor_obj=$build_dir/glamor/$(basename $f .c).o
1040 glamor_objs="$glamor_objs $glamor_obj"
1042 $cc $cppflags $f -o $glamor_obj &
1043 done
1044 #===================================================================================================
1045 config_c_files="\
1046 $src_dir/config/config.c \
1047 $src_dir/config/udev.c \
1049 mkdir -p $build_dir/config
1050 for f in $config_c_files
1052 config_obj=$build_dir/config/$(basename $f .c).o
1053 config_objs="$config_objs $config_obj"
1055 $cc $cppflags $f -o $config_obj &
1056 done
1057 #===================================================================================================
1058 mkdir -p $build_dir/include
1059 sed -e "s:@version_0@:$version_0:g" \
1060 -e "s:@version_1@:$version_1:g" \
1061 -e "s:@version_2@:$version_2:g" \
1062 -e "s:@version_3@:$version_3:g" \
1063 -e "s:@defaultmodulepath@:$defaultmodulepath:g" \
1064 -e "s:@defaultlibrarypath@:$defaultlibrarypath:g" \
1065 -e "s:@defaultlogdir@:$defaultlogdir:g" \
1066 <$src_dir/contrib/xorg-config.h.in \
1067 >$build_dir/include/xorg-config.h
1068 #---------------------------------------------------------------------------------------------------
1069 mkdir -p $build_dir/hw/xfree86/common
1071 cat $src_dir/hw/xfree86/common/vesamodes $src_dir/hw/xfree86/common/extramodes | \
1072 LC_ALL=C $awk -f $src_dir/hw/xfree86/common/modeline2c.awk \
1073 > $build_dir/hw/xfree86/common/xf86DefModeSet.c
1075 hw_xfree86_common_c_files="\
1076 $build_dir/hw/xfree86/common/xf86DefModeSet.c \
1077 $src_dir/hw/xfree86/common/xf86Configure.c \
1078 $src_dir/hw/xfree86/common/xf86Bus.c \
1079 $src_dir/hw/xfree86/common/xf86Config.c \
1080 $src_dir/hw/xfree86/common/xf86Cursor.c \
1081 $src_dir/hw/xfree86/common/xf86DPMS.c \
1082 $src_dir/hw/xfree86/common/xf86Events.c \
1083 $src_dir/hw/xfree86/common/xf86Globals.c \
1084 $src_dir/hw/xfree86/common/xf86AutoConfig.c \
1085 $src_dir/hw/xfree86/common/xf86Option.c \
1086 $src_dir/hw/xfree86/common/xf86Init.c \
1087 $src_dir/hw/xfree86/common/xf86VidMode.c \
1088 $src_dir/hw/xfree86/common/xf86fbman.c \
1089 $src_dir/hw/xfree86/common/xf86cmap.c \
1090 $src_dir/hw/xfree86/common/xf86Helper.c \
1091 $src_dir/hw/xfree86/common/xf86PM.c \
1092 $src_dir/hw/xfree86/common/xf86Xinput.c \
1093 $src_dir/hw/xfree86/common/xisb.c \
1094 $src_dir/hw/xfree86/common/xf86Mode.c \
1095 $src_dir/hw/xfree86/common/xorgHelper.c \
1096 $src_dir/hw/xfree86/common/xf86Extensions.c \
1097 $src_dir/hw/xfree86/common/xf86xv.c \
1098 $src_dir/hw/xfree86/common/xf86xvmc.c \
1099 $src_dir/hw/xfree86/common/xf86fbBus.c \
1100 $src_dir/hw/xfree86/common/xf86noBus.c \
1101 $src_dir/hw/xfree86/common/xf86pciBus.c \
1102 $src_dir/hw/xfree86/common/xf86VGAarbiter.c \
1103 $src_dir/hw/xfree86/common/xf86platformBus.c \
1104 $src_dir/hw/xfree86/common/xf86RandR.c \
1106 for f in $hw_xfree86_common_c_files
1108 hw_xfree86_common_obj=$build_dir/hw/xfree86/common/$(basename $f .c).o
1109 hw_xfree86_common_objs="$hw_xfree86_common_objs $hw_xfree86_common_obj"
1111 $cc $cppflags \
1112 -DHAVE_XORG_CONFIG_H -DHAVE_ACPI \
1113 -I$src_dir/hw/xfree86/os-support/bus \
1114 -I$src_dir/hw/xfree86/os-support \
1115 -I$src_dir/hw/xfree86/parser \
1116 -I$src_dir/hw/xfree86/loader \
1117 -I$src_dir/hw/xfree86/ramdac \
1118 -I$src_dir/hw/xfree86/ddc \
1119 -I$src_dir/hw/xfree86/i2c \
1120 -I$src_dir/hw/xfree86/modes \
1121 -I$src_dir/hw/xfree86/common \
1122 $f -o $hw_xfree86_common_obj &
1123 done
1124 #===================================================================================================
1125 hw_xfree86_ddc_c_files="\
1126 $src_dir/hw/xfree86/ddc/ddc.c \
1127 $src_dir/hw/xfree86/ddc/interpret_edid.c \
1128 $src_dir/hw/xfree86/ddc/print_edid.c \
1129 $src_dir/hw/xfree86/ddc/ddcProperty.c \
1131 mkdir -p $build_dir/hw/xfree86/ddc
1132 for f in $hw_xfree86_ddc_c_files
1134 hw_xfree86_ddc_obj=$build_dir/hw/xfree86/ddc/$(basename $f .c).o
1135 hw_xfree86_ddc_objs="$hw_xfree86_ddc_objs $hw_xfree86_ddc_obj"
1137 $cc $cppflags \
1138 -DHAVE_XORG_CONFIG_H \
1139 -I$src_dir/hw/xfree86/os-support \
1140 -I$src_dir/hw/xfree86/i2c \
1141 -I$src_dir/hw/xfree86/common \
1142 $f -o $hw_xfree86_ddc_obj &
1143 done
1144 #===================================================================================================
1145 hw_xfree86_x86emu_c_files="\
1146 $src_dir/hw/xfree86/x86emu/debug.c \
1147 $src_dir/hw/xfree86/x86emu/decode.c \
1148 $src_dir/hw/xfree86/x86emu/fpu.c \
1149 $src_dir/hw/xfree86/x86emu/ops2.c \
1150 $src_dir/hw/xfree86/x86emu/ops.c \
1151 $src_dir/hw/xfree86/x86emu/prim_ops.c \
1152 $src_dir/hw/xfree86/x86emu/sys.c \
1154 mkdir -p $build_dir/hw/xfree86/x86emu
1155 for f in $hw_xfree86_x86emu_c_files
1157 hw_xfree86_x86emu_obj=$build_dir/hw/xfree86/x86emu/$(basename $f .c).o
1158 hw_xfree86_x86emu_objs="$hw_xfree86_x86emu_objs $hw_xfree86_x86emu_obj"
1160 $cc $cppflags \
1161 -DHAVE_XORG_CONFIG_H \
1162 -I$src_dir/hw/xfree86/x86emu \
1163 $f -o $hw_xfree86_x86emu_obj &
1164 done
1165 #===================================================================================================
1166 hw_xfree86_int10_c_files="\
1167 $src_dir/hw/xfree86/int10/vbe.c \
1168 $src_dir/hw/xfree86/int10/vbeModes.c \
1169 $src_dir/hw/xfree86/int10/helper_exec.c \
1170 $src_dir/hw/xfree86/int10/xf86int10.c \
1171 $src_dir/hw/xfree86/int10/xf86int10module.c \
1172 $src_dir/hw/xfree86/int10/xf86x86emu.c \
1173 $src_dir/hw/xfree86/int10/generic.c \
1174 $src_dir/hw/xfree86/int10/x86emu.c \
1176 mkdir -p $build_dir/hw/xfree86/int10
1177 for f in $hw_xfree86_int10_c_files
1179 hw_xfree86_int10_obj=$build_dir/hw/xfree86/int10/$(basename $f .c).o
1180 hw_xfree86_int10_objs="$hw_xfree86_int10_objs $hw_xfree86_int10_obj"
1182 $cc $cppflags \
1183 -DHAVE_XORG_CONFIG_H \
1184 -D_PC -D_X86EMU -DNO_SYS_HEADERS \
1185 -I$src_dir/hw/xfree86/os-support/bus \
1186 -I$src_dir/hw/xfree86/os-support \
1187 -I$src_dir/hw/xfree86/i2c \
1188 -I$src_dir/hw/xfree86/parser \
1189 -I$src_dir/hw/xfree86/ddc \
1190 -I$src_dir/hw/xfree86/modes \
1191 -I$src_dir/hw/xfree86/common \
1192 -I$src_dir/hw/xfree86/x86emu \
1193 -I$src_dir/hw/xfree86/int10 \
1194 -I$src_dir/hw/xfree86/helper_mem \
1195 $f -o $hw_xfree86_int10_obj &
1196 done
1197 #===================================================================================================
1198 hw_xfree86_os_support_bus_c_files="\
1199 $src_dir/hw/xfree86/os-support/bus/Pci.c \
1200 $src_dir/hw/xfree86/os-support/bus/nobus.c \
1202 mkdir -p $build_dir/hw/xfree86/os-support/bus
1203 for f in $hw_xfree86_os_support_bus_c_files
1205 hw_xfree86_os_support_bus_obj=$build_dir/hw/xfree86/os-support/bus/$(basename $f .c).o
1206 hw_xfree86_os_support_bus_objs="$hw_xfree86_os_support_bus_objs $hw_xfree86_os_support_bus_obj"
1208 $cc $cppflags \
1209 -DHAVE_XORG_CONFIG_H \
1210 $f -o $hw_xfree86_os_support_bus_obj &
1211 done
1212 #===================================================================================================
1213 hw_xfree86_os_support_linux_c_files="\
1214 $src_dir/hw/xfree86/os-support/linux/lnx_init.c \
1215 $src_dir/hw/xfree86/os-support/linux/lnx_video.c \
1216 $src_dir/hw/xfree86/os-support/linux/lnx_kmod.c \
1217 $src_dir/hw/xfree86/os-support/linux/lnx_bell.c \
1218 $src_dir/hw/xfree86/os-support/shared/drm_platform.c \
1219 $src_dir/hw/xfree86/os-support/shared/VTsw_usl.c \
1220 $src_dir/hw/xfree86/os-support/shared/posix_tty.c \
1221 $src_dir/hw/xfree86/os-support/shared/vidmem.c \
1222 $src_dir/hw/xfree86/os-support/shared/sigio.c \
1223 $src_dir/hw/xfree86/os-support/linux/lnx_acpi.c \
1224 $src_dir/hw/xfree86/os-support/linux/lnx_apm.c \
1225 $src_dir/hw/xfree86/os-support/linux/lnx_agp.c \
1227 mkdir -p $build_dir/hw/xfree86/os-support/linux
1228 for f in $hw_xfree86_os_support_linux_c_files
1230 hw_xfree86_os_support_linux_obj=$build_dir/hw/xfree86/os-support/linux/$(basename $f .c).o
1231 hw_xfree86_os_support_linux_objs="$hw_xfree86_os_support_linux_objs $hw_xfree86_os_support_linux_obj"
1233 $cc $cppflags \
1234 -DHAVE_XORG_CONFIG_H \
1235 -DHAVE_ACPI -DHAVE_APM \
1236 -DHAVE_SYSV_IPC \
1237 -I$src_dir/hw/xfree86/os-support \
1238 -I$src_dir/hw/xfree86/common \
1239 $f -o $hw_xfree86_os_support_linux_obj &
1240 done
1241 #===================================================================================================
1242 hw_xfree86_os_support_misc_c_files="\
1243 $src_dir/hw/xfree86/os-support/misc/SlowBcopy.c \
1245 mkdir -p $build_dir/hw/xfree86/os-support/misc
1246 for f in $hw_xfree86_os_support_misc_c_files
1248 hw_xfree86_os_support_misc_obj=$build_dir/hw/xfree86/os-support/misc/$(basename $f .c).o
1249 hw_xfree86_os_support_misc_objs="$hw_xfree86_os_support_misc_objs $hw_xfree86_os_support_misc_obj"
1251 $cc $cppflags \
1252 -DHAVE_XORG_CONFIG_H \
1253 -I$src_dir/hw/xfree86/os-support \
1254 -I$src_dir/hw/xfree86/common \
1255 $f -o $hw_xfree86_os_support_misc_obj &
1256 done
1257 #===================================================================================================
1258 hw_xfree86_parser_c_files="\
1259 $src_dir/hw/xfree86/parser/Device.c \
1260 $src_dir/hw/xfree86/parser/Files.c \
1261 $src_dir/hw/xfree86/parser/Flags.c \
1262 $src_dir/hw/xfree86/parser/Input.c \
1263 $src_dir/hw/xfree86/parser/InputClass.c \
1264 $src_dir/hw/xfree86/parser/OutputClass.c \
1265 $src_dir/hw/xfree86/parser/Layout.c \
1266 $src_dir/hw/xfree86/parser/Module.c \
1267 $src_dir/hw/xfree86/parser/Video.c \
1268 $src_dir/hw/xfree86/parser/Monitor.c \
1269 $src_dir/hw/xfree86/parser/Pointer.c \
1270 $src_dir/hw/xfree86/parser/Screen.c \
1271 $src_dir/hw/xfree86/parser/Vendor.c \
1272 $src_dir/hw/xfree86/parser/read.c \
1273 $src_dir/hw/xfree86/parser/scan.c \
1274 $src_dir/hw/xfree86/parser/write.c \
1275 $src_dir/hw/xfree86/parser/DRI.c \
1276 $src_dir/hw/xfree86/parser/Extensions.c \
1278 mkdir -p $build_dir/hw/xfree86/parser
1279 for f in $hw_xfree86_parser_c_files
1281 hw_xfree86_parser_obj=$build_dir/hw/xfree86/parser/$(basename $f .c).o
1282 hw_xfree86_parser_objs="$hw_xfree86_parser_objs $hw_xfree86_parser_obj"
1284 $cc $cppflags \
1285 -DHAVE_XORG_CONFIG_H \
1286 -DDATADIR=\"$datadir\" \
1287 -I$src_dir/hw/xfree86/parser \
1288 -I$src_dir/hw/xfree86/common \
1289 $f -o $hw_xfree86_parser_obj &
1290 done
1291 #===================================================================================================
1292 hw_xfree86_ramdac_c_files="\
1293 $src_dir/hw/xfree86/ramdac/xf86CursorRD.c \
1294 $src_dir/hw/xfree86/ramdac/xf86HWCurs.c \
1296 mkdir -p $build_dir/hw/xfree86/ramdac
1297 for f in $hw_xfree86_ramdac_c_files
1299 hw_xfree86_ramdac_obj=$build_dir/hw/xfree86/ramdac/$(basename $f .c).o
1300 hw_xfree86_ramdac_objs="$hw_xfree86_ramdac_objs $hw_xfree86_ramdac_obj"
1302 $cc $cppflags \
1303 -DHAVE_XORG_CONFIG_H \
1304 -I$src_dir/hw/xfree86/os-support \
1305 -I$src_dir/hw/xfree86/common \
1306 $f -o $hw_xfree86_ramdac_obj &
1307 done
1308 #===================================================================================================
1309 hw_xfree86_vgahw_c_files="\
1310 $src_dir/hw/xfree86/vgahw/vgaHW.c \
1311 $src_dir/hw/xfree86/vgahw/vgaHWmodule.c \
1313 mkdir -p $build_dir/hw/xfree86/vgahw
1314 for f in $hw_xfree86_vgahw_c_files
1316 hw_xfree86_vgahw_obj=$build_dir/hw/xfree86/vgahw/$(basename $f .c).o
1317 hw_xfree86_vgahw_objs="$hw_xfree86_vgahw_objs $hw_xfree86_vgahw_obj"
1319 $cc $cppflags \
1320 -DHAVE_XORG_CONFIG_H \
1321 -I$src_dir/hw/xfree86/os-support/bus \
1322 -I$src_dir/hw/xfree86/os-support \
1323 -I$src_dir/hw/xfree86/i2c \
1324 -I$src_dir/hw/xfree86/ddc \
1325 -I$src_dir/hw/xfree86/common \
1326 $f -o $hw_xfree86_vgahw_obj &
1327 done
1328 #===================================================================================================
1329 hw_xfree86_loader_c_files="\
1330 $src_dir/hw/xfree86/loader/loader.c \
1331 $src_dir/hw/xfree86/loader/loadmod.c \
1333 mkdir -p $build_dir/hw/xfree86/loader
1334 for f in $hw_xfree86_loader_c_files
1336 hw_xfree86_loader_obj=$build_dir/hw/xfree86/loader/$(basename $f .c).o
1337 hw_xfree86_loader_objs="$hw_xfree86_loader_objs $hw_xfree86_loader_obj"
1339 $cc $cppflags \
1340 -DHAVE_XORG_CONFIG_H \
1341 -I$src_dir/hw/xfree86/common \
1342 $f -o $hw_xfree86_loader_obj &
1343 done
1344 #===================================================================================================
1345 hw_xfree86_modes_c_files="\
1346 $src_dir/hw/xfree86/modes/xf86Crtc.c \
1347 $src_dir/hw/xfree86/modes/xf86Cursors.c \
1348 $src_dir/hw/xfree86/modes/xf86gtf.c \
1349 $src_dir/hw/xfree86/modes/xf86EdidModes.c \
1350 $src_dir/hw/xfree86/modes/xf86Modes.c \
1351 $src_dir/hw/xfree86/modes/xf86RandR12.c \
1352 $src_dir/hw/xfree86/modes/xf86Rotate.c \
1354 mkdir -p $build_dir/hw/xfree86/modes
1355 for f in $hw_xfree86_modes_c_files
1357 hw_xfree86_modes_obj=$build_dir/hw/xfree86/modes/$(basename $f .c).o
1358 hw_xfree86_modes_objs="$hw_xfree86_modes_objs $hw_xfree86_modes_obj"
1360 $cc $cppflags \
1361 -DHAVE_XORG_CONFIG_H \
1362 -I$src_dir/hw/xfree86/ramdac \
1363 -I$src_dir/hw/xfree86/ddc \
1364 -I$src_dir/hw/xfree86/i2c \
1365 -I$src_dir/hw/xfree86/parser \
1366 -I$src_dir/hw/xfree86/common \
1367 $f -o $hw_xfree86_modes_obj &
1368 done
1369 #===================================================================================================
1370 hw_xfree86_dri_c_files="\
1371 $src_dir/hw/xfree86/dri/dri.c \
1372 $src_dir/hw/xfree86/dri/xf86dri.c \
1374 mkdir -p $build_dir/hw/xfree86/dri
1375 for f in $hw_xfree86_dri_c_files
1377 hw_xfree86_dri_obj=$build_dir/hw/xfree86/dri/$(basename $f .c).o
1378 hw_xfree86_dri_objs="$hw_xfree86_dri_objs $hw_xfree86_dri_obj"
1380 $cc $cppflags \
1381 -DHAVE_XORG_CONFIG_H \
1382 -I$src_dir/hw/xfree86/os-support \
1383 -I$src_dir/hw/xfree86/i2c \
1384 -I$src_dir/hw/xfree86/ramdac \
1385 -I$src_dir/hw/xfree86/ddc \
1386 -I$src_dir/hw/xfree86/modes \
1387 -I$src_dir/hw/xfree86/parser \
1388 -I$src_dir/hw/xfree86/common \
1389 $f -o $hw_xfree86_dri_obj &
1390 done
1391 #===================================================================================================
1392 hw_xfree86_dri2_c_files="\
1393 $src_dir/hw/xfree86/dri2/dri2.c \
1394 $src_dir/hw/xfree86/dri2/dri2ext.c \
1396 mkdir -p $build_dir/hw/xfree86/dri2
1397 for f in $hw_xfree86_dri2_c_files
1399 hw_xfree86_dri2_obj=$build_dir/hw/xfree86/dri2/$(basename $f .c).o
1400 hw_xfree86_dri2_objs="$hw_xfree86_dri2_objs $hw_xfree86_dri2_obj"
1402 $cc $cppflags \
1403 -DHAVE_XORG_CONFIG_H \
1404 -I$src_dir/hw/xfree86/dri2 \
1405 -I$src_dir/hw/xfree86/common \
1406 $f -o $hw_xfree86_dri2_obj &
1407 done
1408 #===================================================================================================
1409 hw_xfree86_dixmods_c_files="\
1410 $src_dir/mi/miinitext.c \
1412 mkdir -p $build_dir/hw/xfree86/dixmods
1413 for f in $hw_xfree86_dixmods_c_files
1415 hw_xfree86_dixmods_obj=$build_dir/hw/xfree86/dixmods/$(basename $f .c).o
1416 hw_xfree86_dixmods_objs="$hw_xfree86_dixmods_objs $hw_xfree86_dixmods_obj"
1418 $cc $cppflags \
1419 -DHAVE_XORG_CONFIG_H \
1420 -I$src_dir/hw/xfree86/common \
1421 $f -o $hw_xfree86_dixmods_obj &
1422 done
1423 #===================================================================================================
1424 hw_xfree86_i2c_c_files="\
1425 $src_dir/hw/xfree86/i2c/xf86i2c.c \
1427 mkdir -p $build_dir/hw/xfree86/i2c
1428 for f in $hw_xfree86_i2c_c_files
1430 hw_xfree86_i2c_obj=$build_dir/hw/xfree86/i2c/$(basename $f .c).o
1431 hw_xfree86_i2c_objs="$hw_xfree86_i2c_objs $hw_xfree86_i2c_obj"
1433 $cc $cppflags \
1434 -DHAVE_XORG_CONFIG_H \
1435 -I$src_dir/hw/xfree86/os-support \
1436 -I$src_dir/hw/xfree86/common \
1437 $f -o $hw_xfree86_i2c_obj &
1438 done
1439 #===================================================================================================
1440 hw_xfree86_xkb_c_files="\
1441 $src_dir/hw/xfree86/xkb/xkbVT.c \
1442 $src_dir/hw/xfree86/xkb/xkbPrivate.c \
1443 $src_dir/hw/xfree86/xkb/xkbKillSrv.c \
1445 mkdir -p $build_dir/hw/xfree86/xkb
1446 for f in $hw_xfree86_xkb_c_files
1448 hw_xfree86_xkb_obj=$build_dir/hw/xfree86/xkb/$(basename $f .c).o
1449 hw_xfree86_xkb_objs="$hw_xfree86_xkb_objs $hw_xfree86_xkb_obj"
1451 $cc $cppflags \
1452 -DHAVE_XORG_CONFIG_H \
1453 -I$src_dir/hw/xfree86/common \
1454 $f -o $hw_xfree86_xkb_obj &
1455 done
1456 #===================================================================================================
1457 hw_xfree86_dixmods_glxmodule_c_files="\
1458 $src_dir/hw/xfree86/dixmods/glxmodule.c
1460 mkdir -p $build_dir/hw/xfree86/dixmods
1461 for f in $hw_xfree86_dixmods_glxmodule_c_files
1463 hw_xfree86_dixmods_glxmodule_obj=$build_dir/hw/xfree86/dixmods/$(basename $f .c).o
1464 hw_xfree86_dixmods_glxmodule_objs="$hw_xfree86_dixmods_glxmodule_objs $hw_xfree86_dixmods_glxmodule_obj"
1466 $cc $cppflags \
1467 -DHAVE_XORG_CONFIG_H \
1468 -I$src_dir/hw/xfree86/common \
1469 -I$src_dir/glx \
1470 $f -o $hw_xfree86_dixmods_glxmodule_obj &
1471 done
1472 #===================================================================================================
1473 hw_xfree86_dixmods_libwfb_c_files="\
1474 $src_dir/hw/xfree86/dixmods/fbmodule.c
1476 mkdir -p $build_dir/hw/xfree86/dixmods
1477 for f in $hw_xfree86_dixmods_libwfb_c_files
1479 hw_xfree86_dixmods_libwfb_obj=$build_dir/hw/xfree86/dixmods/$(basename $f .c).o
1480 hw_xfree86_dixmods_libwfb_objs="$hw_xfree86_dixmods_libwfb_objs $hw_xfree86_dixmods_libwfb_obj"
1482 $cc $cppflags \
1483 -DHAVE_XORG_CONFIG_H \
1484 -DFB_ACCESS_WRAPPER \
1485 -I$src_dir/hw/xfree86/common \
1486 $f -o $hw_xfree86_dixmods_libwfb_obj &
1487 done
1488 #===================================================================================================
1489 hw_xfree86_dixmods_libshadow_c_files="\
1490 $src_dir/hw/xfree86/dixmods/shmodule.c
1492 mkdir -p $build_dir/hw/xfree86/dixmods
1493 for f in $hw_xfree86_dixmods_libshadow_c_files
1495 hw_xfree86_dixmods_libshadow_obj=$build_dir/hw/xfree86/dixmods/$(basename $f .c).o
1496 hw_xfree86_dixmods_libshadow_objs="$hw_xfree86_dixmods_libshadow_objs $hw_xfree86_dixmods_libshadow_obj"
1498 $cc $cppflags \
1499 -DHAVE_XORG_CONFIG_H \
1500 -I$src_dir/hw/xfree86/common \
1501 $f -o $hw_xfree86_dixmods_libshadow_obj &
1502 done
1503 #===================================================================================================
1504 hw_xfree86_fbdevhw_c_files="\
1505 $src_dir/hw/xfree86/fbdevhw/fbdevhw.c
1507 mkdir -p $build_dir/hw/xfree86/fbdevhw
1508 for f in $hw_xfree86_fbdevhw_c_files
1510 hw_xfree86_fbdevhw_obj=$build_dir/hw/xfree86/fbdevhw/$(basename $f .c).o
1511 hw_xfree86_fbdevhw_objs="$hw_xfree86_fbdevhw_objs $hw_xfree86_fbdevhw_obj"
1513 $cc $cppflags \
1514 -DHAVE_XORG_CONFIG_H \
1515 -I$src_dir/hw/xfree86/os-support/bus \
1516 -I$src_dir/hw/xfree86/os-support \
1517 -I$src_dir/hw/xfree86/parser \
1518 -I$src_dir/hw/xfree86/ddc \
1519 -I$src_dir/hw/xfree86/modes \
1520 -I$src_dir/hw/xfree86/common \
1521 $f -o $hw_xfree86_fbdevhw_obj &
1522 done
1523 #===================================================================================================
1524 hw_xfree86_shadowfb_libshadowfb_c_files="\
1525 $src_dir/hw/xfree86/shadowfb/sfbmodule.c
1526 $src_dir/hw/xfree86/shadowfb/shadowfb.c
1528 mkdir -p $build_dir/hw/xfree86/shadowfb
1529 for f in $hw_xfree86_shadowfb_libshadowfb_c_files
1531 hw_xfree86_shadowfb_libshadowfb_obj=$build_dir/hw/xfree86/shadowfb/$(basename $f .c).o
1532 hw_xfree86_shadowfb_libshadowfb_objs="$hw_xfree86_shadowfb_libshadowfb_objs $hw_xfree86_shadowfb_libshadowfb_obj"
1534 $cc $cppflags \
1535 -DHAVE_XORG_CONFIG_H \
1536 -I$src_dir/hw/xfree86/common \
1537 $f -o $hw_xfree86_shadowfb_libshadowfb_obj &
1538 done
1539 #===================================================================================================
1540 hw_xfree86_exa_libexa_c_files="\
1541 $src_dir/hw/xfree86/exa/examodule.c
1543 mkdir -p $build_dir/hw/xfree86/exa
1544 for f in $hw_xfree86_exa_libexa_c_files
1546 hw_xfree86_exa_libexa_obj=$build_dir/hw/xfree86/exa/$(basename $f .c).o
1547 hw_xfree86_exa_libexa_objs="$hw_xfree86_exa_libexa_objs $hw_xfree86_exa_libexa_obj"
1549 $cc $cppflags \
1550 -DHAVE_XORG_CONFIG_H \
1551 -I$src_dir/hw/xfree86/common \
1552 -I$src_dir/exa \
1553 $f -o $hw_xfree86_exa_libexa_obj &
1554 done
1555 #===================================================================================================
1556 glamor_libglamoregl_c_files="\
1557 $src_dir/glamor/glamor_egl.c \
1558 $src_dir/glamor/glamor_eglmodule.c \
1559 $src_dir/hw/xfree86/glamor_egl/glamor_xf86_xv.c \
1561 mkdir -p $build_dir/glamor
1562 for f in $glamor_libglamoregl_c_files
1564 glamor_libglamoregl_obj=$build_dir/glamor/$(basename $f .c).o
1565 glamor_libglamoregl_objs="$glamor_libglamoregl_objs $glamor_libglamoregl_obj"
1567 $cc $cppflags \
1568 -DHAVE_XORG_CONFIG_H \
1569 -I$src_dir/hw/xfree86/common \
1570 -I$src_dir/glamor \
1571 -I$src_dir/dri3 \
1572 $f -o $glamor_libglamoregl_obj &
1573 done
1574 #===================================================================================================
1575 hw_xfree86_drivers_modesetting_c_files="\
1576 $src_dir/hw/xfree86/drivers/modesetting/dri2.c \
1577 $src_dir/hw/xfree86/drivers/modesetting/driver.c \
1578 $src_dir/hw/xfree86/drivers/modesetting/drmmode_display.c \
1579 $src_dir/hw/xfree86/drivers/modesetting/dumb_bo.c \
1580 $src_dir/hw/xfree86/drivers/modesetting/present.c \
1581 $src_dir/hw/xfree86/drivers/modesetting/vblank.c \
1582 $src_dir/hw/xfree86/drivers/modesetting/pageflip.c \
1584 mkdir -p $build_dir/hw/xfree86/drivers/modesetting
1585 for f in $hw_xfree86_drivers_modesetting_c_files
1587 hw_xfree86_drivers_modesetting_obj=$build_dir/hw/xfree86/drivers/modesetting/$(basename $f .c).o
1588 hw_xfree86_drivers_modesetting_objs="$hw_xfree86_drivers_modesetting_objs $hw_xfree86_drivers_modesetting_obj"
1590 $cc $cppflags \
1591 -DHAVE_XORG_CONFIG_H \
1592 -I$src_dir/hw/xfree86/dri2 \
1593 -I$src_dir/hw/xfree86/i2c \
1594 -I$src_dir/hw/xfree86/ramdac \
1595 -I$src_dir/hw/xfree86/parser \
1596 -I$src_dir/hw/xfree86/ddc \
1597 -I$src_dir/hw/xfree86/modes \
1598 -I$src_dir/hw/xfree86/os-support/bus \
1599 -I$src_dir/hw/xfree86/os-support \
1600 -I$src_dir/hw/xfree86/common \
1601 -I$src_dir/glamor \
1602 $f -o $hw_xfree86_drivers_modesetting_obj &
1603 done
1604 #===================================================================================================
1605 hw_xfree86_drivers_inputtest_c_files="\
1606 $src_dir/hw/xfree86/drivers/inputtest/xf86-input-inputtest.c \
1608 mkdir -p $build_dir/hw/xfree86/drivers/inputtest
1609 for f in $hw_xfree86_drivers_inputtest_c_files
1611 hw_xfree86_drivers_inputtest_obj=$build_dir/hw/xfree86/drivers/inputtest/$(basename $f .c).o
1612 hw_xfree86_drivers_inputtest_objs="$hw_xfree86_drivers_inputtest_objs $hw_xfree86_drivers_inputtest_obj"
1614 $cc $cppflags \
1615 -DHAVE_XORG_CONFIG_H \
1616 -I$src_dir/hw/xfree86/common \
1617 $f -o $hw_xfree86_drivers_inputtest_obj &
1618 done
1619 ####################################################################################################
1620 ####################################################################################################
1621 ####################################################################################################
1622 wait
1623 ####################################################################################################
1624 ####################################################################################################
1625 ####################################################################################################
1626 # building of archives for cherry picking during linking
1627 $ar_rcs $build_dir/libxserver_glx.a $glx_objs &
1628 $ar_rcs $build_dir/libglamor.a $glamor_objs &
1629 wait
1630 #===================================================================================================
1631 # building of binaries
1632 #===================================================================================================
1634 mkdir -p $build_dir/install_root$bindir_store
1635 mkdir -p $build_dir/install_root$bindir
1636 $ccld \
1637 -o $build_dir/install_root$bindir_store/Xorg \
1639 -Wl,--no-undefined \
1640 -static-libgcc \
1641 -ftls-model=global-dynamic -fpic -fPIC \
1642 -B/nyan/glibc/current/lib \
1643 -Wl,-s \
1644 -Wl,--export-dynamic \
1646 $dix_objs \
1647 $hw_xfree86_loader_objs \
1648 $hw_xfree86_common_objs \
1649 $config_objs \
1650 $hw_xfree86_os_support_bus_objs \
1651 $hw_xfree86_os_support_linux_objs \
1652 $hw_xfree86_os_support_misc_objs \
1653 $hw_xfree86_parser_objs \
1654 $hw_xfree86_dixmods_objs \
1655 $hw_xfree86_modes_objs \
1656 $hw_xfree86_ramdac_objs \
1657 $hw_xfree86_ddc_objs \
1658 $hw_xfree86_i2c_objs \
1659 $composite_objs \
1660 $xfixes_objs \
1661 $xext_objs \
1662 $dbe_objs \
1663 $record_objs \
1664 $randr_objs \
1665 $render_objs \
1666 $damageext_objs \
1667 $present_objs \
1668 $miext_damage_objs \
1669 $xi_objs \
1670 $xkb_objs \
1671 $hw_xfree86_xkb_objs \
1672 $hw_xfree86_dri_objs \
1673 $hw_xfree86_dri2_objs \
1674 $dri3_objs \
1675 $miext_sync_objs \
1676 $mi_objs \
1677 $os_objs \
1678 $xext_vidmod_objs \
1679 $fb_objs \
1680 $glxvnd_objs \
1682 $pixman_ldflags \
1683 $libpciaccess_ldflags \
1684 $libxfont2_ldflags \
1685 $libdrm_ldflags \
1686 $libxshmfence_ldflags \
1687 $libudev_ldflags \
1688 $libxcvt_ldflags \
1689 $libxau_ldflags \
1690 $ssl_ldflags \
1691 -lm -ldl -lpthread \
1692 -Wl,--rpath-link=\
1693 /nyan/libfontenc/current/lib:\
1694 /nyan/freetype/current/lib:\
1695 /nyan/libpng/current/lib
1697 ln -sTf $bindir_store_virtual/Xorg $build_dir/install_root$bindir/Xorg
1699 #===================================================================================================
1701 mkdir -p $build_dir/install_root$defaultmodulepath
1702 mkdir -p $build_dir/install_root$module_store
1703 module_name=libint10.so
1704 $ccld \
1705 -o $build_dir/install_root$module_store/$module_name \
1707 -shared \
1708 -Wl,-soname -Wl,$module_name \
1709 -static-libgcc \
1710 -ftls-model=global-dynamic -fpic -fPIC \
1711 -B/nyan/glibc/current/lib \
1712 -Wl,-s \
1714 $hw_xfree86_int10_objs \
1716 $libpciaccess_ldflags
1718 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1720 #===================================================================================================
1722 mkdir -p $build_dir/install_root$defaultmodulepath
1723 mkdir -p $build_dir/install_root$module_store
1724 module_name=libvgahw.so
1725 $ccld \
1726 -o $build_dir/install_root$module_store/$module_name \
1728 -shared \
1729 -Wl,-soname -Wl,$module_name \
1730 -static-libgcc \
1731 -ftls-model=global-dynamic -fpic -fPIC \
1732 -B/nyan/glibc/current/lib \
1733 -Wl,-s \
1735 $hw_xfree86_vgahw_objs \
1737 $libpciaccess_ldflags
1739 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1741 #===================================================================================================
1743 mkdir -p $build_dir/install_root$defaultmodulepath/extensions
1744 mkdir -p $build_dir/install_root$module_store/extensions
1745 module_name=libglx.so
1746 $ccld \
1747 -o $build_dir/install_root$module_store/extensions/$module_name \
1749 -shared \
1750 -Wl,-soname -Wl,$module_name \
1751 -static-libgcc \
1752 -ftls-model=global-dynamic -fpic -fPIC \
1753 -B/nyan/glibc/current/lib \
1754 -Wl,-s \
1756 $hw_xfree86_dixmods_glxmodule_objs \
1757 $glxdri_objs \
1758 -Wl,--whole-archive \
1759 $build_dir/libxserver_glx.a \
1760 -Wl,--no-whole-archive \
1761 $libglvnd_gl_ldflags \
1762 -ldl
1764 ln -sTf $module_store_virtual/extensions/$module_name $build_dir/install_root$defaultmodulepath/extensions/$module_name
1766 #===================================================================================================
1768 mkdir -p $build_dir/install_root$defaultmodulepath
1769 mkdir -p $build_dir/install_root$module_store
1770 module_name=libwfb.so
1771 $ccld \
1772 -o $build_dir/install_root$module_store/$module_name \
1774 -shared \
1775 -Wl,-soname -Wl,$module_name \
1776 -static-libgcc \
1777 -ftls-model=global-dynamic -fpic -fPIC \
1778 -B/nyan/glibc/current/lib \
1779 -Wl,-s \
1781 $fbw_objs \
1783 $hw_xfree86_dixmods_libwfb_objs \
1784 $pixman_ldflags
1786 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1788 #===================================================================================================
1790 mkdir -p $build_dir/install_root$defaultmodulepath
1791 mkdir -p $build_dir/install_root$module_store
1792 module_name=libshadow.so
1793 $ccld \
1794 -o $build_dir/install_root$module_store/$module_name \
1796 -shared \
1797 -Wl,-soname -Wl,$module_name \
1798 -static-libgcc \
1799 -ftls-model=global-dynamic -fpic -fPIC \
1800 -B/nyan/glibc/current/lib \
1801 -Wl,-s \
1803 $miext_shadow_objs \
1805 $hw_xfree86_dixmods_libshadow_objs
1807 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1809 #===================================================================================================
1811 mkdir -p $build_dir/install_root$defaultmodulepath
1812 mkdir -p $build_dir/install_root$module_store
1813 module_name=libshadowfb.so
1814 $ccld \
1815 -o $build_dir/install_root$module_store/$module_name \
1817 -shared \
1818 -Wl,-soname -Wl,$module_name \
1819 -static-libgcc \
1820 -ftls-model=global-dynamic -fpic -fPIC \
1821 -B/nyan/glibc/current/lib \
1822 -Wl,-s \
1824 $hw_xfree86_shadowfb_libshadowfb_objs
1826 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1828 #===================================================================================================
1830 mkdir -p $build_dir/install_root$defaultmodulepath
1831 mkdir -p $build_dir/install_root$module_store
1832 module_name=libexa.so
1833 $ccld \
1834 -o $build_dir/install_root$module_store/$module_name \
1836 -shared \
1837 -Wl,-soname -Wl,$module_name \
1838 -static-libgcc \
1839 -ftls-model=global-dynamic -fpic -fPIC \
1840 -B/nyan/glibc/current/lib \
1841 -Wl,-s \
1843 $exa_objs \
1845 $hw_xfree86_exa_libexa_objs \
1847 $pixman_ldflags
1849 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1851 #===================================================================================================
1853 mkdir -p $build_dir/install_root$defaultmodulepath/drivers
1854 mkdir -p $build_dir/install_root$module_store/drivers
1855 module_name=modesetting_drv.so
1856 $ccld \
1857 -o $build_dir/install_root$module_store/drivers/$module_name \
1859 -shared \
1860 -Wl,-soname -Wl,$module_name \
1861 -static-libgcc \
1862 -ftls-model=global-dynamic -fpic -fPIC \
1863 -B/nyan/glibc/current/lib \
1864 -Wl,-s \
1866 $hw_xfree86_drivers_modesetting_objs \
1868 $libudev_ldflags \
1869 $mesa_gbm_ldflags \
1870 $libdrm_ldflags
1872 ln -sTf $module_store_virtual/drivers/$module_name $build_dir/install_root$defaultmodulepath/drivers/$module_name
1874 #===================================================================================================
1876 mkdir -p $build_dir/install_root$defaultmodulepath
1877 mkdir -p $build_dir/install_root$module_store
1878 module_name=libglamoregl.so
1879 $ccld \
1880 -o $build_dir/install_root$module_store/$module_name \
1882 -shared \
1883 -Wl,-soname -Wl,$module_name \
1884 -static-libgcc \
1885 -ftls-model=global-dynamic -fpic -fPIC \
1886 -B/nyan/glibc/current/lib \
1887 -Wl,-s \
1889 $glamor_libglamoregl_objs \
1891 $build_dir/libglamor.a \
1892 $build_dir/libxserver_glx.a \
1894 $libepoxy_ldflags \
1895 $mesa_gbm_ldflags \
1896 $libdrm_ldflags \
1897 $pixman_ldflags \
1899 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1901 #===================================================================================================
1903 mkdir -p $build_dir/install_root$defaultmodulepath
1904 mkdir -p $build_dir/install_root$module_store
1905 module_name=libfbdevhw.so
1906 $ccld \
1907 -o $build_dir/install_root$module_store/$module_name \
1908 -shared \
1909 -Wl,-soname -Wl,$module_name \
1910 -static-libgcc \
1911 -ftls-model=global-dynamic -fpic -fPIC \
1912 -B/nyan/glibc/current/lib \
1913 -Wl,-s \
1915 $hw_xfree86_fbdevhw_objs
1917 ln -sTf $module_store_virtual/$module_name $build_dir/install_root$defaultmodulepath/$module_name
1919 #===================================================================================================
1921 mkdir -p $build_dir/install_root$defaultmodulepath/input
1922 mkdir -p $build_dir/install_root$module_store/input
1923 module_name=inputtest_drv.so
1924 $ccld \
1925 -o $build_dir/install_root$module_store/input/$module_name \
1927 -shared \
1928 -Wl,-soname -Wl,$module_name \
1929 -static-libgcc \
1930 -ftls-model=global-dynamic -fpic -fPIC \
1931 -B/nyan/glibc/current/lib \
1932 -Wl,-s \
1934 $hw_xfree86_drivers_inputtest_objs \
1936 -lpthread
1938 ln -sTf $module_store_virtual/input/$module_name $build_dir/install_root$defaultmodulepath/input/$module_name
1940 ####################################################################################################
1941 ####################################################################################################
1942 ####################################################################################################
1943 ####################################################################################################
1944 ####################################################################################################
1945 ####################################################################################################
1946 # installation finish
1947 mkdir -p $build_dir/install_root$defaultlogdir &
1948 #---------------------------------------------------------------------------------------------------
1949 mkdir -p $build_dir/install_root$datadir/X11/xorg.conf.d &
1950 #---------------------------------------------------------------------------------------------------
1951 mkdir -p $build_dir/install_root$incdir_store/xorg
1952 cp -f $src_dir/composite/compositeext.h $build_dir/install_root$incdir_store/xorg/compositeext.h &
1953 cp -f $src_dir/present/present.h $build_dir/install_root$incdir_store/xorg/present.h &
1954 cp -f $src_dir/present/presentext.h $build_dir/install_root$incdir_store/xorg/presentext.h &
1955 cp -f $src_dir/include/XIstubs.h $build_dir/install_root$incdir_store/xorg/XIstubs.h &
1956 cp -f $src_dir/include/Xprintf.h $build_dir/install_root$incdir_store/xorg/Xprintf.h &
1957 cp -f $src_dir/include/callback.h $build_dir/install_root$incdir_store/xorg/callback.h &
1958 cp -f $src_dir/include/client.h $build_dir/install_root$incdir_store/xorg/client.h &
1959 cp -f $src_dir/include/closure.h $build_dir/install_root$incdir_store/xorg/closure.h &
1960 cp -f $src_dir/include/colormap.h $build_dir/install_root$incdir_store/xorg/colormap.h &
1961 cp -f $src_dir/include/colormapst.h $build_dir/install_root$incdir_store/xorg/colormapst.h &
1962 cp -f $src_dir/include/cursor.h $build_dir/install_root$incdir_store/xorg/cursor.h &
1963 cp -f $src_dir/include/cursorstr.h $build_dir/install_root$incdir_store/xorg/cursorstr.h &
1964 cp -f $src_dir/include/displaymode.h $build_dir/install_root$incdir_store/xorg/displaymode.h &
1965 cp -f $src_dir/include/dix.h $build_dir/install_root$incdir_store/xorg/dix.h &
1966 cp -f $src_dir/include/dixaccess.h $build_dir/install_root$incdir_store/xorg/dixaccess.h &
1967 cp -f $src_dir/include/dixevents.h $build_dir/install_root$incdir_store/xorg/dixevents.h &
1968 cp -f $src_dir/include/dixfont.h $build_dir/install_root$incdir_store/xorg/dixfont.h &
1969 cp -f $src_dir/include/dixfontstr.h $build_dir/install_root$incdir_store/xorg/dixfontstr.h &
1970 cp -f $src_dir/include/dixgrabs.h $build_dir/install_root$incdir_store/xorg/dixgrabs.h &
1971 cp -f $src_dir/include/dixstruct.h $build_dir/install_root$incdir_store/xorg/dixstruct.h &
1972 cp -f $src_dir/include/exevents.h $build_dir/install_root$incdir_store/xorg/exevents.h &
1973 cp -f $src_dir/include/extension.h $build_dir/install_root$incdir_store/xorg/extension.h &
1974 cp -f $src_dir/include/extinit.h $build_dir/install_root$incdir_store/xorg/extinit.h &
1975 cp -f $src_dir/include/extnsionst.h $build_dir/install_root$incdir_store/xorg/extnsionst.h &
1976 cp -f $src_dir/include/events.h $build_dir/install_root$incdir_store/xorg/events.h &
1977 cp -f $src_dir/include/fourcc.h $build_dir/install_root$incdir_store/xorg/fourcc.h &
1978 cp -f $src_dir/include/gc.h $build_dir/install_root$incdir_store/xorg/gc.h &
1979 cp -f $src_dir/include/gcstruct.h $build_dir/install_root$incdir_store/xorg/gcstruct.h &
1980 cp -f $src_dir/include/globals.h $build_dir/install_root$incdir_store/xorg/globals.h &
1981 cp -f $src_dir/include/glx_extinit.h $build_dir/install_root$incdir_store/xorg/glx_extinit.h &
1982 cp -f $src_dir/include/glxvndabi.h $build_dir/install_root$incdir_store/xorg/glxvndabi.h &
1983 cp -f $src_dir/include/hotplug.h $build_dir/install_root$incdir_store/xorg/hotplug.h &
1984 cp -f $src_dir/include/input.h $build_dir/install_root$incdir_store/xorg/input.h &
1985 cp -f $src_dir/include/inputstr.h $build_dir/install_root$incdir_store/xorg/inputstr.h &
1986 cp -f $src_dir/include/list.h $build_dir/install_root$incdir_store/xorg/list.h &
1987 cp -f $src_dir/include/misc.h $build_dir/install_root$incdir_store/xorg/misc.h &
1988 cp -f $src_dir/include/miscstruct.h $build_dir/install_root$incdir_store/xorg/miscstruct.h &
1989 cp -f $src_dir/include/nonsdk_extinit.h $build_dir/install_root$incdir_store/xorg/nonsdk_extinit.h &
1990 cp -f $src_dir/include/opaque.h $build_dir/install_root$incdir_store/xorg/opaque.h &
1991 cp -f $src_dir/include/optionstr.h $build_dir/install_root$incdir_store/xorg/optionstr.h &
1992 cp -f $src_dir/include/os.h $build_dir/install_root$incdir_store/xorg/os.h &
1993 cp -f $src_dir/include/pixmap.h $build_dir/install_root$incdir_store/xorg/pixmap.h &
1994 cp -f $src_dir/include/pixmapstr.h $build_dir/install_root$incdir_store/xorg/pixmapstr.h &
1995 cp -f $src_dir/include/privates.h $build_dir/install_root$incdir_store/xorg/privates.h &
1996 cp -f $src_dir/include/property.h $build_dir/install_root$incdir_store/xorg/property.h &
1997 cp -f $src_dir/include/propertyst.h $build_dir/install_root$incdir_store/xorg/propertyst.h &
1998 cp -f $src_dir/include/ptrveloc.h $build_dir/install_root$incdir_store/xorg/ptrveloc.h &
1999 cp -f $src_dir/include/region.h $build_dir/install_root$incdir_store/xorg/region.h &
2000 cp -f $src_dir/include/regionstr.h $build_dir/install_root$incdir_store/xorg/regionstr.h &
2001 cp -f $src_dir/include/resource.h $build_dir/install_root$incdir_store/xorg/resource.h &
2002 cp -f $src_dir/include/rgb.h $build_dir/install_root$incdir_store/xorg/rgb.h &
2003 cp -f $src_dir/include/screenint.h $build_dir/install_root$incdir_store/xorg/screenint.h &
2004 cp -f $src_dir/include/scrnintstr.h $build_dir/install_root$incdir_store/xorg/scrnintstr.h &
2005 cp -f $src_dir/include/selection.h $build_dir/install_root$incdir_store/xorg/selection.h &
2006 cp -f $src_dir/include/servermd.h $build_dir/install_root$incdir_store/xorg/servermd.h &
2007 cp -f $src_dir/include/validate.h $build_dir/install_root$incdir_store/xorg/validate.h &
2008 cp -f $src_dir/include/window.h $build_dir/install_root$incdir_store/xorg/window.h &
2009 cp -f $src_dir/include/windowstr.h $build_dir/install_root$incdir_store/xorg/windowstr.h &
2010 cp -f $src_dir/include/xkbfile.h $build_dir/install_root$incdir_store/xorg/xkbfile.h &
2011 cp -f $src_dir/include/xkbrules.h $build_dir/install_root$incdir_store/xorg/xkbrules.h &
2012 cp -f $src_dir/include/xkbsrv.h $build_dir/install_root$incdir_store/xorg/xkbsrv.h &
2013 cp -f $src_dir/include/xkbstr.h $build_dir/install_root$incdir_store/xorg/xkbstr.h &
2014 cp -f $src_dir/include/xserver-properties.h $build_dir/install_root$incdir_store/xorg/xserver-properties.h &
2015 cp -f $src_dir/include/xserver_poll.h $build_dir/install_root$incdir_store/xorg/xserver_poll.h &
2016 cp -f $src_dir/miext/damage/damage.h $build_dir/install_root$incdir_store/xorg/damage.h &
2017 cp -f $src_dir/miext/damage/damagestr.h $build_dir/install_root$incdir_store/xorg/damagestr.h &
2018 cp -f $src_dir/miext/shadow/shadow.h $build_dir/install_root$incdir_store/xorg/shadow.h &
2019 cp -f $src_dir/miext/sync/misync.h $build_dir/install_root$incdir_store/xorg/misync.h &
2020 cp -f $src_dir/miext/sync/misyncfd.h $build_dir/install_root$incdir_store/xorg/misyncfd.h &
2021 cp -f $src_dir/miext/sync/misyncshm.h $build_dir/install_root$incdir_store/xorg/misyncshm.h &
2022 cp -f $src_dir/miext/sync/misyncstr.h $build_dir/install_root$incdir_store/xorg/misyncstr.h &
2023 cp -f $src_dir/dbe/dbestruct.h $build_dir/install_root$incdir_store/xorg/dbestruct.h &
2024 cp -f $src_dir/dri3/dri3.h $build_dir/install_root$incdir_store/xorg/dri3.h &
2025 cp -f $src_dir/exa/exa.h $build_dir/install_root$incdir_store/xorg/exa.h &
2026 cp -f $src_dir/fb/fb.h $build_dir/install_root$incdir_store/xorg/fb.h &
2027 cp -f $src_dir/fb/fboverlay.h $build_dir/install_root$incdir_store/xorg/fboverlay.h &
2028 cp -f $src_dir/fb/fbpict.h $build_dir/install_root$incdir_store/xorg/fbpict.h &
2029 cp -f $src_dir/fb/fbrop.h $build_dir/install_root$incdir_store/xorg/fbrop.h &
2030 cp -f $src_dir/fb/wfbrename.h $build_dir/install_root$incdir_store/xorg/wfbrename.h &
2031 cp -f $src_dir/Xext/geext.h $build_dir/install_root$incdir_store/xorg/geext.h &
2032 cp -f $src_dir/Xext/geint.h $build_dir/install_root$incdir_store/xorg/geint.h &
2033 cp -f $src_dir/Xext/panoramiX.h $build_dir/install_root$incdir_store/xorg/panoramiX.h &
2034 cp -f $src_dir/Xext/panoramiXsrv.h $build_dir/install_root$incdir_store/xorg/panoramiXsrv.h &
2035 cp -f $src_dir/Xext/shmint.h $build_dir/install_root$incdir_store/xorg/shmint.h &
2036 cp -f $src_dir/Xext/syncsdk.h $build_dir/install_root$incdir_store/xorg/syncsdk.h &
2037 cp -f $src_dir/Xext/xace.h $build_dir/install_root$incdir_store/xorg/xace.h &
2038 cp -f $src_dir/Xext/xacestr.h $build_dir/install_root$incdir_store/xorg/xacestr.h &
2039 cp -f $src_dir/Xext/xvdix.h $build_dir/install_root$incdir_store/xorg/xvdix.h &
2040 cp -f $src_dir/Xext/xvmcext.h $build_dir/install_root$incdir_store/xorg/xvmcext.h &
2041 cp -f $src_dir/glamor/glamor.h $build_dir/install_root$incdir_store/xorg/glamor.h &
2042 cp -f $src_dir/render/glyphstr.h $build_dir/install_root$incdir_store/xorg/glyphstr.h &
2043 cp -f $src_dir/render/mipict.h $build_dir/install_root$incdir_store/xorg/mipict.h &
2044 cp -f $src_dir/render/picture.h $build_dir/install_root$incdir_store/xorg/picture.h &
2045 cp -f $src_dir/render/picturestr.h $build_dir/install_root$incdir_store/xorg/picturestr.h &
2046 cp -f $src_dir/mi/mi.h $build_dir/install_root$incdir_store/xorg/mi.h &
2047 cp -f $src_dir/mi/micmap.h $build_dir/install_root$incdir_store/xorg/micmap.h &
2048 cp -f $src_dir/mi/micoord.h $build_dir/install_root$incdir_store/xorg/micoord.h &
2049 cp -f $src_dir/mi/migc.h $build_dir/install_root$incdir_store/xorg/migc.h &
2050 cp -f $src_dir/mi/miline.h $build_dir/install_root$incdir_store/xorg/miline.h &
2051 cp -f $src_dir/mi/mioverlay.h $build_dir/install_root$incdir_store/xorg/mioverlay.h &
2052 cp -f $src_dir/mi/mipointer.h $build_dir/install_root$incdir_store/xorg/mipointer.h &
2053 cp -f $src_dir/mi/mipointrst.h $build_dir/install_root$incdir_store/xorg/mipointrst.h &
2054 cp -f $src_dir/mi/mistruct.h $build_dir/install_root$incdir_store/xorg/mistruct.h &
2055 cp -f $src_dir/mi/mizerarc.h $build_dir/install_root$incdir_store/xorg/mizerarc.h &
2056 cp -f $src_dir/randr/randrstr.h $build_dir/install_root$incdir_store/xorg/randrstr.h &
2057 cp -f $src_dir/randr/rrtransform.h $build_dir/install_root$incdir_store/xorg/rrtransform.h &
2058 cp -f $src_dir/glx/vndserver.h $build_dir/install_root$incdir_store/xorg/vndserver.h &
2059 cp -f $src_dir/hw/xfree86/common/compiler.h $build_dir/install_root$incdir_store/xorg/compiler.h &
2060 cp -f $src_dir/hw/xfree86/common/xaarop.h $build_dir/install_root$incdir_store/xorg/xaarop.h &
2061 cp -f $src_dir/hw/xfree86/common/xf86.h $build_dir/install_root$incdir_store/xorg/xf86.h &
2062 cp -f $src_dir/hw/xfree86/common/xf86MatchDrivers.h $build_dir/install_root$incdir_store/xorg/xf86MatchDrivers.h &
2063 cp -f $src_dir/hw/xfree86/common/xf86Module.h $build_dir/install_root$incdir_store/xorg/xf86Module.h &
2064 cp -f $src_dir/hw/xfree86/common/xf86Opt.h $build_dir/install_root$incdir_store/xorg/xf86Opt.h &
2065 cp -f $src_dir/hw/xfree86/common/xf86Optionstr.h $build_dir/install_root$incdir_store/xorg/xf86Optionstr.h &
2066 cp -f $src_dir/hw/xfree86/common/xf86PciInfo.h $build_dir/install_root$incdir_store/xorg/xf86PciInfo.h &
2067 cp -f $src_dir/hw/xfree86/common/xf86Priv.h $build_dir/install_root$incdir_store/xorg/xf86Priv.h &
2068 cp -f $src_dir/hw/xfree86/common/xf86Privstr.h $build_dir/install_root$incdir_store/xorg/xf86Privstr.h &
2069 cp -f $src_dir/hw/xfree86/common/xf86VGAarbiter.h $build_dir/install_root$incdir_store/xorg/xf86VGAarbiter.h &
2070 cp -f $src_dir/hw/xfree86/common/xf86Xinput.h $build_dir/install_root$incdir_store/xorg/xf86Xinput.h &
2071 cp -f $src_dir/hw/xfree86/common/xf86cmap.h $build_dir/install_root$incdir_store/xorg/xf86cmap.h &
2072 cp -f $src_dir/hw/xfree86/common/xf86fbman.h $build_dir/install_root$incdir_store/xorg/xf86fbman.h &
2073 cp -f $src_dir/hw/xfree86/common/xf86platformBus.h $build_dir/install_root$incdir_store/xorg/xf86platformBus.h &
2074 cp -f $src_dir/hw/xfree86/common/xf86sbusBus.h $build_dir/install_root$incdir_store/xorg/xf86sbusBus.h &
2075 cp -f $src_dir/hw/xfree86/common/xf86str.h $build_dir/install_root$incdir_store/xorg/xf86str.h &
2076 cp -f $src_dir/hw/xfree86/common/xf86xv.h $build_dir/install_root$incdir_store/xorg/xf86xv.h &
2077 cp -f $src_dir/hw/xfree86/common/xf86xvmc.h $build_dir/install_root$incdir_store/xorg/xf86xvmc.h &
2078 cp -f $src_dir/hw/xfree86/common/xf86xvpriv.h $build_dir/install_root$incdir_store/xorg/xf86xvpriv.h &
2079 cp -f $src_dir/hw/xfree86/common/xisb.h $build_dir/install_root$incdir_store/xorg/xisb.h &
2080 cp -f $src_dir/hw/xfree86/common/xorgVersion.h $build_dir/install_root$incdir_store/xorg/xorgVersion.h &
2081 cp -f $src_dir/hw/xfree86/ddc/edid.h $build_dir/install_root$incdir_store/xorg/edid.h &
2082 cp -f $src_dir/hw/xfree86/ddc/xf86DDC.h $build_dir/install_root$incdir_store/xorg/xf86DDC.h &
2083 cp -f $src_dir/hw/xfree86/dri/dri.h $build_dir/install_root$incdir_store/xorg/dri.h &
2084 cp -f $src_dir/hw/xfree86/dri/dristruct.h $build_dir/install_root$incdir_store/xorg/dristruct.h &
2085 cp -f $src_dir/hw/xfree86/dri/sarea.h $build_dir/install_root$incdir_store/xorg/sarea.h &
2086 cp -f $src_dir/hw/xfree86/dri2/dri2.h $build_dir/install_root$incdir_store/xorg/dri2.h &
2087 cp -f $src_dir/hw/xfree86/drivers/inputtest/xf86-input-inputtest-protocol.h $build_dir/install_root$incdir_store/xorg/xf86-input-inputtest-protocol.h &
2088 cp -f $src_dir/hw/xfree86/fbdevhw/fbdevhw.h $build_dir/install_root$incdir_store/xorg/fbdevhw.h &
2089 cp -f $src_dir/hw/xfree86/i2c/i2c_def.h $build_dir/install_root$incdir_store/xorg/i2c_def.h &
2090 cp -f $src_dir/hw/xfree86/i2c/xf86i2c.h $build_dir/install_root$incdir_store/xorg/xf86i2c.h &
2091 cp -f $src_dir/hw/xfree86/int10/vbe.h $build_dir/install_root$incdir_store/xorg/vbe.h &
2092 cp -f $src_dir/hw/xfree86/int10/vbeModes.h $build_dir/install_root$incdir_store/xorg/vbeModes.h &
2093 cp -f $src_dir/hw/xfree86/int10/xf86int10.h $build_dir/install_root$incdir_store/xorg/xf86int10.h &
2094 cp -f $src_dir/hw/xfree86/modes/xf86Crtc.h $build_dir/install_root$incdir_store/xorg/xf86Crtc.h &
2095 cp -f $src_dir/hw/xfree86/modes/xf86Modes.h $build_dir/install_root$incdir_store/xorg/xf86Modes.h &
2096 cp -f $src_dir/hw/xfree86/modes/xf86RandR12.h $build_dir/install_root$incdir_store/xorg/xf86RandR12.h &
2097 cp -f $src_dir/hw/xfree86/os-support/xf86_OSlib.h $build_dir/install_root$incdir_store/xorg/xf86_OSlib.h &
2098 cp -f $src_dir/hw/xfree86/os-support/xf86_OSproc.h $build_dir/install_root$incdir_store/xorg/xf86_OSproc.h &
2099 cp -f $src_dir/hw/xfree86/os-support/bus/xf86Pci.h $build_dir/install_root$incdir_store/xorg/xf86Pci.h &
2100 cp -f $src_dir/hw/xfree86/parser/xf86Optrec.h $build_dir/install_root$incdir_store/xorg/xf86Optrec.h &
2101 cp -f $src_dir/hw/xfree86/parser/xf86Parser.h $build_dir/install_root$incdir_store/xorg/xf86Parser.h &
2102 cp -f $src_dir/hw/xfree86/ramdac/xf86Cursor.h $build_dir/install_root$incdir_store/xorg/xf86Cursor.h &
2103 cp -f $src_dir/hw/xfree86/shadowfb/shadowfb.h $build_dir/install_root$incdir_store/xorg/shadowfb.h &
2104 cp -f $src_dir/hw/xfree86/vgahw/vgaHW.h $build_dir/install_root$incdir_store/xorg/vgaHW.h &
2105 #---------------------------------------------------------------------------------------------------
2106 sed -e "s:@defaultfontdir@:$defaultfontdir:g" \
2107 -e "s:@version_0@:$version_0:g" \
2108 -e "s:@version_1@:$version_1:g" \
2109 -e "s:@version_2@:$version_2:g" \
2110 <$src_dir/contrib/xorg-server.h.in \
2111 >$build_dir/install_root$incdir_store/xorg/xorg-server.h &
2112 #---------------------------------------------------------------------------------------------------
2113 #TODO: to remove
2114 mkdir -p $build_dir/install_root$defaultlibrarypath/pkgconfig
2115 sed -e "s:@projectroot@:$projectroot:g" \
2116 -e "s:@defaultmodulepath@:$defaultmodulepath:g" \
2117 -e "s:@sysconfigdir@:$datadir/X11/xorg.conf.d:g" \
2118 -e "s:@version_0@:$version_0:g" \
2119 -e "s:@version_1@:$version_1:g" \
2120 -e "s:@version_2@:$version_2:g" \
2121 -e "s:@version_3@:$version_3:g" \
2122 <$src_dir/contrib/xorg-server.pc.in \
2123 >$build_dir/install_root$defaultlibrarypath/pkgconfig/xorg-server.pc &
2124 #---------------------------------------------------------------------------------------------------
2125 # INFO: our configured version of xorg does not use the registry hence no 'protocol.txt'
2126 wait