1 gaskelld 1.1 RM = rm -f
2 SHELL = /bin/sh
3
4 ifndef MYOS
5 MYOS := $(subst -,,$(shell uname))
6 endif
7
8 ifeq ($(MYOS),HPUX)
9 # FFLAGS=+ppu -O -C +es -I$(MYINC) +Obb1000
10 FFLAGS=-O -C +es -I$(MYINC) +Obb1000
11 LDFLAGS=-Wl,-a archive
12 OTHERLIBS =
13 endif
14
15 ifeq ($(MYOS),ULTRIX)
16 FFLAGS=-check_bounds
17 LDFLAGS=
18 OTHERLIBS=
19 endif
20
21 ifeq ($(MYOS),OSF1)
22 gaskelld 1.1 FFLAGS=-r8 -O -C -extend_source -fpe -warn argument_checking \
23 -warn declarations -warn truncated_source -warn unused -check bounds
24 LDFLAGS=
25 OTHERLIBS =
26 endif
27
28
29 subroutines =
30
31 all: readc12 readfe56 readau197 readhe4 readhe3mod readhe3par readnm
32
33 readc12: $(subroutines) readc12.o Makefile
34 $(F77) -o $@ $(FFLAGS) readc12.o $(subroutines) $(OTHERLIBS)
35
36 readfe56: $(subroutines) readfe56.o Makefile
37 $(F77) -o $@ $(FFLAGS) readfe56.o $(subroutines) $(OTHERLIBS)
38
39 readau197: $(subroutines) readau197.o Makefile
40 $(F77) -o $@ $(FFLAGS) readau197.o $(subroutines) $(OTHERLIBS)
41
42 readhe4: $(subroutines) readhe4.o Makefile
43 gaskelld 1.1 $(F77) -o $@ $(FFLAGS) readhe4.o $(subroutines) $(OTHERLIBS)
44
45 readhe3mod: $(subroutines) readhe3mod.o Makefile
46 $(F77) -o $@ $(FFLAGS) readhe3mod.o $(subroutines) $(OTHERLIBS)
47
48 readhe3par: $(subroutines) readhe3par.o Makefile
49 $(F77) -o $@ $(FFLAGS) readhe3par.o $(subroutines) $(OTHERLIBS)
50
51 readnm: $(subroutines) readnm.o Makefile
52 $(F77) -o $@ $(FFLAGS) readnm.o $(subroutines) $(OTHERLIBS)
53
54 clean:
55 rm *.o readc12 readfe56 readau197 readhe4 readhe3mod readhe3par readnm
|