-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
81 lines (61 loc) · 2.34 KB
/
Makefile
File metadata and controls
81 lines (61 loc) · 2.34 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright (c) 2018 Alain Lebret
# Licensed under the MIT License.
SHELL := /bin/sh
CXX ?= g++
CXXFLAGS ?= -std=c++11 -Wall -Wextra -g
.PHONY: all tp01 tp02 tp03 tp04 tp05 tp06 tp07 tp08 tp09 tp10 cavalier \
clean run-tp07 run-tp08 run-tp09 run-tp10
all: tp01 tp02 tp03 tp04 tp05 tp06 tp07 tp08 tp09 tp10 cavalier
tp01:
$(MAKE) -C correction/corrige_tp01 -f makefile.lin
tp02:
$(MAKE) -C correction/corrige_tp02 -f makefile.lin
tp03:
$(MAKE) -C correction/corrige_tp03 -f makefile.lin
tp04:
$(CXX) $(CXXFLAGS) -o correction/corrige_tp04/test_tri \
correction/corrige_tp04/test_tri.cxx \
correction/corrige_tp04/tri.cxx
tp05:
$(CXX) $(CXXFLAGS) -o correction/corrige_tp05/test_recherche \
correction/corrige_tp05/test_recherche.cxx \
correction/corrige_tp05/recherche.cxx
tp06:
$(CXX) $(CXXFLAGS) -o correction/corrige_tp06/test_palindrome \
correction/corrige_tp06/test_palindrome.cxx \
correction/corrige_tp06/palindrome.cxx
tp07:
$(MAKE) -C correction/corrige_tp07 -f makefile.lin
tp08:
$(CXX) $(CXXFLAGS) -o correction/corrige_tp08/testtr \
correction/corrige_tp08/testtr.cxx \
correction/corrige_tp08/rechfich.cxx \
correction/corrige_tp08/trifich.cxx
tp09:
$(MAKE) -C correction/corrige_tp09 -f makefile.lin
tp10:
$(MAKE) -C correction/corrige_tp10 -f makefile.lin
cavalier:
$(CXX) $(CXXFLAGS) -o correction/corrige_cavalier/cavalier \
correction/corrige_cavalier/cavalier.cxx
run-tp07: tp07
cd correction/corrige_tp07 && ./testfichier
run-tp08: tp08
cd correction/corrige_tp08 && ./testtr
run-tp09: tp09
cd correction/corrige_tp09 && ./testcomp
run-tp10: tp10
cd correction/corrige_tp10 && ./test_xor
clean:
$(MAKE) -C correction/corrige_tp01 -f makefile.lin clean || true
$(MAKE) -C correction/corrige_tp02 -f makefile.lin clean || true
$(MAKE) -C correction/corrige_tp03 -f makefile.lin clean || true
$(MAKE) -C correction/corrige_tp09 -f makefile.lin clean || true
$(MAKE) -C correction/corrige_tp10 -f makefile.lin clean || true
rm -f correction/corrige_tp04/test_tri
rm -f correction/corrige_tp05/test_recherche
rm -f correction/corrige_tp06/test_palindrome
rm -f correction/corrige_tp08/testtr
rm -f correction/corrige_tp07/*.o correction/corrige_tp07/testfichier correction/corrige_tp07/racine.bak
rm -f correction/corrige_cavalier/cavalier
find correction -type d -name '*.dSYM' -prune -exec rm -rf {} +