source: PSPA/transportPSPA/trunk/Makefile.orig @ 478

Last change on this file since 478 was 15, checked in by lemeur, 12 years ago

transport pspa initial

File size: 2.2 KB
Line 
1SHELL = /bin/sh
2INCLUDE = -Iinclude
3FF = f77
4TRANSPORT_OBJECTS = bin/transport.o \
5        bin/trm.o \
6        bin/trin.o \
7        bin/trsec.o \
8        bin/ranport.o
9
10BSHEET_OBJECTS = bin/bshcall.o \
11        bin/bshm.o
12
13TRANSLIB = lib/libtransport.a
14
15SOURCES = $(TRANSPORT_OBJECTS:.o=.f) bshcall.f bshm.f
16
17all: FlavorStuff bin/trns.exe bin/bsheet.exe
18
19FlavorStuff:
20        if [ "x$(RestarT)" = "x" ]; then \
21        if [ x$(FLAVOR) != x ]; then \
22                if [ ! -d bin ]; then mkdir bin; fi; \
23                if [ ! -d lib ]; then mkdir lib; fi; \
24        fi; \
25        case x$(FLAVOR) in x) \
26                make -f Makefile FLAVOR=`$(UPS_DIR)/bin/ups flavor -2`; \
27                exit 1; \
28                ;; \
29        xSunOS*) \
30                make -f Makefile FLAVOR=$(FLAVOR) FFLAGS=" " LFLAGS="-z muldefs" RestarT=x; \
31                ;; \
32        xAIX*) \
33                make -f Makefile FLAVOR=$(FLAVOR) FFLAGS="-g -qextname" RestarT=x; \
34                ;; \
35        xIRIX*) \
36                make -f Makefile FLAVOR=$(FLAVOR) FFLAGS="-g -r8" RestarT=x; \
37                ;; \
38        xLinux*) \
39                make -f Makefile FLAVOR=$(FLAVOR) FFLAGS="-g -fno-globals" RestarT=x; \
40                ;; \
41        *) \
42                make -f Makefile FLAVOR=$(FLAVOR) RestarT=x; \
43                ;; \
44        esac \
45        fi
46
47bin/trns.exe : bin/trcall.o $(TRANSPORT_OBJECTS)
48        $(FF) -o $@ bin/trcall.o $(TRANSPORT_OBJECTS)
49
50bin/trcall.o: src/trcall.f
51        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/trcall.f
52
53bin/transport.o: src/transport.f
54        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/transport.f
55
56bin/trm.o: src/trm.f
57        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/trm.f
58
59bin/trin.o: src/trin.f
60        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/trin.f
61
62bin/trsec.o: src/trsec.f
63        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/trsec.f
64
65bin/ranport.o: src/ranport.f
66        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/ranport.f
67
68bin/ranibm.o: src/ranibm.f
69        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/ranibm.f
70
71bin/bsheet.exe: $(TRANSLIB) $(BSHEET_OBJECTS)
72        $(FF) $(LFLAGS) -o $@ $(BSHEET_OBJECTS) -Llib -ltransport
73
74bin/bshcall.o: src/bshcall.f
75        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/bshcall.f
76
77bin/bshm.o: src/bshm.f
78        $(FF) -o $@ $(FFLAGS) $(INCLUDE) -c src/bshm.f
79
80bin/trplot.o: src/trplot.f
81        $(FF) -o $@ $(FFLAGS) -c -C src/trplot.f
82
83bin/trplot.exe: bin/trplot.o
84        $(FF) -o $@ bin/trplot.o
85
86$(TRANSLIB) : $(TRANSPORT_OBJECTS)
87        ar rs $(TRANSLIB) $(TRANSPORT_OBJECTS)
88
89clean:
90        rm -f $(TRANSLIB)
91        rm -f bin/*.o
92        rm -f bin/*~*
93        rm -f bin/trns.exe
94        rm -f bin/bsheet.exe
95
Note: See TracBrowser for help on using the repository browser.