cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Examples anyone?


From: CARRY,GILLES (Non-HP-France,ex1)
Subject: RE: Examples anyone?
Date: Thu, 13 Sep 2001 14:27:15 +0200

> -----Original Message-----
> From: Dennis Ward [mailto:address@hidden
> Sent: jeudi 16 août 2001 12:50
> To: address@hidden
> Cc: address@hidden
> Subject: Examples anyone?
> 
> 
> Help anyone?
> 
> I'm trying to evaluate alternatives to my companies current 
> build system
> which has multiple UNIX platforms, and multiple targets.  On 
> first glance,
> it looks like cons is the way to go, but I have had trouble building a
> simple library and redirecting the object files to a 
> particular directory.
> Our library structure is set up as follows:
> 
>     backbone/src              <= directory where source exists
>     backbone/IRIX     <= directory where SGI object files go (created
> on-demand)
>     ../Lib/IRIX               <= directory where SGI libs go 
> (created on-demand).

If your source files are foo1.c and foo2.c,
I would do something like this in the top level Construct file:

$env=new cons();
Link 'backbone/IRIX' => 'backbone/src';
@obj=Objects $env 'backbone/src/foo1.c', 'backbone/src/foo2.c';
Library $env myLib.a, @obj;
Install $env Lib/IRIX, myLib.a; 

Cheers.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]