v/Makefile

20 lines
403 B
Makefile
Raw Permalink Normal View History

CC ?= cc
VFLAGS ?=
CFLAGS ?=
LDFLAGS ?=
.PHONY: all check
all:
rm -rf vc/
2022-04-15 09:52:10 +02:00
git clone --depth 1 --quiet https://git.rustybever.be/vieter/vc
$(CC) $(CFLAGS) -std=gnu11 -w -o v1 vc/v.c -lm -lexecinfo -lpthread $(LDFLAGS)
./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
./v2 -o v $(VFLAGS) cmd/v
rm -rf v1 v2 vc/
2019-08-16 08:25:10 +02:00
@echo "V has been successfully built"
./v run ./cmd/tools/detect_tcc.v
check:
./v test-all