This commit is contained in:
2023-10-23 13:23:36 +02:00
parent 667dae6f1a
commit 322b22f9bf
5711 changed files with 72953 additions and 0 deletions

41
DEV/DEV1.1/CM3/Makefile~ Normal file
View File

@@ -0,0 +1,41 @@
# TP 19 Exercice 1 : fichier Makefile
# CHAPITRE 1 : BUT FINAL
but : exo1
# CHAPITRE 2 : VARIABLES
OFILES = lire.o \
personne.o \
repertoire.o \
main.o
CC = gcc
CFLAGS = -Wall -ansi -pedantic -g
# CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES)
personne.o : personne.h lire.h
repertoire.o : repertoire.h personne.h
main.o : personne.h repertoire.h
#CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
lire.o : lire.s lire.h
as -o lire.o lire.s
exo1 : $(OFILES)
$(CC) $(CFLAGS) -o exo1 $(OFILES)
#CHAPITRE 5 : NETTOYAGE DES FICHIERS GENERES
clean :
-rm -f $(OFILES) exo1
#CHAPITRE 6 : BUTS FACTICES
.PHONY : but clean