summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-13 12:03:04 -0500
committermidipix <writeonce@midipix.org>2016-12-13 12:54:51 -0500
commit939702ec52f419a7e1cb5aed7c6abf502acfbaf1 (patch)
treef1d74567fb3d9deeeaeac7dbee7723c698a84b4a /project
parentca8f8a73686f5f46bc9fe407ecd25e536e1cf88e (diff)
downloadpemagine-939702ec52f419a7e1cb5aed7c6abf502acfbaf1.tar.bz2
pemagine-939702ec52f419a7e1cb5aed7c6abf502acfbaf1.tar.xz
project: clbuild.bat: initial check-in (generated via: make clbuild-bat).
Diffstat (limited to 'project')
-rw-r--r--project/clbuild.bat202
1 files changed, 202 insertions, 0 deletions
diff --git a/project/clbuild.bat b/project/clbuild.bat
new file mode 100644
index 0000000..16649bb
--- /dev/null
+++ b/project/clbuild.bat
@@ -0,0 +1,202 @@
+@echo on
+@dir . > nul
+
+
+REM override variables either here or from the shell
+set source_dir=%source_dir%
+set sysroot=%sysroot%
+
+
+if not exist bin mkdir bin
+if not exist lib mkdir lib
+if not exist src mkdir src
+if not exist src\exports mkdir src\exports
+if not exist src\headers mkdir src\headers
+if not exist src\imports mkdir src\imports
+if not exist src\internal mkdir src\internal
+if not exist src\meta mkdir src\meta
+if not exist src\modules mkdir src\modules
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+
+@echo.
+@echo clbuild: successfully built: shared-objs static-objs app-objs.
+@echo.
+
+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
+
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+
+@echo.
+@echo clbuild: successfully created: static archive.
+@echo.
+
+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
+
+@if %errorlevel% neq 0 exit /b %errorlevel%
+
+
+@echo.
+@echo clbuild: successfully linked: shared library.
+@echo.
+
+
+@echo.
+@echo yay.
+@echo.
+