Files
SAE32_2024/tests/C/test-16-strange-variables/bake/Bakefile

40 lines
583 B
Plaintext
Raw Normal View History

# Ce makefile viens de : https://iut-fbleau.fr/sitebp/doc_make/makefile/
### VARIABLES ###
CC = gcc
CFLAGS = -Wall \
-ansi \
-pedantic
LIBS = -lm
EXE = exemple
OFILES = extension.o \
main.o
### BUT PAR DEFAUT ###
but : ${EXE}
### REGLES ESSENTIELLES ###
extension.o : extension.h
main.o : extension.h
${EXE} : ${OFILES}
$(CC) $(CFLAGS) -o ${EXE} ${OFILES} ${LIBS}
### REGLES OPTIONNELLES ###
run : but
./${EXE}
clean :
-rm -f ${OFILES} ${EXE}
mrproper : clean but
### BUTS FACTICES ###
.PHONY : but clean mrproper
### FIN ###