File: Makefile.am

package info (click to toggle)
opt 3.19-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,064 kB
  • sloc: ansic: 3,899; perl: 863; sh: 554; cpp: 524; tcl: 325; makefile: 50
file content (48 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download | duplicates (6)
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
45
46
47
48
# $Id: Makefile.am,v 3.17 2002/09/10 00:00:08 simes Exp $

AUTOMAKE_OPTIONS = no-dependencies

CLEANFILES= birthday.opt birthday.opt~

TESTS = t_num checkopt checkoptcc
noinst_PROGRAMS = t_num testopt birthday hooktest iloop testmain testtypes tstring tnull manyopts tarray testcc testlong
EXTRA_DIST= checkopt checkoptcc

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

../src/opt.c:
	cd ../src; $(MAKE) opt.c

##

testcc_SOURCES= testcc.cc

#testcc_LDADD= optcc.o
#optcc.o: ../src/opt.c
#	$(CXXCOMPILE) -c -o optcc.o ../src/opt.c