-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (33 loc) · 1.03 KB
/
makefile
File metadata and controls
45 lines (33 loc) · 1.03 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
EXE = Parking
# Compilateur et editeur de lien
COMP = g++
LINK = g++
# Options de compilation et editions de liens
CHEMIN = /shares/public/tp/tp-multitache
INC = -I$(CHEMIN)
LIB = -L$(CHEMIN)
CPPFLAGS = -Wall -ansi -ggdb -std=c++11 -g $(INC)
EDLFLAGS = $(LIB)
#Fichiers
LOG=LogEntree0.txt LogEntree1.txt LogEntree2.txt LogSimulation.txt LogBarriereSortie.txt LogMere.txt
SRC =
INT = Mere.h Simulation.h BarriereSortie.h Entree.h #Mettre les .h ici
REAL = $(INT:.h=.cpp)
OBJ = $(INT:.h=.o) Mere.o #Mettre le .o du programme de test la où ya le main
#Autres commandes et message
ECHO = @echo
RM = @rm
MESSAGE = "Compilation terminée"
.PHONY: clean log
$(EXE): $(OBJ)
$(LINK) -o $(EXE) $^ $(EDLFLAGS) -ltp -lncurses -ltcl
$(ECHO) $(MESSAGE)
#Mettre les dependances particulieres ici
%.o:%.cpp
$(COMP) -c $(CPPFLAGS) $<
Mere.cpp:Mere.h Simulation.h config.h
Simulation.cpp:Simulation.h config.h
BarriereSortie.cpp:BarriereSortie.h config.h
Entree.cpp:Entree.h config.h
clean:
$(RM) -fv *.o $(EXE)