Makefile
1.85 KB
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
.PHONY: clean
include ../env.sh
# *************************** COMPILER SETTINGS *****************************
CXX = g++
CXXFLAGS = -std=c++11 -pedantic -fPIC -Wall -Wextra
INCLUDE = -I${DD_DIR}/include/DDClientLibC -I${TINYDIR}/include
LIB = -L${DD_DIR}/lib -L${TINYDIR}/lib
LKLIBS = -lDDClientLibC -ltinyxml -lnetcdf -lm
LDFLAGS = -fPIC
EXE = get_Orbit get_OMNI_1H get_ACE_RT get_STEREO get_DSCOVR get_R_LON_HCI
# ********************* END OF COMPILER SETTINGS *****************************
# ******************************** LINKING *********************************
all: $(EXE)
install -d -m a+rx,ug+w ${SW2ROOT}/Bin
cp $(EXE) ../Bin
get_Orbit: get_Orbit.o
${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
get_OMNI_1H: get_OMNI_1H.o
${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
get_ACE_RT: get_ACE_RT.o
${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
get_STEREO: get_STEREO.o
${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
get_DSCOVR: get_DSCOVR.o
${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
get_R_LON_HCI: get_R_LON_HCI.o
${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
# ************************** END OF LINKING *********************************
# ******************************** COMPILING ********************************
get_Orbit.o: get_Orbit.cpp
${CXX} -c $< -o $@ ${INCLUDE} ${CXXFLAGS}
get_OMNI_1H.o: get_OMNI_1H.cpp
${CXX} -c $< -o $@ ${INCLUDE} ${CXXFLAGS}
get_ACE_RT.o: get_ACE_RT.cpp
${CXX} -c $< -o $@ ${INCLUDE} ${CXXFLAGS}
get_STEREO.o: get_STEREO.cpp
${CXX} -c $< -o $@ ${INCLUDE} ${CXXFLAGS}
get_DSCOVR.o: get_DSCOVR.cpp
${CXX} -c $< -o $@ ${INCLUDE} ${CXXFLAGS}
get_R_LON_HCI.o: get_R_LON_HCI.cpp
${CXX} -c $< -o $@ ${INCLUDE} ${CXXFLAGS}
# ************************* END OF COMPILING ********************************
cd Prop_code; make; cd ..
# CLEAN
clean:
rm -f *.o Prop_code/*.o
rm -f ${EXE} Prop_code/*.exe