mirror of
https://github.com/xlucn/PAT.git
synced 2026-11-01 12:37:56 +08:00
15 lines
156 B
Makefile
15 lines
156 B
Makefile
src=$(wildcard *.c)
|
|
bin=$(basename $(src))
|
|
|
|
all:$(bin)
|
|
|
|
%:%.c
|
|
gcc -std=c11 -g -Wall -o $@ $< -lm
|
|
|
|
test:
|
|
@echo $(src) $(bin)
|
|
|
|
rebuild:
|
|
rm -f $(bin)
|
|
make
|