Blame view

Sources/Makefile 1.85 KB
4921d9e8   Elena.Budnik   src
1
2
3
4
5
6
7
.PHONY: clean

include ../env.sh

# *************************** COMPILER SETTINGS *****************************
CXX        = g++ 
CXXFLAGS   = -std=c++11 -pedantic -fPIC -Wall -Wextra
20f5ffde   Elena.Budnik   lcal modifs
8
9
INCLUDE    = -I${DD_DIR}/include/DDClientLibC -I${TINYDIR}/include
LIB        = -L${DD_DIR}/lib -L${TINYDIR}/lib
4921d9e8   Elena.Budnik   src
10
11
LKLIBS     = -lDDClientLibC -ltinyxml -lnetcdf -lm
LDFLAGS    = -fPIC
2b5aff50   Elena.Budnik   stereo added
12
EXE        = get_Orbit get_OMNI_1H get_ACE_RT get_STEREO get_DSCOVR get_R_LON_HCI
4921d9e8   Elena.Budnik   src
13
14
15
16
# ********************* END OF COMPILER SETTINGS *****************************

# ******************************** LINKING *********************************
all: $(EXE)
20f5ffde   Elena.Budnik   lcal modifs
17
	install -d -m a+rx,ug+w ${SW2ROOT}/Bin
4921d9e8   Elena.Budnik   src
18
19
	cp  $(EXE) ../Bin

4921d9e8   Elena.Budnik   src
20
21
22
23
24
25
26
27
28
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}
	
2b5aff50   Elena.Budnik   stereo added
29
30
31
32
33
34
get_STEREO: get_STEREO.o
	${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
	
get_DSCOVR: get_DSCOVR.o
	${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
	
4921d9e8   Elena.Budnik   src
35
36
37
38
39
get_R_LON_HCI: get_R_LON_HCI.o
	${CXX} -o $@ $^ ${LDFLAGS} ${LIB} ${LKLIBS}
# ************************** END OF LINKING *********************************

# ******************************** COMPILING ********************************
4921d9e8   Elena.Budnik   src
40
41
42
43
44
45
46
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
2b5aff50   Elena.Budnik   stereo added
47
48
49
50
51
52
53
54
	${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}
	
4921d9e8   Elena.Budnik   src
55
56
57
58
59
60
61
62
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: 
20f5ffde   Elena.Budnik   lcal modifs
63
64
	rm -f *.o Prop_code/*.o
	rm -f ${EXE} Prop_code/*.exe