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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
# **********************************************************************
#
# Copyright (c) 2003-2009 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.
#
# **********************************************************************
#
# Select an installation base directory. The directory will be created
# if it does not exist.
#
prefix = C:\Ice-$(VERSION)
#
# Define OPTIMIZE as yes if you want to build with optimization.
# Otherwise the Ice extension is built with debug information.
#
OPTIMIZE = yes
#
# Specify your C++ compiler. Supported values are:
# VC60
#
!if "$(CPP_COMPILER)" == ""
CPP_COMPILER = VC60
!endif
#
# Set PHP_HOME to your PHP source directory.
#
!if "$(PHP_HOME)" == ""
PHP_HOME = C:\php-5.2.6
!endif
#
# Set PHP_BIN_HOME to your PHP binary installation directory.
#
!if "$(PHP_BIN_HOME)" == ""
PHP_BIN_HOME = C:\Program Files\PHP
!endif
#
# STLPort is required if using MSVC++ 6.0. Change if STLPort
# is located in a different location.
#
!if "$(CPP_COMPILER)" == "VC60" && "$(STLPORT_HOME)" == ""
!if "$(THIRDPARTY_HOME)" != ""
STLPORT_HOME = $(THIRDPARTY_HOME)
!else
STLPORT_HOME = C:\Ice-$(VERSION)-ThirdParty-VC60
!endif
!endif
# ----------------------------------------------------------------------
# Don't change anything below this line!
# ----------------------------------------------------------------------
#
# Common definitions
#
ice_language = php
ice_require_cpp = yes
slice_translator = slice2cpp.exe
!if exist ($(top_srcdir)\..\config\Make.common.rules.mak)
!include $(top_srcdir)\..\config\Make.common.rules.mak
!else
!include $(top_srcdir)\config\Make.common.rules.mak
!endif
bindir = $(top_srcdir)\bin
libdir = $(top_srcdir)\lib
install_bindir = $(prefix)\bin
!if "$(CPP_COMPILER)" != "VC60"
!error Invalid setting for CPP_COMPILER: $(CPP_COMPILER)
!endif
!include $(top_srcdir)\..\cpp\config\Make.rules.msvc
!if "$(ice_src_dist)" != ""
!if "$(STLPORT_HOME)" != ""
CPPFLAGS = -I"$(STLPORT_HOME)\include\stlport" $(CPPFLAGS)
LDFLAGS = /LIBPATH:"$(STLPORT_HOME)\lib" $(LDFLAGS)
!endif
!else
!if "$(CPP_COMPILER)" == "VC60"
CPPFLAGS = -I"$(ice_dir)\include\stlport" $(CPPFLAGS)
!endif
!endif
!if "$(OPTIMIZE)" != "yes"
LIBSUFFIX = $(LIBSUFFIX)d
!endif
ICE_LIBS = ice$(LIBSUFFIX).lib iceutil$(LIBSUFFIX).lib slice$(LIBSUFFIX).lib
!if "$(ice_src_dist)" != ""
ICE_CPPFLAGS = -I"$(ice_cpp_dir)\include"
ICE_LDFLAGS = /LIBPATH:"$(ice_cpp_dir)\lib"
!else
ICE_CPPFLAGS = -I"$(ice_dir)\include"
ICE_LDFLAGS = /LIBPATH:"$(ice_dir)\lib"
!endif
slicedir = $(ice_dir)\slice
!if "$(OPTIMIZE)" != "yes"
PHP_LDFLAGS = /LIBPATH:"$(PHP_BIN_HOME)"
PHP_LIBS = php5ts_debug.lib
PHP_ZEND_DEBUG = 1
!else
PHP_LDFLAGS = /LIBPATH:"$(PHP_BIN_HOME)\dev"
PHP_LIBS = php5ts.lib
PHP_ZEND_DEBUG = 0
!endif
PHP_CPPFLAGS = -I"$(PHP_HOME)" -I"$(PHP_HOME)\main" -I"$(PHP_HOME)\TSRM" -I"$(PHP_HOME)\Zend" -DPHP_WIN32 -DZEND_WIN32 -DZEND_DEBUG=$(PHP_ZEND_DEBUG) -DZTS -DWIN32
ICECPPFLAGS = -I$(slicedir)
EVERYTHING = all clean install
.SUFFIXES:
.SUFFIXES: .cpp .obj .rb
all:: $(SRCS)
.cpp.obj::
$(CXX) /c $(CPPFLAGS) $(CXXFLAGS) $<
clean::
del /q $(TARGETS) *.obj *.bak
all:: $(SRCS) $(TARGETS)
install::
|