xref: /PHP-7.4/win32/build/Makefile.phpize (revision 1ad08256)
14c9fe5a4SAnatol BelskiCC="$(PHP_CL)"
24c9fe5a4SAnatol BelskiLD="$(LINK)"
34c9fe5a4SAnatol BelskiMC="$(MC)"
44c9fe5a4SAnatol BelskiMT="$(MT)"
54c9fe5a4SAnatol Belski
64c9fe5a4SAnatol BelskiPHPSDK_DIR=$(PHP_DIR)
74c9fe5a4SAnatol BelskiPHPLIB=$(PHPSDK_DIR)\lib\$(PHPLIB)
84c9fe5a4SAnatol BelskiLDFLAGS=$(LDFLAGS) /libpath:"$(PHPSDK_DIR)\lib\;$(PHPSDK_DIR)"
94c9fe5a4SAnatol BelskiBUILD_DIR_DEV=$(PHPSDK_DIR)
104c9fe5a4SAnatol Belski
11*075986f2SAnatol Belski!if "$(DEBUGGER)" == "1"
12*075986f2SAnatol BelskiDEBUGGER_CMD=devenv
13*075986f2SAnatol BelskiDEBUGGER_ARGS=/debugexe
14*075986f2SAnatol Belski!else
15*075986f2SAnatol BelskiDEBUGGER_CMD=
16*075986f2SAnatol BelskiDEBUGGER_ARGS=
17*075986f2SAnatol Belski!endif
18*075986f2SAnatol Belski
194c9fe5a4SAnatol Belskiall: $(EXT_TARGETS) $(PECL_TARGETS)
204c9fe5a4SAnatol Belski
214c9fe5a4SAnatol Belskibuild_dirs: $(BUILD_DIR) $(BUILD_DIRS_SUB)
224c9fe5a4SAnatol Belski
234c9fe5a4SAnatol Belskiclean-pecl:
244c9fe5a4SAnatol Belski	@echo Cleaning PECL targets only
254c9fe5a4SAnatol Belski	-rd /s /q $(BUILD_DIR)\pecl
264c9fe5a4SAnatol Belski
274c9fe5a4SAnatol Belskiclean-all:
284c9fe5a4SAnatol Belski	@echo Cleaning standard build dirs
294c9fe5a4SAnatol Belski	cd $(BUILD_DIR)
304c9fe5a4SAnatol Belski	@for %D in (_x $(BUILD_DIRS_SUB)) do @if exist %D @rd /s /q %D
314c9fe5a4SAnatol Belski	-@del /f /q $(BUILD_DIR)\*.res $(BUILD_DIR)\*.manifest $(BUILD_DIR)\*.lib $(BUILD_DIR)\*.ilk $(BUILD_DIR)\*.pdb $(BUILD_DIR)\*.exp $(PHPDEF) $(BUILD_DIR)\*.rc $(BUILD_DIR)\*.dbg $(BUILD_DIR)\*.bin $(BUILD_DIR)\php*.dll $(BUILD_DIR)\php*.exe > NUL
324c9fe5a4SAnatol Belski
334c9fe5a4SAnatol Belskiclean: clean-pecl
344c9fe5a4SAnatol Belski	@echo Cleaning distribution build dirs
354c9fe5a4SAnatol Belski	cd $(BUILD_DIR)
364c9fe5a4SAnatol Belski	@for %D in (_x $(BUILD_DIRS_SUB)) do @if exist %D @del /F /Q %D\*.* > NUL
374c9fe5a4SAnatol Belski	-@del /F /Q $(BUILD_DIR)\*.res $(BUILD_DIR)\*.lib $(BUILD_DIR)\*.ilk $(BUILD_DIR)\*.pdb $(BUILD_DIR)\*.exp $(PHPDEF) $(BUILD_DIR)\php-$(PHP_VERSION_STRING)-Win32.zip $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)-Win32.zip > NUL
384c9fe5a4SAnatol Belski
390f9bf85aSy-uti!if "$(EXT_TARGETS)" == ""
400f9bf85aSy-uti_EXTENSION_DLL=$(PECL_TARGETS)
410f9bf85aSy-uti!else
420f9bf85aSy-uti_EXTENSION_DLL=$(EXT_TARGETS)
430f9bf85aSy-uti!endif
440f9bf85aSy-uti
45d058e309SAnatol Belskitest: set-tmp-env
46*075986f2SAnatol Belski	$(DEBUGGER_CMD) $(DEBUGGER_ARGS) "$(PHP_PREFIX)\php.exe" -d open_basedir= -d output_buffering=0 run-tests.php $(TESTS) -p "$(PHP_PREFIX)\php.exe" -d extension=$(BUILD_DIR)\$(_EXTENSION_DLL)
47*075986f2SAnatol Belski
48*075986f2SAnatol Belskirun: set-tmp-env
49*075986f2SAnatol Belski	$(DEBUGGER_CMD) $(DEBUGGER_ARGS) "$(PHP_PREFIX)\php.exe" -n -d extension=$(BUILD_DIR)\\$(_EXTENSION_DLL) $(ARGS)
500f9bf85aSy-uti
514c9fe5a4SAnatol Belski!if $(MT) == ""
524c9fe5a4SAnatol Belski_VC_MANIFEST_EMBED_EXE=
534c9fe5a4SAnatol Belski_VC_MANIFEST_EMBED_DLL=
544c9fe5a4SAnatol Belski!else
554c9fe5a4SAnatol Belski_VC_MANIFEST_EMBED_EXE= if exist $@.manifest $(MT) -nologo -manifest $@.manifest -outputresource:$@;1
564c9fe5a4SAnatol Belski_VC_MANIFEST_EMBED_DLL= if exist $@.manifest $(MT) -nologo -manifest $@.manifest -outputresource:$@;2
574c9fe5a4SAnatol Belski!endif
584c9fe5a4SAnatol Belski
594c9fe5a4SAnatol Belskiinstall: build-headers  build-bins
60