123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- QT_FLAGS =-fPIC `pkg-config --cflags --libs Qt5OpenGL`
- QT_LIB =`pkg-config --libs Qt5OpenGL` -lGL -lGLU
- QT_MOC = moc
- GPP = g++
- FLAGS = -g -O3 -Isrc -Wfatal-errors
- QT_INPUT_FILES = main_window data input physics time geometry initial_state view tank pump pump_tab cloud clouds_tab
- QT_INPUT_MOC_FILES = main_window physics input view geometry initial_state tank pump_tab pump cloud clouds_tab
- MATH_INPUT_FILES = poly3 algo spline
- SRC_INPUT_FILES = physics time geometry initial_state source input_data
- QT_OUTPUT_FILES = main_window kernel output_view output
- QT_OUTPUT_MOC_FILES = main_window kernel output
- MATH_OUTPUT_FILES = algo
- SRC_OUTPUT_FILES = physics time geometry initial_state source input_data solution kernel
- QT_INPUT_OBJS = $(addprefix obj/qt/input/,$(addsuffix .o,$(QT_INPUT_FILES)))
- QT_INPUT_MOCS = $(addprefix moc/input/,$(addsuffix .cpp,$(QT_INPUT_MOC_FILES)))
- MATH_INPUT_OBJS = $(addprefix obj/math/,$(addsuffix .o,$(MATH_INPUT_FILES)))
- SRC_INPUT_OBJS = $(addprefix obj/,$(addsuffix .o,$(SRC_INPUT_FILES)))
- QT_OUTPUT_OBJS = $(addprefix obj/qt/output/,$(addsuffix .o,$(QT_OUTPUT_FILES)))
- QT_OUTPUT_MOCS = $(addprefix moc/output/,$(addsuffix .cpp,$(QT_OUTPUT_MOC_FILES)))
- MATH_OUTPUT_OBJS = $(addprefix obj/math/,$(addsuffix .o,$(MATH_OUTPUT_FILES)))
- SRC_OUTPUT_OBJS = $(addprefix obj/,$(addsuffix .o,$(SRC_OUTPUT_FILES)))
- MATH_KERNEL_OBJS = $(addprefix obj/math/,$(addsuffix .o,$(MATH_OUTPUT_FILES)))
- SRC_KERNEL_OBJS = $(addprefix obj/,$(addsuffix .o,$(SRC_OUTPUT_FILES)))
- EXE_INPUT = RichardsFastSlowInput
- EXE_OUTPUT = RichardsFastSlowOutput
- EXE_KERNEL = RichardsFastSlowKernel
- all: $(EXE_OUTPUT)
- input: $(EXE_INPUT)
- output: $(EXE_OUTPUT)
- kernel: $(EXE_KERNEL)
- $(EXE_INPUT) : src/main_input.cpp $(SRC_INPUT_OBJS) $(MATH_INPUT_OBJS) $(QT_INPUT_MOCS) $(QT_INPUT_OBJS)
- $(GPP) $(FLAGS) $(QT_FLAGS) $^ $(QT_LIB) -o $@
- $(EXE_OUTPUT) : src/main_output.cpp $(SRC_OUTPUT_OBJS) $(MATH_OUTPUT_OBJS) $(QT_OUTPUT_MOCS) $(QT_OUTPUT_OBJS)
- $(GPP) $(FLAGS) $(QT_FLAGS) $^ $(QT_LIB) -o $@
- $(EXE_KERNEL) : src/main_kernel.cpp $(SRC_KERNEL_OBJS) $(MATH_KERNEL_OBJS)
- $(GPP) $(FLAGS) $^ -o $@
- obj/qt/%.o : src/qt/%.cpp src/qt/%.hpp
- $(GPP) $(FLAGS) $(QT_FLAGS) -c $< -o $@
- obj/math/%.o : src/math/%.cpp src/math/%.hpp
- $(GPP) $(FLAGS) -c $< -o $@
- obj/%.o : src/%.cpp src/%.hpp
- $(GPP) $(FLAGS) -c $< -o $@
- moc/%.cpp : src/qt/%.hpp
- $(QT_MOC) $< -o $@
- clean:
- -$(RM) $(EXE) moc/input/*.cpp moc/output/*.cpp moc/*.cpp obj/*.o obj/math/*.o obj/qt/input/*.o obj/qt/output/*.o obj/qt/*.o src/*~ src/qt/*~ src/math/*~
|