blob: 6951dc030f567b36f310048b0abaeb6a4ca5e71f (
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
|
# **********************************************************************
#
# 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 = php_ice$(LIBSUFFIX).lib
DLLNAME = $(libdir)\php_ice$(LIBSUFFIX).dll
TARGETS = $(LIBNAME) $(DLLNAME)
OBJS = .\Communicator.obj \
.\Connection.obj \
.\Endpoint.obj \
.\Init.obj \
.\Logger.obj \
.\Operation.obj \
.\Properties.obj \
.\Proxy.obj \
.\Types.obj \
.\Util.obj
!include $(top_srcdir)\config\Make.rules.mak.php
CPPFLAGS = -I. -I.. $(CPPFLAGS) $(ICE_CPPFLAGS) $(PHP_CPPFLAGS) -DZEND_WIN32_KEEP_INLINE
!if "$(ARCH)" == "x86"
CPPFLAGS = $(CPPFLAGS) -D_USE_32BIT_TIME_T
!endif
!if "$(OPTIMIZE)" != "yes"
PDBFLAGS = /pdb:$(LIBNAME:.lib=.pdb)
!endif
LINKWITH = $(ICE_LIBS) $(PHP_LIBS) $(CXXLIBS) icediscovery$(LIBSUFFIX).lib icelocatordiscovery$(LIBSUFFIX).lib
$(LIBNAME): $(DLLNAME)
$(DLLNAME): $(OBJS) IcePHP.res
$(LINK) $(ICE_LDFLAGS) $(PHP_LDFLAGS) $(LD_DLLFLAGS) $(PDBFLAGS) $(OBJS) \
$(PREOUT)$(DLLNAME) $(PRELIBS)$(LINKWITH) IcePHP.res
move $(DLLNAME:.dll=.lib) $(LIBNAME)
clean::
-del /q IcePHP.res
install:: all
copy $(DLLNAME) "$(install_libdir)"
|