Meilleurs Makefile
This commit is contained in:
parent
630cfed0ed
commit
c7cd6f5092
6 changed files with 22 additions and 4 deletions
9
TP3/Makefile
Normal file
9
TP3/Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
all: $(patsubst %.c,%.exe,$(shell ls *.c))
|
||||
|
||||
%.exe: %.c
|
||||
gcc $< -o $@
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
clean:
|
||||
rm *.exe
|
Reference in a new issue