bootstrap/Makefile

18 lines
307 B
Makefile
Raw Normal View History

2023-11-25 03:29:24 +00:00
BUILD=clang -Og -g -I include src/*.c main.c -o bootstrap -lm
2023-11-23 11:09:32 +00:00
all: build bear
2023-11-22 20:43:34 +00:00
2023-11-23 11:09:32 +00:00
build: include/*.h src/*.c
@${BUILD}
bear: include/*.h src/*.c
@bear -- ${BUILD}
test: test/runner
$^
2023-11-23 14:40:17 +00:00
test/runner: include/*.h src/*.c test/*.h test/*.c
2023-11-25 03:29:24 +00:00
clang -I include src/*.c test/*.c -o test/runner -lm
2023-11-23 11:09:32 +00:00
.PHONY: test