]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/link/vc_gen.sh
2 # copyright John Maddock 2005
3 # Use, modification and distribution are subject to the
4 # Boost Software License, Version 1.0. (See accompanying file
5 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
16 # install target temp file:
22 # main output sub-directory:
24 # extra debug /RTc options:
27 function vc6_gen_lib
()
29 all_dep
="$all_dep $libname""_dir ./$subdir/$libname.lib ./$subdir/$libname.exe"
30 echo " copy $subdir\\$libname.lib "'"$'"(MSVCDIR)\\lib"'"' >> $iout
31 if test $debug == "yes"; then
32 echo " copy $subdir\\$libname.pdb "'"$'"(MSVCDIR)\\lib"'"' >> $iout
35 # set up section comments:
37 ########################################################
39 # section for $libname.lib
41 ########################################################
44 # process source files:
48 obj
=`echo "$file" | sed 's/\(.*\)cpp/\1obj/g'`
49 obj
="$subdir/$libname/$obj"
50 all_obj
="$all_obj $obj"
51 echo "$obj: $file \$(ALL_HEADER)" >> $tout
52 echo " cl /c \$(INCLUDES) $opts \$(CXXFLAGS) -Y- -Fo./$subdir/$libname/ -Fd$subdir/$libname.pdb $file" >> $tout
56 # now for the directories for this library:
57 echo "$libname"_dir
: >> $tout
58 echo " @if not exist \"$subdir\\$libname\\\$(NULL)\" mkdir $subdir\\$libname" >> $tout
61 # now for the clean options for this library:
62 all_clean
="$all_clean $libname""_clean"
63 echo "$libname"_clean
: >> $tout
64 echo " del $subdir\\$libname\\"'*.obj' >> $tout
65 echo " del $subdir\\$libname\\"'*.idb' >> $tout
66 echo " del $subdir\\$libname\\"'*.exp' >> $tout
67 echo " del $subdir\\$libname\\"'*.pch' >> $tout
70 # now for the main target for this library:
71 echo .
/$subdir/$libname.lib
: $all_obj >> $tout
72 echo " link -lib /nologo /out:$subdir/$libname.lib \$(XSFLAGS) $all_obj" >> $tout
74 # now the test program:
75 echo .
/$subdir/$libname.exe
: main.cpp .
/$subdir/$libname.lib
>> $tout
76 echo " cl \$(INCLUDES) $opts /DBOOST_LIB_DIAGNOSTIC=1 \$(CXXFLAGS) -o ./$subdir/$libname.exe main.cpp /link /LIBPATH:./$subdir" >> $tout
77 echo " $subdir"'\'"$libname.exe" >> $tout
81 function vc6_gen_dll()
83 all_dep="$all_dep $libname""_dir ./$subdir/$libname.lib ./$subdir/$libname.exe"
84 echo " copy $subdir\\$libname.lib "'"$'"(MSVCDIR
)\\lib
"'"' >> $iout
85 echo " copy $subdir\\$libname.dll "'"$'"(MSVCDIR
)\\bin
"'"' >> $iout
86 if test $debug == "yes"; then
87 echo " copy $subdir\\$libname.pdb "'"$'"(MSVCDIR
)\\lib
"'"' >> $iout
90 # set up section comments:
92 ########################################################
94 # section for $libname.lib
96 ########################################################
99 # process source files:
103 obj=`echo "$file" | sed 's
/\
(.
*\
)cpp
/\
1obj
/g
'`
104 obj="$subdir/$libname/$obj"
105 all_obj="$all_obj $obj"
106 echo "$obj: $file \$(ALL_HEADER)" >> $tout
107 echo " cl /c \$(INCLUDES) $opts \$(CXXFLAGS) -Y- -Fo./$subdir/$libname/ -Fd$subdir/$libname.pdb $file" >> $tout
111 # now for the directories for this library:
112 echo "$libname"_dir : >> $tout
113 echo " @if not exist \"$subdir\\$libname\\\$(NULL)\" mkdir $subdir\\$libname" >> $tout
116 # now for the clean options for this library:
117 all_clean="$all_clean $libname""_clean"
118 echo "$libname"_clean : >> $tout
119 echo " del $subdir\\$libname\\"'*.obj
' >> $tout
120 echo " del $subdir\\$libname\\"'*.idb
' >> $tout
121 echo " del $subdir\\$libname\\"'*.exp
' >> $tout
122 echo " del $subdir\\$libname\\"'*.pch
' >> $tout
125 # now for the main target for this library:
126 echo ./$subdir/$libname.lib : $all_obj >> $tout
127 echo " link kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:yes /pdb:\"$subdir/$libname.pdb\" /debug /machine:I386 /out:\"$subdir/$libname.dll\" /implib:\"$subdir/$libname.lib\" /LIBPATH:\$(STLPORT_PATH)\\lib \$(XLFLAGS) $all_obj" >> $tout
129 # now the test program:
130 echo ./$subdir/$libname.exe : main.cpp ./$subdir/$libname.lib >> $tout
131 echo " cl \$(INCLUDES) $opts /DBOOST_LIB_DIAGNOSTIC=1 \$(CXXFLAGS) -o ./$subdir/$libname.exe main.cpp /link /LIBPATH:./$subdir" >> $tout
132 echo " $subdir"'\'"$libname.exe" >> $tout
149 libname
="liblink_test-${subdir}-s-${boost_version}"
150 opts
='/nologo /ML /W3 /GX /O2 /GB /GF /Gy /I..\..\..\..\ /DWIN32 /DNDEBUG /D_MBCS /D_LIB /FD'
153 libname
="liblink_test-${subdir}-mt-s-${boost_version}"
154 opts
='/nologo /MT /W3 /GX /O2 /GB /GF /Gy /I..\..\..\..\ /D_MT /DWIN32 /DNDEBUG /D_MBCS /D_LIB /FD '
158 libname
="liblink_test-${subdir}-sgd-${boost_version}"
159 opts
='/nologo /MLd /W3 /Gm /GX /Zi /Od /I..\..\..\..\ /DWIN32 /D_DEBUG /D_MBCS /D_LIB /FD '"$debug_extra"' '
162 libname
="liblink_test-${subdir}-mt-sgd-${boost_version}"
163 opts
='/nologo /MTd /W3 /Gm /GX /Zi /Od /I..\..\..\..\ /DWIN32 /D_MT /D_DEBUG /D_MBCS /D_LIB /FD '"$debug_extra"' '
166 libname
="link_test-${subdir}-mt-gd-${boost_version}"
167 opts
='/nologo /MDd /W3 /Gm /GX /Zi /Od /I..\..\..\..\ /D_DEBUG /DBOOST_DYN_LINK /DWIN32 /D_WINDOWS /D_MBCS /DUSRDLL /FD '"$debug_extra"' '
171 opts
='/nologo /MD /W3 /GX /O2 /GB /GF /Gy /I..\..\..\..\ /DBOOST_DYN_LINK /DNDEBUG /DWIN32 /D_WINDOWS /D_MBCS /D_USRDLL /FD '
172 libname
="link_test-${subdir}-mt-${boost_version}"
176 opts
='/nologo /MD /W3 /GX /O2 /GB /GF /Gy /I..\..\..\..\ /DBOOST_REGEX_STATIC_LINK /DNDEBUG /DWIN32 /D_WINDOWS /D_MBCS /D_USRDLL /FD '
177 libname
="liblink_test-${subdir}-mt-${boost_version}"
181 libname
="liblink_test-${subdir}-mt-gd-${boost_version}"
182 opts
='/nologo /MDd /W3 /Gm /GX /Zi /Od /I..\..\..\..\ /DBOOST_REGEX_STATIC_LINK /D_DEBUG /DWIN32 /D_WINDOWS /D_MBCS /DUSRDLL /FD '"$debug_extra"' '
186 # copyright John Maddock 2005
187 # Use, modification and distribution are subject to the
188 # Boost Software License, Version 1.0. (See accompanying file
189 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
191 # auto generated makefile for VC6 compiler
195 # brings libraries up to date
197 # brings libraries up to date and copies binaries to your VC6 /lib and /bin directories (recomended)
201 # Add additional compiler options here:
205 # Add additional include directories here:
209 # add additional linker flags here:
213 # add additional static-library creation flags here:
217 !IF "\$(OS)" == "Windows_NT"
223 !IF "\$(MSVCDIR)" == ""
224 !ERROR Variable MSVCDIR not set.
229 echo "ALL_HEADER=$header" >> $out
231 echo "all : $all_dep" >> $out
233 echo "clean : $all_clean" >> $out
235 echo "install : all" >> $out
238 echo main_dir
: >> $out
239 echo " @if not exist \"$subdir\\\$(NULL)\" mkdir $subdir" >> $out
245 function vc6_stlp_gen
()
256 libname
="liblink_test-${subdir}-mt-s-${boost_version}"
257 opts
='/nologo /MT /W3 /GX /O2 /GB /GF /Gy /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /D_MT /DWIN32 /DNDEBUG /D_MBCS /D_LIB '
261 libname
="liblink_test-${subdir}-mt-sgd-${boost_version}"
262 opts
='/nologo /MTd /W3 /Gm /GX /Zi /Od /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /DWIN32 /D_MT /D_DEBUG /D_MBCS /D_LIB '"$debug_extra"' '
265 libname
="link_test-${subdir}-mt-gd-${boost_version}"
266 opts
='/nologo /MDd /W3 /Gm /GX /Zi /Od /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /DBOOST_DYN_LINK /D_DEBUG /DWIN32 /D_WINDOWS /D_MBCS /DUSRDLL '"$debug_extra"' '
270 opts
='/nologo /MD /W3 /GX /O2 /GB /GF /I$(STLPORT_PATH)\stlport /Gy /I..\..\..\..\ /DBOOST_DYN_LINK /DNDEBUG /DWIN32 /D_WINDOWS /D_MBCS /D_USRDLL '
271 libname
="link_test-${subdir}-mt-${boost_version}"
275 opts
='/nologo /MD /W3 /GX /O2 /GB /GF /Gy /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /DBOOST_REGEX_STATIC_LINK /DNDEBUG /DWIN32 /D_WINDOWS /D_MBCS /D_USRDLL '
276 libname
="liblink_test-${subdir}-mt-${boost_version}"
280 libname
="liblink_test-${subdir}-mt-gd-${boost_version}"
281 opts
='/nologo /MDd /W3 /Gm /GX /Zi /Od /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /DBOOST_REGEX_STATIC_LINK /D_DEBUG /DWIN32 /D_WINDOWS /D_MBCS /DUSRDLL '"$debug_extra"' '
284 # debug STLPort mode:
285 # not yet supported by bjam?
287 opts
='/nologo /MDd /W3 /Gm /GX /Zi /Od /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /DBOOST_DYN_LINK /D__STL_DEBUG /D_STLP_DEBUG /D_DEBUG /DWIN32 /D_WINDOWS /D_MBCS /DUSRDLL '"$debug_extra"' '
288 libname
="link_test-${subdir}-mt-pgd-${boost_version}"
290 libname
="liblink_test-${subdir}-mt-spgd-${boost_version}"
291 opts
='/nologo /MTd /W3 /Gm /GX /Zi /Od /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /D__STL_DEBUG /D_STLP_DEBUG /DWIN32 /D_MT /D_DEBUG /D_MBCS /D_LIB '"$debug_extra"' '
293 opts
='/nologo /MDd /W3 /Gm /GX /Zi /Od /I$(STLPORT_PATH)\stlport /I..\..\..\..\ /DBOOST_REGEX_STATIC_LINK /D__STL_DEBUG /D_STLP_DEBUG /D_DEBUG /DWIN32 /D_WINDOWS /D_MBCS /DUSRDLL '"$debug_extra"' '
294 libname
="liblink_test-${subdir}-mt-pgd-${boost_version}"
298 # copyright John Maddock 2005
299 # Use, modification and distribution are subject to the
300 # Boost Software License, Version 1.0. (See accompanying file
301 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
303 # auto generated makefile for VC6+STLPort
307 # brings libraries up to date
309 # brings libraries up to date and copies binaries to your VC6 /lib and /bin directories (recomended)
313 # Add additional compiler options here:
317 # Add additional include directories here:
321 # add additional linker flags here:
325 # add additional static-library creation flags here:
329 !IF "\$(OS)" == "Windows_NT"
335 !IF "\$(MSVCDIR)" == ""
336 !ERROR Variable MSVCDIR not set.
339 !IF "\$(STLPORT_PATH)" == ""
340 !ERROR Variable STLPORT_PATH not set.
345 echo "ALL_HEADER=$header" >> $out
347 echo "all : $all_dep" >> $out
349 echo "clean : $all_clean" >> $out
351 echo "install : stlport_check all" >> $out
354 echo main_dir
: >> $out
355 echo " @if not exist \"$subdir\\\$(NULL)\" mkdir $subdir" >> $out
357 echo 'stlport_check : $(STLPORT_PATH)\stlport\string' >> $out
368 # generate vc6 makefile:
374 # generate vc6-stlport makefile:
376 out
="vc6-stlport.mak"
381 # generate vc7 makefile:
382 debug_extra
="/GX /RTC1"
389 # generate vc7-stlport makefile:
391 out
="vc7-stlport.mak"
396 # generate vc71 makefile:
403 # generate vc71-stlport makefile:
405 out
="vc71-stlport.mak"
407 subdir
="vc71-stlport"