-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 1.05 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
CC = g++
PROGS = main tests
FLAGS = -Wall -std=c++11
SRC = code
GNUPLOT = gnuplot
all: $(PROGS)
main: $(SRC)/main.cpp $(SRC)/FonctionsTest.o $(SRC)/Controle.o $(SRC)/Integrale.o $(SRC)/Schema.o $(SRC)/affichage.o
$(CC) -o $@ $^ $(FLAGS)
tests: $(SRC)/mainTests.cpp $(SRC)/FonctionsTest.o $(SRC)/Controle.o $(SRC)/Integrale.o $(SRC)/Schema.o $(SRC)/CasTest.o $(SRC)/affichage.o
$(CC) -o $@ $^ $(FLAGS)
$(SRC)/Controle.o: $(SRC)/Controle.cpp $(SRC)/Integrale.hpp $(SRC)/PbCauchy.hpp
$(CC) -c $< $(FLAGS) -o $@
$(SRC)/Integrale.o: $(SRC)/Integrale.cpp $(SRC)/Integrale.hpp
$(CC) -c $< $(FLAGS) -o $@
$(SRC)/CasTest.o: $(SRC)/CasTest.cpp $(SRC)/Schema.hpp $(SRC)/PbCauchy.hpp
$(CC) -c $< $(FLAGS) -o $@
$(SRC)/Schema.o: $(SRC)/Schema.cpp $(SRC)/Schema.hpp $(SRC)/PbCauchy.hpp
$(CC) -c $< $(FLAGS) -o $@
$(SRC)/FonctionsTest.o: $(SRC)/FonctionsTest.cpp $(SRC)/FonctionsTest.hpp
$(CC) -c $< $(FLAGS) -o $@
$(SRC)/affichage.o: $(SRC)/affichage.cpp $(SRC)/affichage.hpp
$(CC) -c $< $(FLAGS) -o $@
clean:
rm -f $(PROGS) $(SRC)/*.o $(GNUPLOT)/*.txt $(GNUPLOT)/*.bat