1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

win32/GNUmakefile: fixups to previous commit [ci skip]

- `-lws2_32` is necessary when building examples.

- drop a temporary variable.

Follow-up to d245c66cc0
This commit is contained in:
Viktor Szakats
2023-04-01 11:52:53 +00:00
parent b66d7317ca
commit 618c0e68ac

View File

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