summaryrefslogtreecommitdiff
path: root/libs/libssh2/src/NMakefile
blob: 0c4853f1df82e25c1f13d22a455e7f37e5df9ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"