Ajout de tests pour vérifier le comportement des variables sur plusieurs lignes avec Bake et Make
This commit is contained in:
40
tests/C/test-16-strange-variables/bake/Bakefile
Normal file
40
tests/C/test-16-strange-variables/bake/Bakefile
Normal file
@@ -0,0 +1,40 @@
|
||||
# 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 ###
|
Reference in New Issue
Block a user