]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/regex/build/sun_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:
28 #######################################################################
30 # section for Sun Forte 6.1 (5.1 compiler)
32 #######################################################################
34 function sun_gen_lib
()
36 all_dep
="$all_dep $subdir/$libname $subdir/$libname.a"
39 # set up section comments:
41 ########################################################
43 # section for $libname.a
45 ########################################################
48 # process source files:
53 obj
=`echo "$file" | sed 's/.*src\/\(.*\)cpp/\1o/g'`
54 obj
="$subdir/$libname/$obj"
55 all_obj
="$all_obj $obj"
56 all_lib_obj
="$all_lib_obj $obj"
57 echo "$obj: $file \$(ALL_HEADER)" >> $tout
58 echo " CC -c \$(INCLUDES) $opts \$(CXXFLAGS) -o $obj $file" >> $tout
62 # now for the directories for this library:
63 echo "$subdir/$libname : " >> $tout
64 echo " mkdir -p $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 " rm -f $subdir/$libname/"'*.o' >> $tout
71 echo " rm -fr $subdir/$libname/\$(SUNWS_CACHE_NAME)" >> $tout
74 # now for the main target for this library:
75 echo $subdir/$libname.a
: $all_obj >> $tout
76 echo " CC -xar \$(CXXFLAGS) \$(LDFLAGS) -o $subdir/$libname.a $all_lib_obj" >> $tout
80 function sun_gen_dll
()
82 all_dep
="$all_dep $subdir/shared_$libname $subdir/$libname.so"
84 # set up section comments:
86 ########################################################
88 # section for $libname.so
90 ########################################################
93 # process source files:
97 obj
=`echo "$file" | sed 's/.*src\/\(.*\)cpp/\1o/g'`
98 obj
="$subdir/shared_$libname/$obj"
99 all_obj
="$all_obj $obj"
100 echo "$obj: $file \$(ALL_HEADER)" >> $tout
101 echo " CC -c \$(INCLUDES) $opts \$(CXXFLAGS) -o $obj $file" >> $tout
105 # now for the directories for this library:
106 echo "$subdir/shared_$libname :" >> $tout
107 echo " mkdir -p $subdir/shared_$libname" >> $tout
110 # now for the clean options for this library:
111 all_clean
="$all_clean $libname""_clean_shared"
112 echo "$libname"_clean_shared
: >> $tout
113 echo " rm -f $subdir/shared_$libname/"'*.o' >> $tout
114 echo " rm -fr $subdir/shared_$libname/\$(SUNWS_CACHE_NAME)" >> $tout
117 # now for the main target for this library:
118 echo $subdir/$libname.so
: $all_obj >> $tout
119 echo " CC $opts -G -o $subdir/$libname.so \$(LDFLAGS) $all_obj \$(LIBS)" >> $tout
135 libname
="libboost_regex\$(LIBSUFFIX)"
136 opts
="-O2 -I../../../"
139 libname
="libboost_regex_mt\$(LIBSUFFIX)"
140 opts
="-O2 -mt -I../../../"
143 libname
="libboost_regex\$(LIBSUFFIX)"
144 opts
="-KPIC -O2 -I../../../"
147 libname
="libboost_regex_mt\$(LIBSUFFIX)"
148 opts
="-KPIC -O2 -mt -I../../../"
153 # copyright John Maddock 2006
154 # Distributed under the Boost Software License, Version 1.0.
155 # (See accompanying file LICENSE_1_0.txt or copy at
156 # http://www.boost.org/LICENSE_1_0.txt.
158 # auto generated makefile for Sun Forte 6.1
162 # brings libraries up to date
164 # removes all temporary files.
167 # Add additional compiler options here:
171 # Add additional include directories here:
175 # add additional linker flags here:
179 # add additional libraries to link to here:
187 # template cache path:
189 SUNWS_CACHE_NAME=SunWS_cache
194 echo "ALL_HEADER=$header" >> $out
196 echo "all : $all_dep" >> $out
198 echo "clean : $all_clean" >> $out
200 echo "install : all" >> $out
203 echo $subdir : >> $out
204 echo " mkdir -p $subdir" >> $out
213 # generate Sun 6.1 makefile: