Ajout des travaux effectuer
This commit is contained in:
35
23DEV1.1/TPS1/TP2/controle/CM2_2022/Makefile
Normal file
35
23DEV1.1/TPS1/TP2/controle/CM2_2022/Makefile
Normal file
@@ -0,0 +1,35 @@
|
||||
#BUT FINAL
|
||||
|
||||
all : Repetition exo3
|
||||
|
||||
#Variables
|
||||
|
||||
OFILES = main.o \
|
||||
Repetition.o
|
||||
|
||||
CC = gcc
|
||||
|
||||
CFLAGS = -Wall -ansi -pedantic
|
||||
|
||||
#Dépendances
|
||||
|
||||
main.o: main.c Repetition.h
|
||||
|
||||
Repetition.o: Repetition.c Repetition.h
|
||||
|
||||
#Exec
|
||||
|
||||
Repetition: $(OFILES)
|
||||
$(CC) $(CFLAGS) -o Repetition $(OFILES) && rm -f *.o && echo "Utilisation : ./Repetition"
|
||||
|
||||
exo3 : 3Ralenti.c
|
||||
$(CC) $(CFLAGS) -std=gnu99 -o exo3 3Ralenti.c && echo "Utilisation : ./exo3"
|
||||
|
||||
#Nettoyage
|
||||
|
||||
clean:
|
||||
rm -f Repetition && rm -f exo3
|
||||
|
||||
#But factice
|
||||
|
||||
.PHONY : but clean
|
||||
Reference in New Issue
Block a user