Debian Codegraph @

applic/general/src/makefile

raw
1 # .COPYRIGHT: Copyright (c) 1988-2005 European Southern Observatory,
2 # all rights reserved
3 # .TYPE make file
4 # .NAME $MIDASHOME/$MIDVERS/applic/general/src/makefile
5 # .LANGUAGE makefile syntax
6 # .ENVIRONMENT Unix Systems.
7 # .COMMENT Compiles source files and generates "general" commands
8 #
9 # .REMARKS
10 # .AUTHOR
11 # .VERSION 1.1 891112: Implementation
12 # .VERSION 2.1 901102: new directory structure CG.
13 # .VERSION 2.2 920521: Removing MLIB CG
14 #
15 # 051111 last modif
16
17 include ../../../local/default.mk
18
19 M = ../../exec
20
21 LIBS = $(LIBDIR)/libagen.a \
22 $(LIBDIR)/libgen.a \
23 $(LIBDIR)/libmidas.a
24
25 LIBS1 = $(LIBDIR)/libftab.a \
26 $(LIBDIR)/libmidas.a
27
28 LLIB = -L$(LIBDIR) -lagen -lgen -lmidas
29 LLIB1 = -L$(LIBDIR) -lftab -lmidas -lmidmath
30
31 OUT = $(M)/sortrow.exe $(M)/filteradap.exe $(M)/keyset.exe \
32 $(M)/creastar.exe $(M)/scanima.exe $(M)/keyreg.exe \
33 $(M)/medfilt.exe
34
35 # DEPENDENCIES:
36 all: $(MAKEFILE_VMS) $(OUT)
37
38 $(MAKEFILE_VMS): makefile
39 $(MAKE_VMS)
40
41
42 $(M)/keyset.exe: keyset.o $(LIBS)
43 $(LDCC) keyset.o $(LLIB) $(MLIB) $(SLIB) -o $@
44
45 $(M)/keyreg.exe: keyreg.o $(LIBS)
46 $(LDCC) keyreg.o $(LLIB) $(MLIB) $(SLIB) -o $@
47
48 $(M)/sortrow.exe: sortrow.o $(LIBS1)
49 $(LDCC) sortrow.o $(LLIB1) $(MLIB) $(SLIB) -o $@
50 $(STRIP) $@
51
52 $(M)/filteradap.exe: filteradap.o $(LIBS)
53 $(LD77) filteradap.o $(LLIB) $(MLIB) $(SLIB) -o $@
54 $(STRIP) $@
55
56 $(M)/creastar.exe: creastar.o $(LIBS1)
57 $(LD77) creastar.o $(LLIB1) $(MLIB) $(SLIB) -o $@
58 $(STRIP) $@
59
60 $(M)/scanima.exe: scanima.o $(LIBS)
61 $(LDCC) scanima.o $(LLIB) $(MLIB) $(SLIB) -o $@
62 $(STRIP) $@
63
64 $(M)/medfilt.exe: medfilt.o $(LIBS)
65 $(LDCC) medfilt.o $(LLIB) $(MLIB) $(SLIB) -o $@
66 $(STRIP) $@
67
68
69 clean:
70 rm -f *.o
71 rm -f *.f
72
73 clean_exec:
74 rm -f $(OUT)