automake
[Top][All Lists]
Advanced

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

RE: Seeking simple example for "shallow" tree


From: Robert Collins
Subject: RE: Seeking simple example for "shallow" tree
Date: Sat, 13 Apr 2002 14:32:21 +1000

> -----Original Message-----
> From: Bruce Korb [mailto:address@hidden 
> Sent: Saturday, April 13, 2002 10:03 AM
> To: Ian Pilcher
> Cc: address@hidden
> Subject: Re: Seeking simple example for "shallow" tree
> 
> 
> Ian Pilcher wrote:
> > 
> > I am trying to set up a simple project for 
> automake/autoconf.  I have 
> > a single source file, main.c, in the top-level directory; all the 
> > other source files are in subdirectories.
> > 
> > Can anyone point me to a simple example/template for my 
> > Makefile.am(s)?
> 
> Here are a couple of approaches:
> 
> 1.  Use an IDE (like KDevelop) that builds skeletal infrastructure
>     for you automatically
> 
> 2.  Use a prototype project generator  (like autoproj).

3. Use something like the following:

====
## Process this file with automake to produce Makefile.in
#
# $Id: Makefile.am,v 1.3 2002/01/13 14:16:17 robertc Exp $
#

AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects VERSION=1.5

DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*

bin_PROGRAMS = foo
foo_SOURCES = main.c subdir1/1.c subdir2/2.cc subdir3/3.cc

====

Rob



reply via email to

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