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