automake
[Top][All Lists]
Advanced

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

Re: Status of non-recursive automake


From: John Darrington
Subject: Re: Status of non-recursive automake
Date: Wed, 3 Dec 2003 11:52:07 +0800
User-agent: Mutt/1.3.28i


On Tue, Dec 02, 2003 at 07:43:01PM -0600, Bob Friesenhahn wrote:
     Based on my recent experience, non-recursive builds are working very
     well in the current automake release.  Use 'subdir-objects' in
     AUTOMAKE_OPTIONS if you want the objects to be placed at the same
     relative location as the source files.  An issue with the 'clean'
     target has been reported for the case where the makefile is also
     recursive (SUBDIRS is used).  Objects get unnecessary funny naming in
     the case where TARGET_CPPFLAGS is used but this doesn't seem to break
     anything.
     
     Since the '/' in target definitions are not "make" syntax compatible,
     all the '/'s in target definitions need to be manually smashed to '_'.
     This is very tedious and error prone, and is something that Automake
     should fix.
     

Is there anything else that's required?

I made a simple Makefile.am :


AUTOMAKE_OPTIONS=subdir-objects

bin_PROGRAMS=atl
atl_SOURCES=src1_foo.c src2_bar.c

But the resulting Makefile produces: 

make: *** No rule to make target `src1_foo.c', needed by `src1_foo.o'.  Stop

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.


Attachment: pgpp2skAKHrqs.pgp
Description: PGP signature


reply via email to

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