2 MODDIR = $(TOP)/modules ;
10 C++FLAGS = $(CCFLAGS) ;
11 LINKFLAGS = -Wl,--export-dynamic $(LDFLAGS) ;
13 LIBSDIR = "/usr/local/lib/tairon" ;
16 C++FLAGS += -Wall -pipe -fPIC ;
20 C++FLAGS += -Wall -pipe -g -fPIC ;
25 DEFINES = _REENTRANT LOGLEVEL=$(LOGLEVEL) TIXML_USE_STL ;
26 SHAREDFLAG = -shared ;
30 BuildLibraryObjects $(<) : $(>:S=$(SUFOBJ)) ;
34 rule BuildLibraryObjects
37 s = [ FGristFiles $(>) ] ;
38 l = $(<:S=$(SUFLIB)) ;
43 MakeLocate $(l) $(l)$($(s:BS)) : $(LOCATE_TARGET) ;
64 C++FLAGS on $(<) += $(C++FLAGS) $(OPTIM) ;
66 # Include only specified headers.
67 CCHDRS on $(<) += [ on $(<) FIncludes $(HEADERS) ] ;
68 CCDEFS on $(<) += [ on $(<) FDefines $(DEFINES) ] ;
73 # This ensures that flags used to link this target also uses the ones from
75 LINKFLAGS on $(<) += $(LINKFLAGS) ;
76 LINKFLAGS on $(<) += [ on $(<) FLibrariesDir $(LIBSDIR) ] ;
77 LINKFLAGS on $(<) += [ on $(<) FLibraries $(SHAREDLIBS) ] ;
78 MainFromObjects $(<) : $(>:S=$(SUFOBJ)) ;
86 SEARCH on $(>) = $(SEARCH_SOURCE) ;
87 MakeLocate $(<) : $(LOCATE_TARGET) ;
93 LINKFLAGS on $(<) += $(SHAREDFLAG) ;
112 # vim: syntax=jam ai sw=4 ts=4 noet fdm=marker