Here's one..
I've got another more complete example with installable libraries and
headers if needed, but it's somewhat longer. This is a trimmed down file
from a current project.

Rob

## 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

noinst_LTLIBRARIES = src/bar.la 

INCLUDES = -I $(top_srcdir)/include

noinst_HEADERS = include/bar.h 

foo_SOURCES = src/foo.cc 
foo_LDADD = src/bar.la 

src_bar_la_SOURCES = src/bar.cc
src_bar_la_LDFLAGS = -module


Reply via email to