xref: /PHP-5.6/win32/build/Makefile.phpize (revision 72ac8cf5)
1CC="$(PHP_CL)"
2LD="$(LINK)"
3MC="$(MC)"
4MT="$(MT)"
5
6PHPSDK_DIR=$(PHP_DIR)
7PHPLIB=$(PHPSDK_DIR)\lib\$(PHPLIB)
8LDFLAGS=$(LDFLAGS) /libpath:"$(PHPSDK_DIR)\lib\;$(PHPSDK_DIR)"
9BUILD_DIR_DEV=$(PHPSDK_DIR)
10
11all: $(EXT_TARGETS) $(PECL_TARGETS)
12
13build_dirs: $(BUILD_DIR) $(BUILD_DIRS_SUB)
14
15clean-pecl:
16	@echo Cleaning PECL targets only
17	-rd /s /q $(BUILD_DIR)\pecl
18
19clean-all:
20	@echo Cleaning standard build dirs
21	@for %D in (_x $(BUILD_DIRS_SUB)) do @if exist %D @rd /s /q %D
22	-@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
23
24clean: clean-pecl
25	@echo Cleaning distribution build dirs
26	@for %D in (_x $(BUILD_DIRS_SUB)) do @if exist %D @del /F /Q %D\*.* > NUL
27	-@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
28
29!if "$(EXT_TARGETS)" == ""
30_EXTENSION_DLL=$(PECL_TARGETS)
31!else
32_EXTENSION_DLL=$(EXT_TARGETS)
33!endif
34
35test:
36	"$(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)
37
38!if $(MT) == ""
39_VC_MANIFEST_EMBED_EXE=
40_VC_MANIFEST_EMBED_DLL=
41!else
42_VC_MANIFEST_EMBED_EXE= if exist $@.manifest $(MT) -nologo -manifest $@.manifest -outputresource:$@;1
43_VC_MANIFEST_EMBED_DLL= if exist $@.manifest $(MT) -nologo -manifest $@.manifest -outputresource:$@;2
44!endif
45
46install: build-headers  build-bins
47
48