Debian Codegraph @

stdred/feros/src/makefile

raw
1 # @(#)makefile 19.1 (ESO-IPG) 02/25/03 14:22:16
2 # .COPYRIGHT: Copyright (c) 1988 European Southern Observatory,
3 # all rights reserved
4 # .TYPE make file
5 # .NAME $MIDASHOME/$MIDVERS/contrib/feros/src/makefile
6 # .LANGUAGE makefile syntax
7 # .ENVIRONMENT Unix Systems.
8 # .COMMENT Compiles source files and generates "fors" 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 2.1 901102: new directory structure CG.
15 # .VERSION 3.0 930308: Using default.mk file
16
17 # DEFINITIONS:
18
19 include ../../../local/default.mk
20
21 #LLIBDIR = ../lib
22
23 M = ../../exec
24 #C_OPT = -O
25 #DEBUG = -g
26
27 CFLAGS += $(C_OPT) $(DEBUG) $(SYS) -I$(LINC) -I$(INC)
28
29 LLIB = -L$(LIBDIR) -lmidas -lm
30 LLIB1 = -L$(LLIBDIR) -lech -L$(LIBDIR) -lftab -lgen -lmidas -lmidmath -lm
31
32 LIBS = $(LIBDIR)/libmidas.a
33 LIBS1 = $(LLIBDIR)/libech.a $(LIBDIR)/libmidas.a
34
35 OBJ = echloc.o echext.o echbackground.o echfit.o echcalibrate.o \
36 echrebin1d.o ypos.o echstraight.o imaqual.o echmerg1.o echidena.o \
37 colmean.o
38
39 OUT = $(M)/echloc.exe $(M)/echext.exe $(M)/echbackground.exe \
40 $(M)/echcalibrate.exe \
41 $(M)/echrebin1d.exe $(M)/ypos.exe $(M)/echstraight.exe \
42 $(M)/imaqual.exe $(M)/echmerg1.exe $(M)/echidena.exe \
43 $(M)/colmean.exe
44
45 # DEPENDENCIES:
46 all: $(MAKEFILE_VMS) $(OUT)
47
48 $(MAKEFILE_VMS): makefile
49 $(MAKE_VMS)
50
51 $(M)/echloc.exe: echloc.o $(LIBS1)
52 $(LDCC) echloc.o $(LLIB1) $(SLIB) -o $@
53 $(STRIP) $@
54 $(M)/echext.exe: echext.o $(LIBS1)
55 $(LDCC) echext.o $(LLIB1) $(SLIB) -o $@
56 $(STRIP) $@
57 $(M)/echstraight.exe: echstraight.o $(LIBS1)
58 $(LDCC) echstraight.o $(LLIB1) $(SLIB) -o $@
59 $(STRIP) $@
60 $(M)/echbackground.exe: echbackground.o $(LIBS1)
61 $(LDCC) echbackground.o $(LLIB1) $(SLIB) -o $@
62 $(STRIP) $@
63 $(M)/echcalibrate.exe: echcalibrate.o $(LIBS1)
64 $(LDCC) echcalibrate.o $(LLIB1) $(SLIB) -o $@
65 $(STRIP) $@
66 $(M)/ypos.exe: ypos.o $(LIBS1)
67 $(LDCC) ypos.o $(LLIB1) $(SLIB) -o $@
68 $(STRIP) $@
69 $(M)/echrebin1d.exe: echrebin1d.o $(LIBS1)
70 $(LDCC) echrebin1d.o $(LLIB1) $(SLIB) -o $@
71 $(STRIP) $@
72 $(M)/imaqual.exe: imaqual.o $(LIBS1)
73 $(LDCC) imaqual.o $(LLIB1) $(SLIB) -o $@
74 $(STRIP) $@
75 $(M)/echmerg1.exe: echmerg1.o $(LIBS1)
76 $(LD77) echmerg1.o $(LLIB1) $(SLIB) -o $@
77 $(STRIP) $@
78 $(M)/echidena.exe: echidena.o $(LIBS1)
79 $(LD77) echidena.o $(LLIB1) $(SLIB) -o $@
80 $(STRIP) $@
81 $(M)/colmean.exe: colmean.o $(LIBS1)
82 $(LD77) colmean.o $(LLIB1) $(SLIB) -o $@
83 $(STRIP) $@
84
85 clean_exec:
86 rm -f $(OUT)
87
88 clean:
89 rm -f $(OBJ)