Makefile: support CFLAGS and LDFLAGS for the vc/v.c to v bootstrap.
parent
3fe8204062
commit
137fade014
4
Makefile
4
Makefile
|
@ -1,10 +1,12 @@
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
VFLAGS ?=
|
VFLAGS ?=
|
||||||
|
CFLAGS ?=
|
||||||
|
LDFLAGS ?=
|
||||||
|
|
||||||
all:
|
all:
|
||||||
rm -rf vc/
|
rm -rf vc/
|
||||||
git clone --depth 1 --quiet https://github.com/vlang/vc
|
git clone --depth 1 --quiet https://github.com/vlang/vc
|
||||||
$(CC) -std=gnu11 -w -I ./thirdparty/stdatomic/nix -o v1 vc/v.c -lm -lexecinfo -lpthread
|
$(CC) $(CFLAGS) -std=gnu11 -w -I ./thirdparty/stdatomic/nix -o v1 vc/v.c -lm -lexecinfo -lpthread $(LDFLAGS)
|
||||||
./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
|
./v1 -no-parallel -o v2 $(VFLAGS) cmd/v
|
||||||
./v2 -o v $(VFLAGS) cmd/v
|
./v2 -o v $(VFLAGS) cmd/v
|
||||||
rm -rf v1 v2 vc/
|
rm -rf v1 v2 vc/
|
||||||
|
|
Loading…
Reference in New Issue