httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: Makefile suggestions?
Date Fri, 08 Oct 1999 02:23:59 GMT
On Thu, 7 Oct 1999 17:57:09 -0500, Manoj Kasichainula wrote:

>On Thu, Oct 07, 1999 at 11:31:42PM +0100, David Reid wrote:
>> What I want to do is to setup the Makefiles in the beos directories to act
>> as follows...
>> 
>> a)  look for the source file in the beos directory,
>> b)  if it's not there compile the one from the unix directory.
>> 
>> Makefiles aren't a particular area of expertise for me
>
>Me either, but how about this? (I'm fudging some make variables because
>I'm lazy)
>
>getopt.c: $(basedir)/misc/unix/getopt.c
>    ln -s $(basedir)/misc/unix/getopt.c # or copy it.
>
>Insert one of those for every file that is taken from the unix tree.
>You'd need to insert a cleaning step for these links as well.

I've got another idea. How about having a getopt.c that simply contains
#include "../unix/getopt.c"

That way you don't have to mess with makefiles at all.

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message