1 #============================================================================
2 # Jam configuration and actions for Linux/Unix
3 #============================================================================
6 #----------------------------------------------------------------------------
7 # platform specific rules
9 ## ConstructApplicationTarget target : options
10 ## Constructs the application atrget name (ie. foo.exe for foo)
11 rule ConstructApplicationTarget
15 rule ConstructLibraryTarget
17 if [ IsElem shared : $(2) ] {
23 rule ConstructPluginTarget
28 # SystemLinkApplication target : objects : options
29 # do system specific actions needed for linking the application and construct
30 # correct clean targets.
31 rule SystemLinkApplication
33 local target = $($(<)_TARGET) ;
35 Depends $(target) : $(>) ;
37 if [ IsElem linkerfile : $(3) ]
39 RemoveLinkerInputFile $(target) ;
41 for i in $(>) { AppendLinkerInputFile $(target) : $(i) ; }
42 LinkApplicationFromFile $(target) : $(target) ;
43 RemoveLinkerInputFile $(target) ;
47 LinkApplication $(target) : $(>) ;
50 LIBS on $(target) = $(LIBS) ;
52 Clean clean : $(target) ;
53 Clean $(<)clean : $(target) ;
56 actions LinkApplication bind NEEDLIBS bind EXTRAOBJECTS
58 $(LINK) -o $(<) $(>) $(EXTRAOBJECTS) $(NEEDLIBS) $(LIBS)
61 actions quietly RemoveLinkerInputFile
66 actions quietly together piecemeal AppendLinkerInputFile
71 actions LinkApplicationFromFile bind NEEDLIBS bind EXTRAOBJECTS
73 $(LINK) -o $(<) `cat $(>).opt` $(EXTRAOBJECTS) $(NEEDLIBS) $(LIBS)
74 # $(LINK) -o $(<) -Xlinker @$(>).opt $(EXTRAOBJECTS) $(NEEDLIBS) $(LIBS)