-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
84 lines (60 loc) · 2.38 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
CC = gcc -g
FC = gfortran -g
RM = rm -f
CFLAGS = -Wall -g -I..
CGLIBS = mtprng.o stdtypes.o
LDLIBS =
OBJ = soapC.o \
soapClient.o \
stdsoap2.o \
turblib.o
all: scauchy
scauchy : $(OBJ) scauchy.o $(CGLIBS)
$(FC) -o $@ $(OBJ) scauchy.o $(CGLIBS) $(LDLIBS)
scauchy.o : scauchy.f90 mtprng.o stdtypes.o
$(FC) -c scauchy.f90
mtprng.o : mtprng.f90 stdtypes.o
$(FC) -c mtprng.f90
stdtypes.o : stdtypes.f90
$(FC) -c stdtypes.f90
stdsoap2.o: stdsoap2.c
$(CC) $(CFLAGS) -c $<
static_lib: $(OBJ)
ar rcs libJHTDB.a $(OBJ)
install: static_lib
$(MKDIR) $(JHTDB_PREFIX)/include
$(MKDIR) $(JHTDB_PREFIX)/lib
$(CP) *.h $(JHTDB_PREFIX)/include/
$(CP) libJHTDB.a $(JHTDB_PREFIX)/lib/
# Regenerate the gSOAP interfaces if required
TurbulenceService.h : wsdl
# Update the WSDL and gSOAP interfaces
wsdl:
wsdl2h -o TurbulenceService.h -n turb -c "http://turbulence.pha.jhu.edu/service/turbulence.asmx?WSDL" -s
soapcpp2 -CLcx -2 -I.:$(SOAP_INCLUDE_DIR) TurbulenceService.h
testwsdl:
wsdl2h -o TurbulenceService.h -n turb -c "http://test.turbulence.pha.jhu.edu/service/turbulence.asmx?WSDL" -s
soapcpp2 -CLcx -2 -I.:$(SOAP_INCLUDE_DIR) TurbulenceService.h
mhdtestwsdl:
wsdl2h -o TurbulenceService.h -n turb -c "http://mhdtest.turbulence.pha.jhu.edu/service/turbulence.asmx?WSDL" -s
soapcpp2 -CLcx -2 -I.:$(SOAP_INCLUDE_DIR) TurbulenceService.h
devwsdl:
wsdl2h -o TurbulenceService.h -n turb -c "http://dev.turbulence.pha.jhu.edu/service/turbulence.asmx?WSDL" -s
soapcpp2 -CLcx -2 -I.:$(SOAP_INCLUDE_DIR) TurbulenceService.h
mhddevwsdl:
wsdl2h -o TurbulenceService.h -n turb -c "http://mhddev.turbulence.pha.jhu.edu/service/turbulence.asmx?WSDL" -s
soapcpp2 -CLcx -2 -I.:$(SOAP_INCLUDE_DIR) TurbulenceService.h
prodtestwsdl:
wsdl2h -o TurbulenceService.h -n turb -c "http://prodtest.turbulence.pha.jhu.edu/service/turbulence.asmx?WSDL" -s
soapcpp2 -CLcx -2 -I.:$(SOAP_INCLUDE_DIR) TurbulenceService.h
clean:
$(RM) *.dat *.o *.exe turbf turbc mhdc mhdf channelc channelf mixingc mixingf compiler_flags
spotless: clean
$(RM) soapClient.c TurbulenceServiceSoap.nsmap soapH.h TurbulenceServiceSoap12.nsmap soapStub.h soapC.c TurbulenceService.h
.SUFFIXES: .o .c .x
.c.o:
$(CC) $(CFLAGS) -c $<
.PHONY: force
compiler_flags: force
echo '$(CFLAGS)' | cmp -s - $@ || echo '$(CFLAGS)' > $@
$(OBJ): compiler_flags