[openbeos] Re: using jam -- where's Jambase?
- From: "Ingo Weinhold" <bonefish@xxxxxxxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Mon, 26 Aug 2002 01:20:29 CEST (+0200)
> I'm compiling some small programs on BeOS using jam.
> For my Jamfile, I copied and modified this:
>
> # Copied from an OBOS newsletter article by Ryan Leavengood.
> APP_NAME = myApp ;
> SOURCES = main.cpp MyApp.cpp MyWindow.cpp MyView.cpp ;
> Main $(APP_NAME) : $(SOURCES) ;
> LINKLIBS on $(APP_NAME) = -lbe -lstdc++.r4 ;
>
> It seems to work fine... There's 2 things I'd like to know:
>
> If "Main" and "LINKLIBS" are jam rules, then, aren't they supposed
Main is rule, LINKLIBS is just a variable, but anyway...
> to be in a Jambase file somewhere? There's no Jambase around
> though. Is it compiled into my jam 2.4 executable?
Exactly.
> Also, can I somehow add MyApp.rsrc to the above Jamfile?
If you are trying this in context of the OBOS build system, simply put
an
AddResources $(APP_NAME) : MyApp.rsrc ;
*before* your Main rule. Otherwise have a look at current/Jamrules.
AddResources is defined there as well as an adjusted Link rule invoking
several BeOS specific rules (XRes, SetVersion, SetType, MimeSet).
CU, Ingo
Other related posts: