Makefile: use LDFLAGS

pull/2418/head
Unknown User 2019-10-18 19:22:47 +02:00 committed by Alexander Medvednikov
parent 5c5cdea4f2
commit 1795d34a1f
1 changed files with 2 additions and 2 deletions

View File

@ -18,11 +18,11 @@ endif
all: fresh_vc fresh_tcc all: fresh_vc fresh_tcc
ifdef WIN32 ifdef WIN32
$(CC) -std=c99 -w -o v0.exe vc/v_win.c $(CC) -std=c99 -w -o v0.exe vc/v_win.c $(LDFLAGS)
./v0.exe -o v.exe v.v ./v0.exe -o v.exe v.v
rm -f v0.exe rm -f v0.exe
else else
$(CC) -std=gnu11 -w -o v vc/v.c -lm $(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm
@(VC_V=`./v version | cut -f 3 -d " "`; \ @(VC_V=`./v version | cut -f 3 -d " "`; \
V_V=`git rev-parse --short HEAD`; \ V_V=`git rev-parse --short HEAD`; \
if [ $$VC_V != $$V_V ]; then \ if [ $$VC_V != $$V_V ]; then \