1 printf "\tbuilding frontends sub-components-->\n"
2 #===============================================================================
3 mkdir
-p $build_dir/src
/gallium
/frontends
/dri
4 #-------------------------------------------------------------------------------
5 # XXX: should merge with libdri.a (below)
6 libdricommon_c_pathnames
="\
7 $build_dir/src/gallium/frontends/dri/dri_util.c \
9 #-------------------------------------------------------------------------------
10 for src_pathname
in $libdricommon_c_pathnames
12 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
13 printf "CPP $src_pathname --> $build_dir/src/gallium/frontends/dri/$cpp_filename\n"
14 $cpp $src_pathname -o $build_dir/src
/gallium
/frontends
/dri
/$cpp_filename \
15 -I$cc_internal_fixed_incdir \
16 -I$cc_internal_incdir \
20 -I$build_dir/src
/gallium
/frontends
/dri \
21 -I$src_dir/src
/gallium
/frontends
/dri \
22 -I$build_dir/src
/gallium
/auxiliary \
23 -I$src_dir/src
/gallium
/auxiliary \
24 -I$build_dir/src
/gallium
/include \
25 -I$src_dir/src
/gallium
/include \
26 -I$build_dir/src
/loader \
27 -I$src_dir/src
/loader \
28 -I$build_dir/src
/mapi \
30 -I$build_dir/src
/mesa \
32 -I$build_dir/src
/util \
36 -I$build_dir/include \
39 $syslib_cpp_flags_defs \
40 $linux_cpp_flags_defs \
41 $cc_builtins_cpp_flags_defs \
42 $cc_attributes_cpp_flags_defs \
43 $mesa_cpp_flags_defs \
45 $external_deps_cpp_flags &
47 #-------------------------------------------------------------------------------
49 #------------------------------------------------------------------------------
50 for src_pathname
in $libdricommon_c_pathnames
52 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
53 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
54 printf "CC_S $build_dir/src/gallium/frontends/dri/$cpp_filename --> $build_dir/src/gallium/frontends/dri/$asm_filename\n"
55 $cc_s $build_dir/src
/gallium
/frontends
/dri
/$cpp_filename -o $build_dir/src
/gallium
/frontends
/dri
/$asm_filename &
57 #------------------------------------------------------------------------------
59 #------------------------------------------------------------------------------
61 for src_pathname
in $libdricommon_c_pathnames
63 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
64 o_filename
=$
(basename $src_pathname .c
).cpp.c.s.o
65 os
="$os $build_dir/src/gallium/frontends/dri/$o_filename"
66 printf "AS $build_dir/src/gallium/frontends/dri/$asm_filename --> $build_dir/src/gallium/frontends/dri/$o_filename\n"
67 $as $build_dir/src
/gallium
/frontends
/dri
/$asm_filename -o $build_dir/src
/gallium
/frontends
/dri
/$o_filename &
69 #-------------------------------------------------------------------------------
71 #-------------------------------------------------------------------------------
72 printf "AR RCS $build_dir/libdricommon.a $os\n"
73 $ar_rcs $build_dir/libdricommon.a
$os
74 #===============================================================================
76 $src_dir/src/gallium/frontends/dri/dri_context.c \
77 $src_dir/src/gallium/frontends/dri/dri_drawable.c \
78 $src_dir/src/gallium/frontends/dri/dri_helpers.c \
79 $src_dir/src/gallium/frontends/dri/dri_query_renderer.c \
80 $src_dir/src/gallium/frontends/dri/dri_screen.c \
81 $src_dir/src/gallium/frontends/dri/kopper_stubs.c \
83 $build_dir/src/gallium/frontends/dri/dri2.c \
85 #-------------------------------------------------------------------------------
86 for src_pathname
in $libdri_c_pathnames
88 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
89 printf "CPP $src_pathname --> $build_dir/src/gallium/frontends/dri/$cpp_filename\n"
90 $cpp $src_pathname -o $build_dir/src
/gallium
/frontends
/dri
/$cpp_filename \
91 -I$cc_internal_fixed_incdir \
92 -I$cc_internal_incdir \
96 -I$build_dir/src
/gallium
/frontends
/dri \
97 -I$src_dir/src
/gallium
/frontends
/dri \
98 -I$build_dir/src
/gallium
/auxiliary \
99 -I$src_dir/src
/gallium
/auxiliary \
100 -I$build_dir/src
/gallium
/include \
101 -I$src_dir/src
/gallium
/include \
102 -I$build_dir/src
/mesa
/drivers
/dri
/common \
103 -I$src_dir/src
/mesa
/drivers
/dri
/common \
104 -I$build_dir/src
/loader \
105 -I$src_dir/src
/loader \
106 -I$build_dir/src
/mesa \
107 -I$src_dir/src
/mesa \
108 -I$build_dir/src
/mapi \
109 -I$src_dir/src
/mapi \
112 -I$build_dir/include \
115 $syslib_cpp_flags_defs \
116 $linux_cpp_flags_defs \
117 $cc_builtins_cpp_flags_defs \
118 $cc_attributes_cpp_flags_defs \
119 $mesa_cpp_flags_defs \
121 $external_deps_cpp_flags &
123 #-------------------------------------------------------------------------------
125 #------------------------------------------------------------------------------
126 for src_pathname
in $libdri_c_pathnames
128 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
129 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
130 printf "CC_S $build_dir/src/gallium/frontends/dri/$cpp_filename --> $build_dir/src/gallium/frontends/dri/$asm_filename\n"
131 $cc_s $build_dir/src
/gallium
/frontends
/dri
/$cpp_filename -o $build_dir/src
/gallium
/frontends
/dri
/$asm_filename &
133 #------------------------------------------------------------------------------
135 #------------------------------------------------------------------------------
137 for src_pathname
in $libdri_c_pathnames
139 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
140 o_filename
=$
(basename $src_pathname .c
).cpp.c.s.o
141 os
="$os $build_dir/src/gallium/frontends/dri/$o_filename"
142 printf "AS $build_dir/src/gallium/frontends/dri/$asm_filename --> $build_dir/src/gallium/frontends/dri/$o_filename\n"
143 $as $build_dir/src
/gallium
/frontends
/dri
/$asm_filename -o $build_dir/src
/gallium
/frontends
/dri
/$o_filename &
145 #-------------------------------------------------------------------------------
147 #-------------------------------------------------------------------------------
148 printf "AR RCS $build_dir/libdri.a $os\n"
149 $ar_rcs $build_dir/libdri.a
$os
150 #===============================================================================
151 printf "\t<--frontends sub-components built\n"