Makefile: update

pull/1209/head
whoami 2019-07-17 22:50:38 +03:00 committed by Alexander Medvednikov
parent c35adbea91
commit 810e85541c
1 changed files with 12 additions and 2 deletions

View File

@ -5,12 +5,14 @@ all: clean v
$(info V has been successfully built) $(info V has been successfully built)
v: v.c v: v.c
${CC} -std=gnu11 -w -o v v.c -lm
./v -o v compiler ./v -o v compiler
rm v.c
v-release: v.c
./v -prod -o v compiler
v.c: v.c:
curl -Os https://raw.githubusercontent.com/vlang/vc/master/v.c curl -Os https://raw.githubusercontent.com/vlang/vc/master/v.c
${CC} -std=gnu11 -w -o v v.c -lm
test: v test: v
./v -prod -o vprod compiler # Test prod build ./v -prod -o vprod compiler # Test prod build
@ -26,3 +28,11 @@ SOURCES = $(wildcard thirdparty/**/*.c)
OBJECTS := ${SOURCES:.c=.o} OBJECTS := ${SOURCES:.c=.o}
thirdparty: ${OBJECTS} thirdparty: ${OBJECTS}
thirdparty-release: ${OBJECTS}
strip ${OBJECTS}
debug: clean v thirdparty
release: CFLAGS += -pie
release: clean v-release thirdparty-release