.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