cosmetix in Jambase layout
[k8jam.git] / defaults / link / cpp / Jambase.link.cpp
blob44273fdf2118af1de84de024a114c25355405214
1 # /C++Link image : objects ;
3 # Links _image_ from _objects_ and sets permissions on _image_ to
4 # $(EXEMODE). _image_ must be an actual filename; suffix is not
5 # supplied.
7 # Called by @Main, shouldn't be called by most people
9 rule C++Link {
10 MODE on $(<) = $(EXEMODE) ;
11 Chmod $(<) ;
15 # /C++LinkFlagsOn mains : flags ;
17 # this rule is used to add compiler flags to the compilation of
18 # specific C++ source files
20 rule C++LinkFlagsOn {
21 C++LINKFLAGS on [ FGristFiles $(<) ] += $(>) ;
25 actions C++Link bind NEEDLIBS {
26 $(C++LINK) $(LINKFLAGS.all) $(C++LINKFLAGS) -o $(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS.all) $(C++LINKLIBS)