tomwalters@0
|
1 ###########################################################################
|
tomwalters@0
|
2 #
|
tomwalters@0
|
3 # Makefile for AIM model library: libmodel.a
|
tomwalters@0
|
4 #
|
tomwalters@0
|
5 # (For convenience, this makefile directly calls the root makefile).
|
tomwalters@0
|
6 #
|
tomwalters@0
|
7 # @(#)makefile 1.44 J. Holdsworth, (MRC-APU) 6/6/91
|
tomwalters@0
|
8 # M. Allerhand, (MRC-APU) 26/1/93
|
tomwalters@0
|
9 # C. Giguere, 21/3/94
|
tomwalters@0
|
10 #
|
tomwalters@0
|
11 ###########################################################################
|
tomwalters@0
|
12
|
tomwalters@0
|
13
|
tomwalters@0
|
14 default : install
|
tomwalters@0
|
15
|
tomwalters@0
|
16 GDIR = ../glib
|
tomwalters@0
|
17 SDIR = ../stitch
|
tomwalters@0
|
18 FDIR = ../filter
|
tomwalters@0
|
19 WDIR = ../wdf
|
tomwalters@0
|
20
|
tomwalters@0
|
21 MLIB = libmodel.a
|
tomwalters@0
|
22 GLIB = $(GDIR)/libglib.a
|
tomwalters@0
|
23 SLIB = $(SDIR)/libstitch.a
|
tomwalters@0
|
24 FLIB = $(FDIR)/libfilter.a
|
tomwalters@0
|
25 WLIB = $(WDIR)/libwdf.a
|
tomwalters@0
|
26
|
tomwalters@0
|
27 LIBS = $(MLIB) $(GLIB) $(SLIB) $(FLIB) $(WLIB)
|
tomwalters@0
|
28
|
tomwalters@0
|
29 INCLUDES = -I$(SDIR) -I$(GDIR) -I$(FDIR) -I$(WDIR)
|
tomwalters@0
|
30
|
tomwalters@0
|
31 .c.o :
|
tomwalters@0
|
32 $(CC) $(CFLAGS) $(INCLUDES) -c $<
|
tomwalters@0
|
33
|
tomwalters@0
|
34
|
tomwalters@0
|
35 ############################################################################
|
tomwalters@0
|
36 # Make model library.
|
tomwalters@0
|
37
|
tomwalters@0
|
38 OBJS = units.o defaults.o bank.o interp.o \
|
tomwalters@0
|
39 integrate.o corti.o new.o atan.o \
|
tomwalters@0
|
40 image.o spiral.o faster.o version.o model.o
|
tomwalters@0
|
41
|
tomwalters@0
|
42 lib $(MLIB) : $(OBJS)
|
tomwalters@0
|
43 ar rc $@ $? ; $(RANLIB) $@
|
tomwalters@0
|
44
|
tomwalters@0
|
45
|
tomwalters@0
|
46 ############################################################################
|
tomwalters@0
|
47 # dependencies
|
tomwalters@0
|
48
|
tomwalters@0
|
49 gen.o : model.h calc.h spiral.h
|
tomwalters@0
|
50 model.o: model.h calc.h corti.h units.h bank.h
|
tomwalters@0
|
51 bank.o : bank.h
|
tomwalters@0
|
52 new.o : calc.h
|
tomwalters@0
|
53 integrate.o : integrate.h calc.h
|
tomwalters@0
|
54 corti.o : corti.h calc.h corti.h
|
tomwalters@0
|
55 image.o : calc.h image.h
|
tomwalters@0
|
56 faster.o: calc.h
|
tomwalters@0
|
57 spiral.o: spiral.h
|
tomwalters@0
|
58 io.o: io.h
|
tomwalters@0
|
59 units.o: units.h
|
tomwalters@0
|
60 defaults.o: defaults.h model.h
|
tomwalters@0
|
61 model.o: model.h units.h defaults.h image.h spiral.h
|
tomwalters@0
|
62 model.o: $(WDIR)/bank_tl.h $(WDIR)/ear.h $(WDIR)/meddis.h \
|
tomwalters@0
|
63 $(WDIR)/formulae_tl.h $(WDIR)/upsample.h $(WDIR)/calc_tl.h
|
tomwalters@0
|
64
|
tomwalters@0
|
65 ############################################################################
|
tomwalters@0
|
66 # Make targets in root makefile.
|
tomwalters@0
|
67
|
tomwalters@0
|
68 TARGETS = main install all sources \
|
tomwalters@0
|
69 links alllinks demo tar \
|
tomwalters@0
|
70 ftp tape mail clean \
|
tomwalters@0
|
71 sccslinks cleansccs help noplot
|
tomwalters@0
|
72
|
tomwalters@0
|
73 $(TARGETS) : FORCE
|
tomwalters@0
|
74 @ cd .. ; make $@
|
tomwalters@0
|
75 FORCE:
|
tomwalters@0
|
76
|
tomwalters@0
|
77
|
tomwalters@0
|
78 ############################################################################
|