DEV/BUT1/DEV1.1/Organisation_code/exo1/Makefile
2024-02-01 13:55:03 +01:00

42 lines
649 B
Makefile

# 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