19 lines
229 B
Makefile
19 lines
229 B
Makefile
all: $(subst c,exe,$(shell ls *.c))
|
|
|
|
E1-1.exe: E1-1.c
|
|
gcc E1-1.c -o E1-1.exe
|
|
|
|
E1-3.exe: E1-3.c
|
|
gcc E1-3.c -o E1-3.exe -lm
|
|
|
|
E2.exe: E2.c
|
|
gcc E2.c -o E2.exe
|
|
|
|
E5.exe: E5.c
|
|
gcc E5.c -o E5.exe
|
|
|
|
.PHONY: all clean
|
|
|
|
clean:
|
|
rm *.exe
|