ciabatta/bake.cmd

21 lines
529 B
Batchfile
Raw Normal View History

@echo off
setlocal enabledelayedexpansion
2022-06-03 09:31:16 +00:00
set PLATFORM=win32
set CIABATTA_OPTIONS=-Iinc -g -gcodeview -nodefaultlibs -D_CRT_SECURE_NO_WARNINGS
2022-06-06 00:16:44 +00:00
del ciabatta.lib
2022-06-03 09:31:16 +00:00
for /R code %%F in (*.c) do (
echo %%F
clang -c -o build\%%~nF.obj %%F %CIABATTA_OPTIONS%
)
for /R platform\%PLATFORM% %%F in (*.c) do (
echo %%F
clang -c -o build\%%~nF.obj %%F %CIABATTA_OPTIONS%
)
llvm-ar rc ciabatta.lib build\*.obj
clang test\test.c ciabatta.lib -lkernel32 -luser32 -lshell32 -nostdlib %CIABATTA_OPTIONS%
2022-06-06 00:16:44 +00:00
del build\*.obj