Build: Make building on Windows easier.

This commit is contained in:
hev
2025-07-27 22:14:18 +08:00
parent 0d1736d7f7
commit 6890f5ddb7
3 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -33,7 +33,7 @@ ndk-build
export MSYS=winsymlinks:native
git clone --recursive https://github.com/heiher/natmap.git
cd natmap
make LFLAGS="-lmsys-2.0 -lws2_32"
make
```
## How to Use