1ARG_ENABLE('phpdbg', 'Build phpdbg', 'no'); 2ARG_ENABLE('phpdbgs', 'Build phpdbg shared', 'no'); 3ARG_ENABLE('phpdbg-webhelper', 'Build phpdbg webhelper', 'yes'); 4 5PHPDBG_SOURCES='phpdbg.c phpdbg_prompt.c phpdbg_cmd.c phpdbg_info.c phpdbg_help.c phpdbg_break.c ' + 6 'phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c ' + 7 'phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_win.c phpdbg_btree.c '+ 8 'phpdbg_parser.c phpdbg_lexer.c phpdbg_sigsafe.c phpdbg_wait.c phpdbg_io.c ' + 9 'phpdbg_sigio_win32.c phpdbg_eol.c phpdbg_out.c'; 10PHPDBG_DLL='php' + PHP_VERSION + 'phpdbg.dll'; 11PHPDBG_EXE='phpdbg.exe'; 12PHPDBG_CFLAGS='/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1'; 13 14var PHP_PHPDBG_PGO = false; 15var PHP_PHPDBG_WEBHELPER_PGO = false; 16var PHP_PHPDBGS_PGO = false; 17 18if (PHP_PHPDBG == "yes") { 19 SAPI('phpdbg', PHPDBG_SOURCES, PHPDBG_EXE, PHPDBG_CFLAGS); 20 ADD_FLAG("LIBS_PHPDBG", "ws2_32.lib user32.lib"); 21 ADD_FLAG("CFLAGS_PHPDBG", "/D YY_NO_UNISTD_H"); 22 ADD_FLAG("LDFLAGS_PHPDBG", "/stack:8388608"); 23 24 if (PHP_PHPDBG_WEBHELPER == "yes") { 25 EXTENSION('phpdbg_webhelper', 'phpdbg_rinit_hook.c phpdbg_webdata_transfer.c'); 26 } 27} 28 29if (PHP_PHPDBGS == "yes") { 30 SAPI('phpdbgs', PHPDBG_SOURCES, PHPDBG_DLL, '/D PHP_PHPDBG_EXPORTS /I win32'); 31 ADD_FLAG("LIBS_PHPDBGS", "ws2_32.lib user32.lib"); 32 ADD_FLAG("CFLAGS_PHPDBGS", "/D YY_NO_UNISTD_H"); 33} 34