2025-01-07 15:07:12 +01:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -ansi \
|
|
|
|
-pedantic
|
|
|
|
EXE = but
|
|
|
|
OFILES = carre.o \
|
|
|
|
hue.o
|
|
|
|
|
|
|
|
### BUT PAR DEFAUT ###
|
|
|
|
|
|
|
|
but : ${EXE}
|
|
|
|
|
|
|
|
### REGLES ESSENTIELLES ###
|
|
|
|
|
2024-12-10 12:52:05 +01:00
|
|
|
carre.o : carre.c
|
2025-01-07 15:07:12 +01:00
|
|
|
|
|
|
|
hue.o : hue.h hue.c
|
|
|
|
|
|
|
|
${EXE} : ${OFILES}
|
|
|
|
$(CC) $(CFLAGS) -o ${EXE} ${OFILES}
|
2024-12-10 12:52:05 +01:00
|
|
|
|
2025-01-07 15:07:12 +01:00
|
|
|
### REGLES OPTIONNELLES ###
|
|
|
|
|
|
|
|
run : but
|
|
|
|
./${EXE}
|
2024-12-10 12:52:05 +01:00
|
|
|
|
2025-01-07 15:07:12 +01:00
|
|
|
clean :
|
|
|
|
-rm -f ${OFILES} ${EXE}
|