Debian Codegraph @

stdred/spec/src/makefile

raw
1 # @(#)makefile 19.1 (ESO-IPG) 02/25/03 14:29:41
2 # .COPYRIGHT: Copyright (c) 1988 European Southern Observatory,
3 # all rights reserved
4 # .TYPE make file
5 # .NAME $MIDASHOME/$MIDVERS/stdred/spec/src/makefile
6 # .LANGUAGE makefile syntax
7 # .ENVIRONMENT Unix Systems.
8 # .COMMENT Compiles source files and generates "spectr" commands
9 #
10 # .REMARKS
11 # .AUTHOR
12 # .VERSION 1.1 880831: Implementation
13 # .VERSION 1.2 890104: Generating makefile.com for VMS systems
14 # .VERSION 1.3 890508: KB
15 # .VERSION 2.1 901102: new directory structure CG.
16 # .VERSION 2.2 920521: Removing MLIB CG
17 # .VERSION 3.0 930308: Using default.mk file
18
19 include ../../../local/default.mk
20
21 M = ../../exec
22
23 CFLAGS += $(C_OPT) $(DEBUG) $(SYS) -I$(LINC) -I$(INC)
24
25 LLIB1 = -L$(LLIBDIR) -lspec -lmidmath -L$(LIBDIR) -lftab -lmidas
26
27 LIBS1 = $(LLIBDIR)/libspec.a \
28 $(LIBDIR)/libftab.a \
29 $(LIBDIR)/libmidas.a \
30
31 LLIB3 = -L$(LLIBDIR) -lspec -lmidmath -L$(LIBDIR) -lgmidas -laplot -lgen -lftab -lmidas
32
33 LIBS3 = $(LLIBDIR)/libspec.a \
34 $(LIBDIR)/libgen.a \
35 $(LIBDIR)/libgmidas.a \
36 $(LIBDIR)/libaplot.a \
37 $(LIBDIR)/libftab.a \
38 $(LIBDIR)/libmidas.a
39
40 LLIB2 = -L$(LIBDIR) -lsubplot -lftab -lgen -lsubmid -lgmidas -lmidas
41 LIBS2 = $(LIBDIR)/libsubplot.a \
42 $(LIBDIR)/libftab.a \
43 $(LIBDIR)/libgen.a \
44 $(LIBDIR)/libsubmid.a \
45 $(LIBDIR)/libgmidas.a \
46 $(LIBDIR)/libmidas.a
47
48 OUT = $(M)/specorrel.exe $(M)/caliline.exe $(M)/fripple.exe \
49 $(M)/overiden.exe $(M)/specenter.exe $(M)/integbin.exe \
50 $(M)/sperebin.exe $(M)/spesearch.exe $(M)/spematch.exe \
51 $(M)/sprebin.exe $(M)/sphough.exe $(M)/progress.exe \
52 $(M)/spmerge.exe $(M)/spcumhist.exe \
53 $(M)/dblend.exe $(M)/maktab.exe $(M)/dblgc.exe \
54 $(M)/refrac.exe $(M)/localmax.exe
55
56 # DEPENDENCIES:
57 all: $(MAKEFILE_VMS) $(OUT)
58
59 $(MAKEFILE_VMS): makefile
60 $(MAKE_VMS)
61
62 $(M)/refrac.exe: refrac.o $(LIBS1)
63 $(LD77) refrac.o $(LLIB1) $(MLIB) $(SLIB) -o $@
64 $(STRIP) $@
65
66 $(M)/dblgc.exe: dblgc.o $(LIBS3)
67 $(LD77) dblgc.o $(LLIB3) $(MLIB) $(SLIB) -o $@
68 $(STRIP) $@
69
70 $(M)/dblend.exe: dblend.o $(LIBS3)
71 $(LD77) dblend.o $(LLIB3) $(MLIB) $(SLIB) -o $@
72 $(STRIP) $@
73
74 $(M)/maktab.exe: maktab.o $(LIBS3)
75 $(LD77) maktab.o $(LLIB3) $(MLIB) $(SLIB) -o $@
76 $(STRIP) $@
77
78 $(M)/progress.exe: progress.o $(LIBS1)
79 $(LD77) progress.o $(LLIB1) $(SLIB) -o $@
80 $(STRIP) $@
81
82 $(M)/spcumhist.exe: spcumhist.o $(LIBS1)
83 $(LDCC) spcumhist.o $(LLIB1) $(MLIB) $(SLIB) -o $@
84
85 $(M)/localmax.exe: localmax.o $(LIBS1)
86 $(LDCC) localmax.o $(LLIB1) $(MLIB) $(SLIB) -o $@
87
88 $(M)/spmerge.exe: spmerge.o $(LIBS1)
89 $(LDCC) spmerge.o $(LLIB1) $(MLIB) $(SLIB) -o $@
90
91 $(M)/splocext.exe: splocext.o $(LIBS1)
92 $(LDCC) splocext.o $(LLIB1) $(MLIB) $(SLIB) -o $@
93
94 $(M)/sprebin.exe: sprebin.o $(LIBS1)
95 $(LDCC) sprebin.o $(LLIB1) $(MLIB) $(SLIB) -o $@
96
97 $(M)/spematch.exe: spematch.o $(LIBS1)
98 $(LDCC) spematch.o $(LLIB1) $(MLIB) $(SLIB) -o $@
99 $(STRIP) $@
100
101 $(M)/sphough.exe: sphough.o $(LIBS1)
102 $(LDCC) sphough.o $(LLIB1) $(MLIB) $(SLIB) -o $@
103 $(STRIP) $@
104
105 $(M)/specorrel.exe: specorrel.o $(LIBS1)
106 $(LDCC) specorrel.o $(LLIB1) $(MLIB) $(SLIB) -o $@
107 $(STRIP) $@
108
109 $(M)/caliline.exe: caliline.o $(LIBS1)
110 $(LD77) caliline.o $(LLIB1) $(SLIB) -o $@
111 $(STRIP) $@
112
113 $(M)/fripple.exe: fripple.o $(LIBS1)
114 $(LD77) fripple.o $(LLIB1) $(SLIB) -o $@
115 $(STRIP) $@
116
117 $(M)/ffnorm.exe: ffnorm.o $(LIBS1)
118 $(LD77) ffnorm.o $(LLIB1) $(SLIB) -o $@
119 $(STRIP) $@
120
121 $(M)/integbin.exe: integbin.o $(LIBS1)
122 $(LD77) integbin.o $(LLIB1) $(SLIB) -o $@
123 $(STRIP) $@
124
125 $(M)/overiden.exe: overiden.o $(LIBS2)
126 $(LD77) overiden.o $(LLIB2) $(SLIB) $(VMSLIB) -o $@
127 $(STRIP) $@
128
129 $(M)/specenter.exe: specenter.o $(LIBS1)
130 $(LD77) specenter.o $(LLIB1) $(SLIB) -o $@
131 $(STRIP) $@
132
133 $(M)/sperebin.exe: sperebin.o $(LIBS1)
134 $(LD77) sperebin.o $(LLIB1) $(SLIB) -o $@
135 $(STRIP) $@
136
137 $(M)/spesearch.exe: spesearch.o $(LIBS1)
138 $(LD77) spesearch.o $(LLIB1) $(SLIB) -o $@
139 $(STRIP) $@
140
141 clean_exec:
142 rm -f $(OUT)
143
144 clean:
145 rm -f *.o
146 rm -f *.f