mirror of
https://github.com/heiher/natmap.git
synced 2026-05-06 21:51:26 +08:00
Build: Make building on Windows easier.
This commit is contained in:
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -144,7 +144,7 @@ jobs:
|
||||
run: |
|
||||
export MSYS=winsymlinks:native
|
||||
git clone --depth=1 --recursive file://`pwd` work; cd work
|
||||
make LFLAGS="-lmsys-2.0 -lws2_32" -j`nproc`
|
||||
make -j`nproc`
|
||||
mkdir natmap
|
||||
cp bin/natmap* natmap
|
||||
wget -P natmap https://github.com/heiher/msys2/releases/latest/download/msys-2.0.dll
|
||||
|
||||
4
Makefile
4
Makefile
@@ -33,6 +33,10 @@ LINKMSG="\e[1;34mLINK\e[0m \e[1;32m%s\e[0m\n"
|
||||
STRIPMSG="\e[1;34mSTRIP\e[0m \e[1;32m%s\e[0m\n"
|
||||
CLEANMSG="\e[1;34mCLEAN\e[0m %s\n"
|
||||
|
||||
ifeq ($(MSYSTEM),MSYS)
|
||||
LDFLAGS+=-lmsys-2.0 -lws2_32
|
||||
endif
|
||||
|
||||
ENABLE_DEBUG :=
|
||||
ifeq ($(ENABLE_DEBUG),1)
|
||||
CCFLAGS+=-g -O0 -DENABLE_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user