1 #============================================================================
2 # Jam configuration and actions for MacOS/X
3 # Copyright (C) 2003 by Eric Sunshine <sunshine@sunshineco.com>
4 # Copyright (C) 2006 by Ondrej Hosek <ondra.hosek@gmail.com>
5 #============================================================================
9 # Experience seems to indicate that library scanning misbehaves on MacOS/X with
10 # Jam 2.4, consequently we disable it.
11 MACLIBTOOL = "libtool" ;
16 $(MACLIBTOOL) -static -o $(<) $(>)
19 #------------------------------------------------------------------------------
21 #------------------------------------------------------------------------------
23 # ConstructApplicationTarget target : options
24 # Constructs the application target name (ie. foo.app for foo)
25 rule ConstructApplicationTarget
30 # ConstructLibraryTarget target : options
31 rule ConstructLibraryTarget
36 # SystemLinkApplication target : objects : options
37 rule SystemLinkApplication
39 local target = $($(<)_TARGET) ;
40 Depends $(target) : $(>) ;
44 WHOLE_ARCH_BEGIN on $(target) = -Wl,--whole-archive ;
45 WHOLE_ARCH_END on $(target) = -Wl,--no-whole-archive ;
48 LinkApplication $(target) : $(>) ;
49 LIBS on $(target) = $(LIBS) ;
50 Clean clean : $(target) ;
51 Clean $(<)clean : $(target) ;
54 # LinkApplicationConsole exe : objects
55 # Link a console (non-GUI) appliation from a set of object files.
56 actions LinkApplication bind NEEDLIBS bind NEEDLIBS_WHOLE bind EXTRAOBJECTS
59 $(LINK) -o $(<) $(>) $(EXTRAOBJECTS) $(NEEDLIBS) $(WHOLE_ARCH_BEGIN) \
60 $(NEEDLIBS_WHOLE) $(WHOLE_ARCH_END) $(LIBS)