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.
 
 
 
 

43 lines
748 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/
./stage1 -o v.c compiler/
./stage1 -os windows -o v_win.c compiler/
clang-format -i v.c
clang-format -i v_win.c
@echo "NOTE: move v.c and v_win.c to your vc repository"
test: stage0
./v test v
symlink: v
ln -sf `pwd`/v ${PREFIX}/bin/v
cleanvc:
rm -rf vc
rm -f stage0
clean:
rm -f stage1
rm -f v
clean2:
rm -f stage2
rm -f v2