cosmetic fix in -configure-pkg-config-var-
[k8jam.git] / defaults / link / Jambase.link.cpp
blobbb420b714b1cc489cc6e89dc6404212805ed3cdc
1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, either version 3 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 # /C++Link image : objects ;
16 # Links _image_ from _objects_ and sets permissions on _image_ to
17 # $(EXEMODE). _image_ must be an actual filename; suffix is not
18 # supplied.
20 # Called by @Main, shouldn't be called by most people
22 rule C++Link {
23 local ktmp ;
25 ktmp = $(C++LINKFLAGS) ;
26 if ! $(ktmp) { ktmp = $(LINKFLAGS) ; }
27 C++LINKFLAGS on $(<) += $(ktmp) ;
29 ktmp = $(C++LINKLIBS) ;
30 if ! $(ktmp) { ktmp = $(LINKLIBS) ; }
31 C++LINKLIBS on $(<) += $(ktmp) ;
33 MODE on $(<) = $(EXEMODE) ;
34 Chmod $(<) ;
38 # /C++LinkFlagsOn mains : flags ;
40 # this rule is used to add compiler flags to the compilation of
41 # specific C++ source files
43 rule C++LinkFlagsOn {
44 if ! $(C++LINKFLAGS) { C++LINKFLAGS on [ FGristFiles $(<) ] += $(LINKFLAGS) ; }
45 C++LINKFLAGS on [ FGristFiles $(<) ] += $(>) ;
49 actions C++Link bind NEEDLIBS {
50 $(C++LINK) $(LINKFLAGS.all) $(C++LINKFLAGS) -o $(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS.all) $(C++LINKLIBS)
54 ### actions updated together piecemeal C++LinkUnixLibrary bind NEEDLIBS {
55 ### $(C++LINK) $(C++LINKFLAGS) -o $(<) $(UNDEFS) $(>) $(NEEDLIBS) $(C++LINKLIBS)
56 ### }