1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
# $Id: Makefile.am,v 3.5 1999/11/22 13:47:35 jt Exp $
AUTOMAKE_OPTIONS = no-dependencies
TESTS = checkopt
noinst_PROGRAMS = testopt birthday hooktest iloop testmain testtypes
EXTRA_DIST= checkopt
##I would have thought checkopt was a noinst_SCRIPT, but it doesn't
##even get included in the distribution if I do that
##noinst_SCRIPTS= checkopt
## Uncomment the appropriate line depending on whether you want to
## test libopt.a or opt.o (set this in configure script??)
##TESTLIB = ../src/opt.o
TESTLIB= ../src/libopt.a
LDADD = $(TESTLIB)
INCLUDES = -I$(top_srcdir)/src
DEPENDENCIES = $(TESTLIB)
## This remakes the library if it doesn't exist
RANLIB = @RANLIB@
../src/libopt.a:
cd ../src; $(MAKE) libopt.a; $(RANLIB) libopt.a
../src/opt.o:
cd ../src; $(MAKE) opt.o
##
testcc: testcc.o
$(CXX) -o $@ $@.o $(TESTLIB)
testcc.o: testcc.cc
$(CXX) -I../src -c testcc.cc
|