|
|
939702 |
@echo on
|
|
|
939702 |
@dir . > nul
|
|
|
939702 |
|
|
|
939702 |
|
|
|
939702 |
REM override variables either here or from the shell
|
|
|
939702 |
set source_dir=%source_dir%
|
|
|
939702 |
set sysroot=%sysroot%
|
|
|
939702 |
|
|
|
939702 |
|
|
|
939702 |
if not exist bin mkdir bin
|
|
|
939702 |
if not exist lib mkdir lib
|
|
|
939702 |
if not exist src mkdir src
|
|
|
939702 |
if not exist src\exports mkdir src\exports
|
|
|
939702 |
if not exist src\headers mkdir src\headers
|
|
|
939702 |
if not exist src\imports mkdir src\imports
|
|
|
939702 |
if not exist src\internal mkdir src\internal
|
|
|
939702 |
if not exist src\meta mkdir src\meta
|
|
|
939702 |
if not exist src\modules mkdir src\modules
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/exports/pe_enum_image_exports.lo %source_dir%/src/exports/pe_enum_image_exports.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/exports/pe_get_export_symbol_info.lo %source_dir%/src/exports/pe_get_export_symbol_info.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/exports/pe_get_procedure_address.lo %source_dir%/src/exports/pe_get_procedure_address.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_coff_hdr_addr.lo %source_dir%/src/headers/pe_get_image_coff_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_data_dirs_addr.lo %source_dir%/src/headers/pe_get_image_data_dirs_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_dos_hdr_addr.lo %source_dir%/src/headers/pe_get_image_dos_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_entry_point_addr.lo %source_dir%/src/headers/pe_get_image_entry_point_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_opt_hdr_addr.lo %source_dir%/src/headers/pe_get_image_opt_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_section_tbl_addr.lo %source_dir%/src/headers/pe_get_image_section_tbl_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_special_hdr_addr.lo %source_dir%/src/headers/pe_get_image_special_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/imports/pe_enum_image_import_hdrs.lo %source_dir%/src/imports/pe_enum_image_import_hdrs.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/meta/pe_get_image_stack_heap_info.lo %source_dir%/src/meta/pe_get_image_stack_heap_info.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/meta/pe_get_symbol_module_info.lo %source_dir%/src/meta/pe_get_symbol_module_info.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/meta/pe_get_symbol_name.lo %source_dir%/src/meta/pe_get_symbol_name.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_enum_modules.lo %source_dir%/src/modules/pe_enum_modules.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_get_kernel32_module_handle.lo %source_dir%/src/modules/pe_get_kernel32_module_handle.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_get_module_handle.lo %source_dir%/src/modules/pe_get_module_handle.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_get_ntdll_module_handle.lo %source_dir%/src/modules/pe_get_ntdll_module_handle.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/internal/pe_entry_point.lo %source_dir%/src/internal/pe_entry_point.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_EXPORT -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/exports/pe_enum_image_exports.o %source_dir%/src/exports/pe_enum_image_exports.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/exports/pe_get_export_symbol_info.o %source_dir%/src/exports/pe_get_export_symbol_info.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/exports/pe_get_procedure_address.o %source_dir%/src/exports/pe_get_procedure_address.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_coff_hdr_addr.o %source_dir%/src/headers/pe_get_image_coff_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_data_dirs_addr.o %source_dir%/src/headers/pe_get_image_data_dirs_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_dos_hdr_addr.o %source_dir%/src/headers/pe_get_image_dos_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_entry_point_addr.o %source_dir%/src/headers/pe_get_image_entry_point_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_opt_hdr_addr.o %source_dir%/src/headers/pe_get_image_opt_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_section_tbl_addr.o %source_dir%/src/headers/pe_get_image_section_tbl_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/headers/pe_get_image_special_hdr_addr.o %source_dir%/src/headers/pe_get_image_special_hdr_addr.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/imports/pe_enum_image_import_hdrs.o %source_dir%/src/imports/pe_enum_image_import_hdrs.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/meta/pe_get_image_stack_heap_info.o %source_dir%/src/meta/pe_get_image_stack_heap_info.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/meta/pe_get_symbol_module_info.o %source_dir%/src/meta/pe_get_symbol_module_info.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/meta/pe_get_symbol_name.o %source_dir%/src/meta/pe_get_symbol_name.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_enum_modules.o %source_dir%/src/modules/pe_enum_modules.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_get_kernel32_module_handle.o %source_dir%/src/modules/pe_get_kernel32_module_handle.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_get_module_handle.o %source_dir%/src/modules/pe_get_module_handle.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/modules/pe_get_ntdll_module_handle.o %source_dir%/src/modules/pe_get_ntdll_module_handle.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
cl /nologo -c /Fo:src/internal/pe_entry_point.o %source_dir%/src/internal/pe_entry_point.c /Zi /Od -D_MIDIPIX_FREESTANDING -D__NT64 -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ /X -I%source_dir%/src/internal -I%source_dir%/include -Ibuild -DPE_TAG_VER_MAJOR=0 -DPE_TAG_VER_MINOR=0 -DPE_TAG_VER_PATCH=0 /Wall /WX /Wall -DPE_STATIC -I%sysroot%/include
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
|
|
|
939702 |
@echo.
|
|
|
939702 |
@echo clbuild: successfully built: shared-objs static-objs app-objs.
|
|
|
939702 |
@echo.
|
|
|
939702 |
|
|
|
939702 |
lib /out:lib/libpemagine.a src/exports/pe_enum_image_exports.o src/exports/pe_get_export_symbol_info.o src/exports/pe_get_procedure_address.o src/headers/pe_get_image_coff_hdr_addr.o src/headers/pe_get_image_data_dirs_addr.o src/headers/pe_get_image_dos_hdr_addr.o src/headers/pe_get_image_entry_point_addr.o src/headers/pe_get_image_opt_hdr_addr.o src/headers/pe_get_image_section_tbl_addr.o src/headers/pe_get_image_special_hdr_addr.o src/imports/pe_enum_image_import_hdrs.o src/meta/pe_get_image_stack_heap_info.o src/meta/pe_get_symbol_module_info.o src/meta/pe_get_symbol_name.o src/modules/pe_enum_modules.o src/modules/pe_get_kernel32_module_handle.o src/modules/pe_get_module_handle.o src/modules/pe_get_ntdll_module_handle.o src/internal/pe_entry_point.o /nologo
|
|
|
939702 |
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
|
|
|
939702 |
@echo.
|
|
|
939702 |
@echo clbuild: successfully created: static archive.
|
|
|
939702 |
@echo.
|
|
|
939702 |
|
|
|
939702 |
link /dll /nologo /out:lib/libpemagine.so src/exports/pe_enum_image_exports.lo src/exports/pe_get_export_symbol_info.lo src/exports/pe_get_procedure_address.lo src/headers/pe_get_image_coff_hdr_addr.lo src/headers/pe_get_image_data_dirs_addr.lo src/headers/pe_get_image_dos_hdr_addr.lo src/headers/pe_get_image_entry_point_addr.lo src/headers/pe_get_image_opt_hdr_addr.lo src/headers/pe_get_image_section_tbl_addr.lo src/headers/pe_get_image_special_hdr_addr.lo src/imports/pe_enum_image_import_hdrs.lo src/meta/pe_get_image_stack_heap_info.lo src/meta/pe_get_symbol_module_info.lo src/meta/pe_get_symbol_name.lo src/modules/pe_enum_modules.lo src/modules/pe_get_kernel32_module_handle.lo src/modules/pe_get_module_handle.lo src/modules/pe_get_ntdll_module_handle.lo src/internal/pe_entry_point.lo /libpath:lib /subsystem:windows /nodefaultlib /entry:pe_entry_point
|
|
|
939702 |
|
|
|
939702 |
@if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
939702 |
|
|
|
939702 |
|
|
|
939702 |
@echo.
|
|
|
939702 |
@echo clbuild: successfully linked: shared library.
|
|
|
939702 |
@echo.
|
|
|
939702 |
|
|
|
939702 |
|
|
|
939702 |
@echo.
|
|
|
939702 |
@echo yay.
|
|
|
939702 |
@echo.
|
|
|
939702 |
|