forked from alexdembele/ProjetEnsta2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (32 loc) · 1.8 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
# include à modifier selon sa configuration
#include make_msys.inc
include make_linux.inc
ALL= vortexSimulation.exe
default: help
all: $(ALL)
clean:
@rm -fr objs/*.o *.exe src/*~ *.png
OBJS= objs/vortex.o objs/screen.o objs/runge_kutta.o objs/cloud_of_points.o objs/cartesian_grid_of_speed.o \
objs/vortexSimulation.o
objs/vortex.o: src/point.hpp src/vector.hpp src/vortex.hpp src/vortex.cpp
$(CXX) $(CXXFLAGS) -Isrc -c -o $@ src/vortex.cpp
objs/cartesian_grid_of_speed.o: src/point.hpp src/vector.hpp src/vortex.hpp src/cartesian_grid_of_speed.hpp src/cartesian_grid_of_speed.cpp
$(CXX) $(CXXFLAGS) -Isrc -c -o $@ src/cartesian_grid_of_speed.cpp
objs/cloud_of_points.o: src/point.hpp src/rectangle.hpp src/cloud_of_points.hpp src/cloud_of_points.cpp
$(CXX) $(CXXFLAGS) -Isrc -c -o $@ src/cloud_of_points.cpp
objs/runge_kutta.o: src/vortex.hpp src/cloud_of_points.hpp src/cartesian_grid_of_speed.hpp src/runge_kutta.hpp src/runge_kutta.cpp
$(CXX) $(CXXFLAGS) -Isrc -c -o $@ src/runge_kutta.cpp
objs/screen.o: src/vortex.hpp src/cloud_of_points.hpp src/cartesian_grid_of_speed.hpp src/screen.hpp src/screen.cpp
$(CXX) $(CXXFLAGS) -Isrc -c -o $@ src/screen.cpp
objs/vortexSimulation.o: src/cartesian_grid_of_speed.hpp src/vortex.hpp src/cloud_of_points.hpp src/runge_kutta.hpp src/screen.hpp src/vortexSimulation.cpp
$(CXX) $(CXXFLAGS) -Isrc -c -o $@ src/vortexSimulation.cpp
vortexSimulation.exe: $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LIB)
help:
@echo "Available targets : "
@echo " all : compile all executables"
@echo " vortexSimulation.exe : compile simple this executable"
@echo "Add DEBUG=yes to compile in debug"
@echo "Configuration :"
@echo " CXX : $(CXX)"
@echo " CXXFLAGS : $(CXXFLAGS)"