summaryrefslogtreecommitdiff
path: root/libs/libssh2/src/NMakefile
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-08 13:53:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-08 13:53:20 +0300
commit9e3fe90d27add4dbca66c534e3a557502192d9bc (patch)
tree2b153bcb23cefe334415546e4043d5c8bc88377e /libs/libssh2/src/NMakefile
parenta41c3238e5dadf27751c5b0e50a5dbe6c52b3804 (diff)
libssh2 added to Miranda to support SFTP transfers in libcurl
Diffstat (limited to 'libs/libssh2/src/NMakefile')
-rw-r--r--libs/libssh2/src/NMakefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/libs/libssh2/src/NMakefile b/libs/libssh2/src/NMakefile
new file mode 100644
index 0000000000..0c4853f1df
--- /dev/null
+++ b/libs/libssh2/src/NMakefile
@@ -0,0 +1,30 @@
+!include "win32/config.mk"
+
+!include "win32/objects.mk"
+
+CFLAGS=$(CFLAGS)
+
+AR = lib
+ARFLAGS = -nologo /LTCG
+
+RESOURCE=$(INTDIR)\libssh2.res
+DLL=libssh2$(SUFFIX).dll
+STATICLIB=$(INTDIR)\libssh2.lib
+
+!if "$(BUILD_STATIC_LIB)" == ""
+all: $(DLL)
+!else
+all: $(STATICLIB)
+!endif
+
+$(DLL): $(OBJECTS) $(RESOURCE)
+ $(CC) -o $(DLL) $(DLLFLAGS) $(OBJECTS) $(RESOURCE) $(LIBS)
+
+$(STATICLIB): $(OBJECTS)
+ $(AR) $(ARFLAGS) -out:$@ $(OBJECTS)
+
+$(RESOURCE): win32\libssh2.rc
+ $(RC) $(RCFLAGS) /Fo"$@" $?
+
+!include "win32/rules.mk"
+