diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-11 19:34:19 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-31 18:30:59 +0200 |
commit | 478b80a1125813e71e14ba45453df78bf30d4579 (patch) | |
tree | 19d62dab4092cfe4e7a75089eeb3750dcd5f0650 /src/tools/Makefile | |
parent | tools: allow setting WG_ENDPOINT_RESOLUTION_RETRIES (diff) | |
download | wireguard-monolithic-historical-478b80a1125813e71e14ba45453df78bf30d4579.tar.xz wireguard-monolithic-historical-478b80a1125813e71e14ba45453df78bf30d4579.zip |
tools: add wincompat layer to wg(8)
Diffstat (limited to 'src/tools/Makefile')
-rw-r--r-- | src/tools/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/Makefile b/src/tools/Makefile index 0eecc57..e342779 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -54,6 +54,12 @@ endif ifeq ($(PLATFORM),haiku) LDLIBS += -lnetwork -lbsd endif +ifeq ($(PLATFORM),windows) +CC := x86_64-w64-mingw32-gcc +CFLAGS += -Iwincompat/include -include wincompat/compat.h +LDLIBS += -lws2_32 +wg: wincompat/libc.o wincompat/init.o +endif ifneq ($(V),1) BUILT_IN_LINK.o := $(LINK.o) |