better separate 'main' targets
[k8jam.git] / defaults / link / Jambase.link.c
blob21b3e833be917dfa58f342e66d7079986dcac11a
1 # /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 Link {
10 MODE on $(<) = $(EXEMODE) ;
11 Chmod $(<) ;
15 # /LinkFlagsOn mains : flags ;
17 # this rule is used to add compiler flags to the compilation of
18 # specific C sources files.
20 rule LinkFlagsOn {
21 LINKFLAGS on [ FGristFiles $(<) ] += $(>) ;
25 actions Link bind NEEDLIBS {
26 $(LINK) $(LINKFLAGS.all) $(LINKFLAGS) -o $(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS.all) $(LINKLIBS)