2023-11-23 11:09:32 +00:00
|
|
|
BUILD=clang -g -I include src/*.c main.c -o spec
|
2023-11-22 21:39:27 +00:00
|
|
|
|
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
|
|
|
|
$^
|
|
|
|
|
|
|
|
test/runner: include/*.h src/*.c test/*.c
|
|
|
|
clang -I include src/*.c test/*.c -o test/runner
|
|
|
|
|
|
|
|
.PHONY: test
|