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:
@@ -52,7 +52,7 @@ RCFLAGS += -I$(PROOT)/include
|
|||||||
# examples, tests
|
# examples, tests
|
||||||
|
|
||||||
LIBSSH2_LDFLAGS_BIN += -L$(PROOT)/win32
|
LIBSSH2_LDFLAGS_BIN += -L$(PROOT)/win32
|
||||||
LIBS_BIN := -lssh2
|
LIBS_BIN := -lssh2 -lws2_32
|
||||||
|
|
||||||
ifdef DYN
|
ifdef DYN
|
||||||
libssh2_DEPENDENCIES := $(PROOT)/win32/libssh2.dll.a
|
libssh2_DEPENDENCIES := $(PROOT)/win32/libssh2.dll.a
|
||||||
@@ -163,8 +163,7 @@ LIBSSH2_DLL_SUFFIX ?=
|
|||||||
libssh2_dll_LIBRARY := $(TARGET)$(LIBSSH2_DLL_SUFFIX).dll
|
libssh2_dll_LIBRARY := $(TARGET)$(LIBSSH2_DLL_SUFFIX).dll
|
||||||
libssh2_dll_a_LIBRARY := $(TARGET).dll.a
|
libssh2_dll_a_LIBRARY := $(TARGET).dll.a
|
||||||
|
|
||||||
EXAMPLES := $(PROOT)/example
|
TARGETS_EXAMPLES := $(patsubst %.c,%.exe,$(strip $(wildcard $(PROOT)/example/*.c)))
|
||||||
TARGETS_EXAMPLES := $(patsubst %.c,%.exe,$(strip $(wildcard $(EXAMPLES)/*.c)))
|
|
||||||
|
|
||||||
all: lib dll
|
all: lib dll
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user