From 618c0e68ac91b056799139e4fa7bab4b6ec76c2f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 1 Apr 2023 11:52:53 +0000 Subject: [PATCH] win32/GNUmakefile: fixups to previous commit [ci skip] - `-lws2_32` is necessary when building examples. - drop a temporary variable. Follow-up to d245c66cc0029e480674394c23e8be1c9410f7ad --- win32/GNUmakefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/win32/GNUmakefile b/win32/GNUmakefile index 49966276..5eb97b1b 100644 --- a/win32/GNUmakefile +++ b/win32/GNUmakefile @@ -52,7 +52,7 @@ RCFLAGS += -I$(PROOT)/include # examples, tests LIBSSH2_LDFLAGS_BIN += -L$(PROOT)/win32 -LIBS_BIN := -lssh2 +LIBS_BIN := -lssh2 -lws2_32 ifdef DYN libssh2_DEPENDENCIES := $(PROOT)/win32/libssh2.dll.a @@ -163,8 +163,7 @@ LIBSSH2_DLL_SUFFIX ?= libssh2_dll_LIBRARY := $(TARGET)$(LIBSSH2_DLL_SUFFIX).dll libssh2_dll_a_LIBRARY := $(TARGET).dll.a -EXAMPLES := $(PROOT)/example -TARGETS_EXAMPLES := $(patsubst %.c,%.exe,$(strip $(wildcard $(EXAMPLES)/*.c))) +TARGETS_EXAMPLES := $(patsubst %.c,%.exe,$(strip $(wildcard $(PROOT)/example/*.c))) all: lib dll