Add TIXML_USE_STL macro define to the whole project.
[tairon.git] / src / Jamrules
blob650d8e8bc035297773df4ea9d5098ff47ef0ecef
1 LIBDIR = $(LIBDIR)/tairon ;
3 AR = "ar cr" ;
4 C++ = g++ ;
5 CC = $(C++) ;
6 LINK = g++ ;
8 C++FLAGS = -Wall -pipe -g -fPIC ;
9 DEFINES = TIXML_USE_STL ;
10 HDRS = ;
11 OPTIM = ;
12 SHAREDFLAG = -shared ;
15 rule BuildLibrary
17         BuildLibraryObjects $(<) : $(>:S=$(SUFOBJ)) ;
18         Objects $(>) ;
21 rule BuildLibraryObjects
23         local s ;
24         s = [ FGristFiles $(>) ] ;
25         l = $(<:S=$(SUFLIB)) ;
27         Depends $(l) : $(s) ;
29         if ! $(l:D) {
30                 MakeLocate $(l) $(l)$($(s:BS)) : $(LOCATE_TARGET) ;
31         }
33         Clean clean : $(l) ;
35         Archive $(l) : $(s) ;
37         if $(RANLIB) {
38                 Ranlib $(l) ;
39         }
42 rule C++
44         Depends $(<) : $(>) ;
46         if $(RELOCATE)
47         {
48                 CcMv $(<) : $(>) ;
49         }
51         C++FLAGS on $(<) += $(C++FLAGS) $(SUBDIRC++FLAGS) $(OPTIM) ;
53         # commented out because we don't want to add -I. to the parameters of the
54         # compiler
55         # CCHDRS on $(<) += [ on $(<) FIncludes $(HDRS) ] ;
56         CCDEFS on $(<) += [ on $(<) FDefines $(DEFINES) ] ;
59 rule Shared
61         LINKFLAGS += $(SHAREDFLAG) ;
62         Main $(<) : $(>) ;
65 # vim: syntax=jam ai sw=4 ts=4 noet fdm=marker