1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-01-18 20:10:58 +00:00
This commit is contained in:
mintty 2016-09-14 15:37:55 +02:00
parent 15e94574c6
commit ab34967e50

View File

@ -2,8 +2,8 @@
# default: generate all # default: generate all
all: wslbridge mintty cygwin wsltty pkg all: wslbridge mintty cygwin wsltty pkg
ver=0.5
wslbridgever=0.1.0 wslbridgever=0.1.0
ver=$(wslbridgever)
TARGET := $(shell $(CC) -dumpmachine) TARGET := $(shell $(CC) -dumpmachine)
@ -19,19 +19,22 @@ else
$(error Target '$(TARGET)' not supported) $(error Target '$(TARGET)' not supported)
endif endif
wget=curl -R -L -O --connect-timeout 55
############################################################################# #############################################################################
# generation # generation
wslbridge: wslbridge:
wget https://github.com/rprichard/wslbridge/releases/download/$(wslbridgever)/wslbridge-$(wslbridgever)-$(sys).tar.gz -O wslbridge-$(wslbridgever)-$(sys).tar.gz $(wget) https://github.com/rprichard/wslbridge/releases/download/$(wslbridgever)/wslbridge-$(wslbridgever)-$(sys).tar.gz
tar xvzf wslbridge-$(wslbridgever)-$(sys).tar.gz tar xvzf wslbridge-$(wslbridgever)-$(sys).tar.gz
mkdir -p bin mkdir -p bin
cp wslbridge-$(wslbridgever)-$(sys)/wslbridge* bin/ cp wslbridge-$(wslbridgever)-$(sys)/wslbridge* bin/
cp wslbridge-$(wslbridgever)-$(sys)/LICENSE.txt LICENSE.wslbridge cp wslbridge-$(wslbridgever)-$(sys)/LICENSE.txt LICENSE.wslbridge
mintty: mintty:
wget https://github.com/mintty/mintty/archive/master.zip -O mintty.zip $(wget) https://github.com/mintty/mintty/archive/master.zip
unzip mintty.zip mv master.zip mintty-master.zip
unzip mintty-master.zip
cd mintty-master/src; make LDFLAGS="-static -static-libgcc -s" cd mintty-master/src; make LDFLAGS="-static -static-libgcc -s"
mkdir -p bin mkdir -p bin
cp mintty-master/bin/mintty.exe bin/ cp mintty-master/bin/mintty.exe bin/