2 MODDIR = $(TOP)/modules ;
10 LIBSDIR = "/usr/local/lib/tairon" ;
13 C++FLAGS += -Wall -pipe -fPIC ;
17 C++FLAGS += -Wall -pipe -g -fPIC ;
22 DEFINES = _REENTRANT LOGLEVEL=$(LOGLEVEL) TIXML_USE_STL ;
25 SHAREDFLAG = -shared ;
26 LINKFLAGS = -Wl,--export-dynamic ;
31 BuildLibraryObjects $(<) : $(>:S=$(SUFOBJ)) ;
35 rule BuildLibraryObjects
38 s = [ FGristFiles $(>) ] ;
39 l = $(<:S=$(SUFLIB)) ;
44 MakeLocate $(l) $(l)$($(s:BS)) : $(LOCATE_TARGET) ;
65 C++FLAGS on $(<) += $(C++FLAGS) $(SUBDIRC++FLAGS) $(OPTIM) ;
67 # Include only specified headers.
68 CCHDRS on $(<) += [ on $(<) FIncludes $(HEADERS) ] ;
69 CCDEFS on $(<) += [ on $(<) FDefines $(DEFINES) ] ;
74 # This ensures that flags used to link this target also uses the ones from
76 LINKFLAGS on $(<) += $(LINKFLAGS) ;
77 LINKFLAGS on $(<) += [ on $(<) FLibrariesDir $(LIBSDIR) ] ;
78 LINKFLAGS on $(<) += [ on $(<) FLibraries $(SHAREDLIBS) ] ;
79 MainFromObjects $(<) : $(>:S=$(SUFOBJ)) ;
87 SEARCH on $(>) = $(SEARCH_SOURCE) ;
88 MakeLocate $(<) : $(LOCATE_TARGET) ;
94 LINKFLAGS on $(<) += $(SHAREDFLAG) ;
113 # vim: syntax=jam ai sw=4 ts=4 noet fdm=marker