# need to redirect, since INSTALL is a file in the root...
install: really-install install-sdk
-build-lib:
+build-lib: build-ext-libs
@if not exist $(BUILD_DIR_DEV)\lib mkdir $(BUILD_DIR_DEV)\lib >nul
@copy $(BUILD_DIR)\$(PHPLIB) $(BUILD_DIR_DEV)\lib /y >nul
for (var i in extensions_enabled) {\r
var lib = "php_" + extensions_enabled[i][0] + ".lib";\r
var dll = "php_" + extensions_enabled[i][0] + ".dll";\r
- MF.WriteLine(" @copy $(BUILD_DIR)\\" + lib + " $(BUILD_DIR_DEV)\\lib\\" + lib);\r
- MF.WriteLine(" @copy $(BUILD_DIR)\\" + dll + " $(PHP_PREFIX)\\" + dll);\r
+ MF.WriteLine(" @copy $(BUILD_DIR)\\" + lib + " $(BUILD_DIR_DEV)\\lib");\r
+ MF.WriteLine(" @copy $(BUILD_DIR)\\" + dll + " $(PHP_PREFIX)");\r
+ }\r
+ } else {\r
+ MF.WriteBlankLines(1);\r
+ MF.WriteLine("build-ext-libs:");\r
+ for (var i in extensions_enabled) {\r
+ var lib = "php_" + extensions_enabled[i][0] + ".lib";\r
+\r
+ if ('shared' == extensions_enabled[i][1]) {\r
+ MF.WriteLine(" @copy $(BUILD_DIR)\\" + lib + " $(BUILD_DIR_DEV)\\lib");\r
+ }\r
}\r
}\r
TF.Close();\r