-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (40 loc) · 877 Bytes
/
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
46
47
48
#VARIABLES:
#----------
COMP=gcc
EDL=gcc
EXE=B3154_Exe
#Flags:
CPPFLAGS=-O3 -pg -fprofile-arcs -ftest-coverage #-g -Wall
EDLFLAGS=-pg -fprofile-arcs -ftest-coverage
#Paths:
INCPATH=#-I /home/samuel/Documents/TpMultiTache
LIBPATH=#-L /home/samuel/Documents/TpMultiTache
#Affichage:
ECHO=@echo #pour le mode silencieux
#Suppression:
RM=@rm
RMFLAGS=-f
#
INT=Tp_multiThread.h#Mere.h Clavier.h Entree.h Sortie.h
REAL=$(INT:.h=.cpp)
OBJ=$(INT:.h=.o)
LIBS=-lpthread -lm#-ltp -lncurses -ltcl
#Clean:
CLEAN=clean
.PHONY:$(CLEAN)
#Règles:
#-------
$(EXE): $(OBJ)
$(ECHO) + EDL de $(EXE)
$(EDL) -o $(EXE) $(OBJ) $(EDLFLAGS) $(LIBPATH) $(LIBS)
#Patterns:
#---------
%.o : %.c
$(ECHO) + Compliation de $<
$(COMP) -c $(CPPFLAGS) $(INCPATH) $<
Tp_multiThread : Tp_multiThread.c
#Nettoyage:
#----------
$(CLEAN):
$(ECHO) --- NETTOYAGE ---
$(RM) $(RMFLAGS) $(OBJ) #$(EXE) #Core