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