bug-make
[Top][All Lists]
Advanced

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

Re: dynamic object searching (was: Re: Dynamic objects)


From: Paul Smith
Subject: Re: dynamic object searching (was: Re: Dynamic objects)
Date: Tue, 30 Apr 2013 14:24:20 -0400

On Tue, 2013-04-30 at 17:48 +0100, Tim Murphy wrote:
> i.e. I don't just have 
> load X.dll

> I have to supply the recipe to build it on windows:

> X.dll:
>   cl.exe  /Fdo$@  .... # use microsoft's compiler

> and on Linux
> 
> X.so:
>    gcc -o $@  ... # using gcc

Actually this supports Eli's point perfectly.  This is no problem.  You
can just put both of those rules into your makefile, and if make defines
an extension EXT for the current platform you can use "load X.$(EXT)"
and when you're on Windows it will build one way and when you're on
Linux it will build the other way.

However, I'm still undecided on how to handle this.  I'll look at it
again shortly.




reply via email to

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