2022-06-03 02:02:19 +00:00
|
|
|
@echo off
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
|
2022-06-03 09:31:16 +00:00
|
|
|
set PLATFORM=win32
|
2022-06-03 02:02:19 +00:00
|
|
|
set CIABATTA_OPTIONS=-Iinc -g -gcodeview -nodefaultlibs -D_CRT_SECURE_NO_WARNINGS
|
|
|
|
|
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
|
2022-06-03 02:02:19 +00:00
|
|
|
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%
|