vlang /
	
1CC ?= cc
2VFLAGS ?=
3CFLAGS ?=
4LDFLAGS ?=
5
6all:
7 rm -rf vc/
8 git clone --depth 1 --quiet https://github.com/vlang/vc
9 $(CC) $(CFLAGS) -std=gnu11 -w -o v1 vc/v.c -lm -lexecinfo -lpthread $(LDFLAGS)
10 ./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
11 ./v2 -o v $(VFLAGS) cmd/v
12 rm -rf v1 v2 vc/
13 @echo "V has been successfully built"
14 ./v run ./cmd/tools/detect_tcc.v