1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/Makefile

22 lines
414 B
Makefile

CC ?= cc
VFLAGS ?=
CFLAGS ?=
LDFLAGS ?=
.PHONY: all check
all: vc
git -C vc/ pull;
$(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
vc/v.c:
git clone --filter=blob:none https://github.com/vlang/vc
check:
./v test-all