xref: /PHP-5.4/win32/build/Makefile.phpize (revision f0a1e410)
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 $(MT) == ""
30_VC_MANIFEST_EMBED_EXE=
31_VC_MANIFEST_EMBED_DLL=
32!else
33_VC_MANIFEST_EMBED_EXE= if exist $@.manifest $(MT) -nologo -manifest $@.manifest -outputresource:$@;1
34_VC_MANIFEST_EMBED_DLL= if exist $@.manifest $(MT) -nologo -manifest $@.manifest -outputresource:$@;2
35!endif
36
37install: build-headers  build-bins
38
39