]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/regex/build/generic_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:
29 #######################################################################
31 # section for generic compiler
33 #######################################################################
36 function gen_gen_lib
()
38 all_dep
="$all_dep $subdir $subdir/$libname ./$subdir/lib$libname.so"
40 # set up section comments:
42 ########################################################
44 # section for lib$libname.so
46 ########################################################
49 # 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 echo "$obj: $file \$(ALL_HEADER)" >> $tout
57 echo " \$(CXX) \$(INCLUDES) -o $obj $opts \$(CXXFLAGS) $file" >> $tout
61 # now for the directories for this library:
62 echo "$subdir/$libname : " >> $tout
63 echo " mkdir -p $subdir/$libname" >> $tout
66 # now for the clean options for this library:
67 all_clean
="$all_clean $libname""_clean"
68 echo "$libname"_clean
: >> $tout
69 echo " rm -f $subdir/$libname/*.o" >> $tout
72 # now for the main target for this library:
73 echo .
/$subdir/lib
$libname.so
: $all_obj >> $tout
74 echo " \$(LINKER) \$(LDFLAGS) -o $subdir/lib$libname.so $all_obj \$(LIBS)" >> $tout
95 # copyright John Maddock 2006
96 # Distributed under the Boost Software License, Version 1.0.
97 # (See accompanying file LICENSE_1_0.txt or copy at
98 # http://www.boost.org/LICENSE_1_0.txt.
100 # auto generated makefile for generic compiler
104 # brings libraries up to date
106 # deletes temporary object files (but not archives).
110 # the following environment variables are recognised:
111 # CXXFLAGS= extra compiler options - note applies to all build variants
112 # INCLUDES= additional include directories
113 # LDFLAGS= additional linker options
114 # LIBS= additional library files
115 # CXX= compiler to use
116 # LINKER= linker/archiver to use
117 # name of subdirectory to use for object/archive files:
121 # default compiler options for release build:
123 C1=-c -O2 -I../../../
128 echo "ALL_HEADER=$header" >> $out
130 echo "all : $subdir $all_dep" >> $out
132 echo "$subdir :" >> $out
133 echo " mkdir -p $subdir" >> $out
135 echo "clean : $all_clean" >> $out
137 echo "install : all" >> $out
146 # generate generic makefile: