]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/link/bc_gen.sh
3 # copyright John Maddock 2005
4 # Use, modification and distribution are subject to the
5 # Boost Software License, Version 1.0. (See accompanying file
6 # LICENSE_1_0.txt or copy at 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 $subdir\\$libname.exe"
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/\(.*\)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 " tlib @&&|" >> $tout
79 echo "/P128 /C /u /a \$(XSFLAGS) \"$subdir\\$libname.lib\" $all_lib_obj" >> $tout
82 # now the test program:
83 echo "$subdir\\$libname.exe : main.cpp $subdir\\$libname.lib" >> $tout
84 echo " bcc32 \$(INCLUDES) $opts /DBOOST_LIB_DIAGNOSTIC=1 \$(CXXFLAGS) -L./$subdir -e./$subdir/$libname.exe main.cpp" >> $tout
85 echo " echo running test progam $subdir"'\'"$libname.exe" >> $tout
86 echo " $subdir"'\'"$libname.exe" >> $tout
90 function bcb_gen_dll
()
92 all_dep
="$all_dep $subdir\\$libname $subdir\\$libname.lib $subdir\\$libname.exe"
93 echo " copy $subdir\\$libname.lib \$(BCROOT)\\lib" >> $iout
94 echo " copy $subdir\\$libname.dll \$(BCROOT)\\bin" >> $iout
95 echo " copy $subdir\\$libname.tds \$(BCROOT)\\bin" >> $iout
97 # set up section comments:
99 ########################################################
101 # section for $libname.lib
103 ########################################################
106 # process source files:
110 obj
=`echo "$file" | sed 's/\(.*\)cpp/\1obj/g'`
111 obj
="$subdir\\$libname\\$obj"
112 all_obj
="$all_obj $obj"
113 echo "$obj: $file \$(ALL_HEADER)" >> $tout
114 echo " bcc32 @&&|" >> $tout
115 echo "-c \$(INCLUDES) $opts \$(CXXFLAGS) -DBOOST_DYN_LINK -o$obj $file" >> $tout
120 # now for the directories for this library:
121 echo "$subdir\\$libname :" >> $tout
122 echo " -@mkdir $subdir\\$libname" >> $tout
125 # now for the clean options for this library:
126 all_clean
="$all_clean $libname""_clean"
127 echo "$libname"_clean
: >> $tout
128 echo " del $subdir\\$libname\\"'*.obj' >> $tout
129 echo " del $subdir\\$libname\\"'*.il?' >> $tout
130 echo " del $subdir\\$libname\\"'*.csm' >> $tout
131 echo " del $subdir\\$libname\\"'*.tds' >> $tout
132 echo " del $subdir\\"'*.tds' >> $tout
135 # now for the main target for this library:
136 echo $subdir\\$libname.lib
: $all_obj >> $tout
137 echo " bcc32 @&&|" >> $tout
138 echo "-lw-dup -lw-dpl $opts -e$subdir\\$libname.dll \$(XLFLAGS) $all_obj \$(LIBS)" >> $tout
140 echo " implib -w $subdir\\$libname.lib $subdir\\$libname.dll" >> $tout
142 # now the test program:
143 echo "$subdir\\$libname.exe : main.cpp $subdir\\$libname.lib" >> $tout
144 echo " bcc32 \$(INCLUDES) $opts /DBOOST_LIB_DIAGNOSTIC=1 \$(CXXFLAGS) -DBOOST_DYN_LINK -L./$subdir -e./$subdir/$libname.exe main.cpp" >> $tout
145 echo " echo running test program $subdir"'\'"$libname.exe" >> $tout
146 echo " $subdir"'\'"$libname.exe" >> $tout
162 libname
="liblink_test-${subdir}-s-${boost_version}"
163 opts
="-tWM- -D_NO_VCL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8037 -w-8057 -DSTRICT; -I\$(BCROOT)\include;../../../../"
166 libname
="liblink_test-${subdir}-mt-s-${boost_version}"
167 opts
="-tWM -D_NO_VCL -O2 -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../../"
170 libname
="link_test-${subdir}-mt-${boost_version}"
171 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;"
174 libname
="link_test-${subdir}-${boost_version}"
175 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;"
178 libname
="liblink_test-${subdir}-mt-${boost_version}"
179 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;"
182 libname
="liblink_test-${subdir}-${boost_version}"
183 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;"
187 libname
="liblink_test-${subdir}-sd-${boost_version}"
188 opts
="-tWM- -D_NO_VCL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8037 -w-8057 -DSTRICT; -I\$(BCROOT)\include;../../../../"
191 libname
="liblink_test-${subdir}-mt-sd-${boost_version}"
192 opts
="-tWM -D_NO_VCL -v -Ve -Vx -w-inl -w-aus -w-rch -w-8012 -w-8057 -w-8037 -DSTRICT; -I\$(BCROOT)\include;../../../../"
195 libname
="link_test-${subdir}-mt-d-${boost_version}"
196 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;"
199 libname
="link_test-${subdir}-d-${boost_version}"
200 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;"
203 libname
="liblink_test-${subdir}-mt-d-${boost_version}"
204 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;"
207 libname
="liblink_test-${subdir}-d-${boost_version}"
208 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;"
213 # copyright John Maddock 2005
214 # Use, modification and distribution are subject to the
215 # Boost Software License, Version 1.0. (See accompanying file
216 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
218 # auto generated makefile for C++ Builder
222 # brings libraries up to date
224 # brings libraries up to date and copies binaries to your C++ Builder /lib and /bin directories (recomended)
226 # removes all temporary files.
229 # Add additional compiler options here:
233 # Add additional include directories here:
237 # add additional linker flags here:
241 # add additional libraries to link to here:
245 # add additional static-library creation flags here:
250 BCROOT=\$(MAKEDIR)\\..
255 echo "ALL_HEADER=$header" >> $out
257 echo "all : $all_dep" >> $out
259 echo "clean : $all_clean" >> $out
261 echo "install : all" >> $out
264 echo $subdir : >> $out
265 echo " -@mkdir $subdir" >> $out
274 # generate C++ Builder 6 files: