mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Makefile: update
This commit is contained in:
parent
c35adbea91
commit
810e85541c
14
Makefile
14
Makefile
@ -5,12 +5,14 @@ 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-release: v.c
|
||||
./v -prod -o v compiler
|
||||
|
||||
v.c:
|
||||
curl -Os https://raw.githubusercontent.com/vlang/vc/master/v.c
|
||||
${CC} -std=gnu11 -w -o v v.c -lm
|
||||
|
||||
test: v
|
||||
./v -prod -o vprod compiler # Test prod build
|
||||
@ -26,3 +28,11 @@ SOURCES = $(wildcard thirdparty/**/*.c)
|
||||
OBJECTS := ${SOURCES:.c=.o}
|
||||
|
||||
thirdparty: ${OBJECTS}
|
||||
|
||||
thirdparty-release: ${OBJECTS}
|
||||
strip ${OBJECTS}
|
||||
|
||||
debug: clean v thirdparty
|
||||
|
||||
release: CFLAGS += -pie
|
||||
release: clean v-release thirdparty-release
|
||||
|
Loading…
Reference in New Issue
Block a user