10 lines
120 B
Makefile
10 lines
120 B
Makefile
all: $(patsubst %.c,%.exe,$(shell ls *.c))
|
|
|
|
%.exe: %.c
|
|
gcc $< -o $@ -lm -Wall -g
|
|
|
|
.PHONY: all clean
|
|
|
|
clean:
|
|
rm *.exe
|