vorelang programming language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
695 B

CC ?= cc
all: stage1
stage0:
git clone --depth 1 --quiet https://gitdab.com/vorelang/vc
${CC} -std=gnu11 -w -o stage0 vc/v.c -lm
@echo "Vore stage0 has been built."
stage1: stage0 compiler/
./stage0 -o stage1 compiler
ln -fs stage1 v
@echo "Vore stage1 has been built."
stage2: compiler/
./stage1 -o stage2 compiler/
ln -fs stage2 v
@echo "Vore stage2 has been built."
v.c: stage1 compiler/
@echo "be warned this is experimental because i'm not mr.v"
@echo "the code enables some VDEBUG bullshit i dont wanna deal with"
./v -debug -o v compiler/
mv v.tmp.c v.c
test: stage0
./v test v
symlink: v
ln -sf `pwd`/v ${PREFIX}/bin/v
cleanvc:
rm -rf vc
rm stage0
clean:
rm v