blob: ff8184c741cecbb1837a8fa3ddb02f14fc145022 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# **********************************************************************
#
# Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
top_srcdir = ..\..
LIBNAME = IcePy$(PYLIBSUFFIX).lib
DLLNAME = $(top_srcdir)\python\IcePy$(PYLIBSUFFIX).pyd
TARGETS = $(LIBNAME) $(DLLNAME)
OBJS = .\BatchRequestInterceptor.obj \
.\Communicator.obj \
.\Connection.obj \
.\ConnectionInfo.obj \
.\Current.obj \
.\Endpoint.obj \
.\EndpointInfo.obj \
.\ImplicitContext.obj \
.\Init.obj \
.\Logger.obj \
.\ObjectAdapter.obj \
.\ObjectFactory.obj \
.\Operation.obj \
.\Properties.obj \
.\PropertiesAdmin.obj \
.\Proxy.obj \
.\Slice.obj \
.\Thread.obj \
.\Types.obj \
.\Util.obj
#
# Get Make.common.rules.mak to determine CPP_COMPILER by setting it to 'auto'
#
CPP_COMPILER=auto
!include $(top_srcdir)\config\Make.rules.mak
!if ([$(PYTHON_HOME)\python.exe -c "import sys;print(sys.version_info >= (3, 5))" | findstr "True" > nul] == 0)
REQUIRED_COMPILER = VC140
!else
REQUIRED_COMPILER = VC100
!endif
#
# Ensure we are using the right compiler
#
!if "$(CPP_COMPILER)" != "$(REQUIRED_COMPILER)"
!error Invalid CPP_COMPILER setting: $(CPP_COMPILER). Must be set to $(REQUIRED_COMPILER).
!endif
CPPFLAGS = -I. $(CPPFLAGS) $(ICE_CPPFLAGS) $(PYTHON_CPPFLAGS) -DWIN32_LEAN_AND_MEAN
LINKWITH = $(ICE_LIBS) $(PYTHON_LIBS) $(CXXLIBS)
$(LIBNAME): $(DLLNAME)
$(DLLNAME): $(OBJS) IcePy.res
$(LINK) $(PYTHON_LDFLAGS) $(ICE_LDFLAGS) $(LD_DLLFLAGS) $(PDBFLAGS) $(OBJS) \
$(PREOUT)$@ $(PRELIBS)$(LINKWITH) IcePy.res
move $(@:.pyd=.lib) $(LIBNAME)
@if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
$(MT) -nologo -manifest $@.manifest -outputresource:$@;#2 && del /q $@.manifest
@if exist $(@:.pyd=.exp) del /q $(@:.pyd=.exp)
clean::
-del /q IcePy.res
install:: all
copy $(DLLNAME) "$(install_libdir)"
|