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

14 lines
272 B
Makefile

CC ?= cc
CFLAGS ?= -O2 -fPIC
PREFIX ?= /usr/local
all:
curl -o v.c -LsSf https://raw.githubusercontent.com/vlang/vc/master/v.c
${CC} -std=gnu11 -w -o v v.c -lm
v -o v compiler
rm v.c
@echo "V has been successfully built"
symlink: v
ln -sf `pwd`/v ${PREFIX}/bin/v