15 lines
369 B
Makefile
15 lines
369 B
Makefile
CC ?= cc
|
|
VFLAGS ?=
|
|
CFLAGS ?=
|
|
LDFLAGS ?=
|
|
|
|
all:
|
|
rm -rf vc/
|
|
git clone --depth 1 --quiet https://git.rustybever.be/Chewing_Bever/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/
|
|
@echo "V has been successfully built"
|
|
./v run ./cmd/tools/detect_tcc.v
|