]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/regex/build/bc_gen.sh
3 # copyright John Maddock 2003
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt.
17 # install target temp file:
23 # main output sub-directory:
26 #######################################################################
28 # section for C++ Builder
30 #######################################################################
32 function bcb_gen_lib
()
34 all_dep
="$all_dep $subdir\\$libname $subdir\\$libname.lib"
35 echo " copy $subdir\\$libname.lib \$(BCROOT)\\lib" >> $iout
37 # set up section comments:
39 ########################################################
41 # section for $libname.lib
43 ########################################################
46 # process source files:
51 obj
=`echo "$file" | sed 's/.*src\/\(.*\)cpp/\1obj/g'`
52 obj
="$subdir\\$libname\\$obj"
53 all_obj
="$all_obj $obj"
54 all_lib_obj
="$all_lib_obj +\"$obj\""
55 echo "$obj: $file \$(ALL_HEADER)" >> $tout
56 echo " bcc32 @&&|" >> $tout
57 echo "-c \$(INCLUDES) $opts \$(CXXFLAGS) -o$obj $file" >> $tout
62 # now for the directories for this library:
63 echo "$subdir\\$libname : " >> $tout
64 echo " -@mkdir $subdir\\$libname" >> $tout
67 # now for the clean options for this library:
68 all_clean
="$all_clean $libname""_clean"
69 echo "$libname"_clean
: >> $tout
70 echo " del $subdir\\$libname\\"'*.obj' >> $tout
71 echo " del $subdir\\$libname\\"'*.il?' >> $tout
72 echo " del $subdir\\$libname\\"'*.csm' >> $tout
73 echo " del $subdir\\$libname\\"'*.tds' >> $tout
76 # now for the main target for this library:
77 echo $subdir\\$libname.lib
: $all_obj >> $tout
78 echo " if exist $subdir\\$libname.lib del $subdir\\$libname.lib " >> $tout
79 echo " tlib @&&|" >> $tout
80 echo "/P128 /C /u /a \$(XSFLAGS) \"$subdir\\$libname.lib\" $all_lib_obj" >> $tout
85 function bcb_gen_dll
()
87 all_dep
="$all_dep $subdir\\$libname $subdir\\$libname.lib"
88 echo " copy $subdir\\$libname.lib \$(BCROOT)\\lib" >> $iout
89 echo " copy $subdir\\$libname.dll \$(BCROOT)\\bin" >> $iout
90 echo " copy $subdir\\$libname.tds \$(BCROOT)\\bin" >> $iout
92 # set up section comments:
94 ########################################################
96 # section for $libname.lib
98 ########################################################
101 # process source files:
105 obj
=`echo "$file" | sed 's/.*src\/\(.*\)cpp/\1obj/g'`
106 obj
="$subdir\\$libname\\$obj"
107 all_obj
="$all_obj $obj"
108 echo "$obj: $file \$(ALL_HEADER)" >> $tout
109 echo " bcc32 @&&|" >> $tout
110 echo "-c \$(INCLUDES) $opts \$(CXXFLAGS) -DBOOST_REGEX_DYN_LINK -o$obj $file" >> $tout
115 # now for the directories for this library:
116 echo "$subdir\\$libname :" >> $tout
117 echo " -@mkdir $subdir\\$libname" >> $tout
120 # now for the clean options for this library:
121 all_clean
="$all_clean $libname""_clean"
122 echo "$libname"_clean
: >> $tout
123 echo " del $subdir\\$libname\\"'*.obj' >> $tout
124 echo " del $subdir\\$libname\\"'*.il?' >> $tout
125 echo " del $subdir\\$libname\\"'*.csm' >> $tout
126 echo " del $subdir\\$libname\\"'*.tds' >> $tout
127 echo " del $subdir\\"'*.tds' >> $tout
130 # now for the main target for this library:
131 echo $subdir\\$libname.lib
: $all_obj >> $tout
132 echo " bcc32 @&&|" >> $tout
133 echo "-lw-dup -lw-dpl $opts -e$subdir\\$libname.dll \$(XLFLAGS) $all_obj \$(LIBS)" >> $tout
135 echo " implib -w $subdir\\$libname.lib $subdir\\$libname.dll" >> $tout
151 libname
="libboost_regex-${subdir}-s-${boost_version}"
152 opts
="-tWM- -D_NO_VCL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8037 -w-8057 -DSTRICT; -I\$(BCROOT)\include;../../../"
155 libname
="libboost_regex-${subdir}-mt-s-${boost_version}"
156 opts
="-tWM -D_NO_VCL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../"
159 libname
="boost_regex-${subdir}-mt-${boost_version}"
160 opts
="-tWD -tWM -tWR -D_NO_VCL -D_RTLDLL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
163 libname
="boost_regex-${subdir}-${boost_version}"
164 opts
="-tWD -tWR -tWM- -D_NO_VCL -D_RTLDLL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
167 libname
="libboost_regex-${subdir}-mt-${boost_version}"
168 opts
="-tWD -tWM -tWR -DBOOST_REGEX_STATIC_LINK -D_NO_VCL -D_RTLDLL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
171 libname
="libboost_regex-${subdir}-${boost_version}"
172 opts
="-tWD -tWR -tWM- -DBOOST_REGEX_STATIC_LINK -D_NO_VCL -D_RTLDLL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
175 libname
="libboost_regex-${subdir}-sd-${boost_version}"
176 opts
="-tWM- -D_NO_VCL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8037 -w-8057 -DSTRICT; -I\$(BCROOT)\include;../../../"
179 libname
="libboost_regex-${subdir}-mt-sd-${boost_version}"
180 opts
="-tWM -D_NO_VCL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../"
183 libname
="boost_regex-${subdir}-mt-d-${boost_version}"
184 opts
="-tWD -tWM -tWR -D_NO_VCL -D_RTLDLL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
187 libname
="boost_regex-${subdir}-d-${boost_version}"
188 opts
="-tWD -tWR -tWM- -D_NO_VCL -D_RTLDLL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
191 libname
="libboost_regex-${subdir}-mt-d-${boost_version}"
192 opts
="-tWD -tWM -tWR -DBOOST_REGEX_STATIC_LINK -D_NO_VCL -D_RTLDLL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
195 libname
="libboost_regex-${subdir}-d-${boost_version}"
196 opts
="-tWD -tWR -tWM- -DBOOST_REGEX_STATIC_LINK -D_NO_VCL -D_RTLDLL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../ -L\$(BCROOT)\lib;\$(BCROOT)\lib\release;"
200 # copyright John Maddock 2006
201 # Distributed under the Boost Software License, Version 1.0.
202 # (See accompanying file LICENSE_1_0.txt or copy at
203 # http://www.boost.org/LICENSE_1_0.txt.
205 # auto generated makefile for C++ Builder
209 # brings libraries up to date
211 # brings libraries up to date and copies binaries to your C++ Builder /lib and /bin directories (recomended)
213 # removes all temporary files.
216 # Add additional compiler options here:
220 # Add additional include directories here:
224 # add additional linker flags here:
228 # add additional libraries to link to here:
232 # add additional static-library creation flags here:
237 BCROOT=\$(MAKEDIR)\\..
242 echo "ALL_HEADER=$header" >> $out
244 echo "all : $all_dep" >> $out
246 echo "clean : $all_clean" >> $out
248 echo "install : all" >> $out
251 echo $subdir : >> $out
252 echo " -@mkdir $subdir" >> $out
261 # generate C++ Builder 6 files: