[SLUG] automake

2005-03-06 Thread Ian Su
Hi, I would like to get automake to install some .h files in $(top_srcdir)/include prior to compiling the objects for my project. However, there doesn't appear to be any way to do this elegantly. If I add the rules to all-local, it gets executed after everything is compiled, does anyone know

Re: [SLUG] automake

2005-03-06 Thread Ian Wienand
On Mon, Mar 07, 2005 at 10:50:38AM +1100, Ian Su wrote: I would like to get automake to install some .h files in $(top_srcdir)/include prior to compiling the objects for my project. However, there doesn't appear to be any way to do this elegantly. If I add the rules to all-local, it gets

Re: [SLUG] Automake books?

2005-02-16 Thread Simon Wong
On Wed, 2005-02-16 at 17:34 +1100, [EMAIL PROTECTED] wrote: I'd like to finally sit down and learn GNU Automake properly. ... My only concern about this book is that it seems to have not been updated since 2001 or so. Is this a problem or is it still accurate for current versions of the

Re: [SLUG] Automake books?

2005-02-16 Thread amos
Thanks very for both replies. I tend to like reading from dead trees as my eyes get out of focus after a while of reading so much text from the display, and I'd prefer to try to pay back the authors by buying a proper copy (and get my dead trees bound in a way which is easier to handle and carry

[SLUG] Automake books?

2005-02-15 Thread amos
Hello, I'd like to finally sit down and learn GNU Automake properly. The only book I found about this is the online book at http://sources.redhat.com/autobook/ (available also in hardcopy). My only concern about this book is that it seems to have not been updated since 2001 or so. Is this a

Re: [SLUG] Automake books?

2005-02-15 Thread Erik de Castro Lopo
On Wed, 16 Feb 2005 17:34:30 +1100 [EMAIL PROTECTED] wrote: Hello, I'd like to finally sit down and learn GNU Automake properly. The only book I found about this is the online book at http://sources.redhat.com/autobook/ (available also in hardcopy). My only concern about this book is

[SLUG] automake and subdirectories

2005-01-16 Thread Ian Su
I have an automake question. Any help is appreciated. Suppose I have a C source tree like this: src/game.c src/utils/util.c src/gfx/gfx.c and I need to compile game, which simply contains all the .c files as objects. I could simply put bin_PROGRAMS = game game_SOURCES = game.c

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Erik de Castro Lopo
On Mon, 17 Jan 2005 12:23:58 +1100 Ian Su [EMAIL PROTECTED] wrote: I have an automake question. Any help is appreciated. Suppose I have a C source tree like this: src/game.c src/utils/util.c src/gfx/gfx.c and I need to compile game, which simply contains all the .c files as

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Ian Su
This one time (2005-01-17 12:50pm), at band camp, Erik de Castro Lopo said: At the top of your Makefile.am put: SUBDIRS = utils gfx and then add a Makefile.am in each of those directories. I know about SUBDIRS, but what goes into the Makefile.am in the subdirectories? They don't have a

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Conrad Parker
On Mon, Jan 17, 2005 at 12:23:58PM +1100, Ian Su wrote: I have an automake question. Any help is appreciated. Suppose I have a C source tree like this: src/game.c src/utils/util.c src/gfx/gfx.c and I need to compile game, which simply contains all the .c files as objects. I

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Ian Su
Thanks Conrad. Actually what I'm really trying to do is build a single shared library (using libtool) from multiple subdirectories via automake. I didn't want to make my example too complex so I didn't mention that. In the libtool manual, section 3.7* it seems to suggest that the static library

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Erik de Castro Lopo
On Mon, 17 Jan 2005 13:01:24 +1100 Ian Su [EMAIL PROTECTED] wrote: This one time (2005-01-17 12:50pm), at band camp, Erik de Castro Lopo said: At the top of your Makefile.am put: SUBDIRS = utils gfx and then add a Makefile.am in each of those directories. I know about SUBDIRS,

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Erik de Castro Lopo
On Mon, 17 Jan 2005 13:26:22 +1100 Ian Su [EMAIL PROTECTED] wrote: Thanks Conrad. Actually what I'm really trying to do is build a single shared library (using libtool) from multiple subdirectories via automake. I didn't want to make my example too complex so I didn't mention that. OK,

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Jamie Wilkinson
This one time, at band camp, Erik de Castro Lopo wrote: On Mon, 17 Jan 2005 13:01:24 +1100 Ian Su [EMAIL PROTECTED] wrote: This one time (2005-01-17 12:50pm), at band camp, Erik de Castro Lopo said: At the top of your Makefile.am put: SUBDIRS = utils gfx and then add a

Re: [SLUG] automake and subdirectories

2005-01-16 Thread Erik de Castro Lopo
On Mon, 17 Jan 2005 13:34:47 +1100 Jamie Wilkinson [EMAIL PROTECTED] wrote: which is hardly intuitive, but it's because automake doesn't treat object files as things that can be referred to in different recursion scopes, onl programs and libraries are allowed to be used outside of the current