1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/Makefile
Alexander Medvednikov 892d2b58ac Makefile: add -lm
2019-07-10 21:59:08 +02:00

21 lines
480 B
Makefile

all: clean v
$(info V has been successfully built)
v: v.c
cc -std=gnu11 -w -o v v.c -lm
./v -o v compiler
rm v.c
v.c:
curl -Os https://raw.githubusercontent.com/vlang/vc/master/v.c
test: v
./v -prod -o vprod compiler # Test prod build
echo "Running V tests..."
find . -name '*_test.v' -print0 | xargs -0 -n1 ./v
echo "Building V examples..."
find examples -name '*.v' -not -path "examples/hot_code_reloading/*" -print0 | xargs -0 -n1 ./v
clean:
-rm -f v.c v vprod