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/>.
15 # NOARUPDATE - can't update an archive
25 # *NIX specific actions
39 if $(JAM_TOOLSET) = MINGW {
40 actions together piecemeal Archive {
44 $(CC) -c -o $(<) $(CFLAGS.all) $(CCFLAGS) $(OPTIM.all) $(OPTIM) $(CCDEFS) $(CCHDRS) -I$(STDHDRS) $(>)
47 $(C++) -c -o $(<) $(CFLAGS.all) $(C++FLAGS) $(OPTIM.all) $(OPTIM) $(CCDEFS) $(CCHDRS) -I$(STDHDRS) $(>)
49 actions DllLink bind DEFFILENAME IMPLIBNAME {
50 $(LINK) $(LINKFLAGS.all) $(LINKFLAGS) -shared -o $(<) $(>) $(DEFFILENAME) -Wl,--out-implib,$(IMPLIBNAME) $(LINKLIBS.all) $(LINKLIBS)
52 } else if $(JAM_TOOLSET) = LCC {
53 actions together piecemeal Archive {
57 $(CC) $(CFLAGS.all) $(CCFLAGS) $(OPTIM.all) $(OPTIM) $(CCDEFS) $(CCHDRS) -Fo$(<) -I$(STDHDRS) $(>)
59 actions Link bind NEEDLIBS {
60 $(LINK) $(LINKFLAGS.all) $(LINKFLAGS) -o $(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS.all) $(LINKLIBS)
62 actions DllLink bind NEEDLIBS DEFFILENAME {
63 $(LINK) $(LINKFLAGS.all) $(LINKFLAGS) -DLL -o $(<) $(UNDEFS) $(>) $(DEFFILENAME) $(NEEDLIBS) $(LINKLIBS.all) $(LINKLIBS)
65 actions ignore DllLinkMv {
71 } else if $(JAM_TOOLSET) = PELLESC {
72 actions together piecemeal Archive {
76 $(CC) $(CFLAGS.all) $(CCFLAGS) $(OPTIM.all) $(OPTIM) $(CCDEFS) $(CCHDRS) /Fo $(<) -I$(STDHDRS) $(>)
78 actions Link bind NEEDLIBS {
79 $(LINK) $(LINKFLAGS.all) $(LINKFLAGS) /OUT:$(<) $(>) $(NEEDLIBS) $(LINKLIBS.all) $(LINKLIBS)
81 actions DllLink bind NEEDLIBS DEFFILENAME IMPLIBNAME {
82 $(LINK) $(LINKFLAGS.all) $(LINKFLAGS) /DLL /DEF:$(DEFFILENAME) /IMPLIB:$(IMPLIBNAME) /OUT:$(<) $(>) $(NEEDLIBS) $(LINKLIBS.all) $(LINKLIBS)