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