build.bat (627B)
1 @echo off 2 3 set CFLAGS= ^ 4 -std=c11 ^ 5 -g ^ 6 -nostdlib ^ 7 -D_CRT_SECURE_NO_WARNINGS ^ 8 -Ilib ^ 9 -Ilib/glfw_windows/include ^ 10 -Wall ^ 11 -Wextra ^ 12 -Wshadow ^ 13 -Wno-unused-parameter ^ 14 -Wno-unused-function ^ 15 -Wno-missing-braces 16 17 set LDFLAGS= ^ 18 -luser32 ^ 19 -lgdi32 ^ 20 -lwinmm ^ 21 -lopengl32 ^ 22 -lshell32 ^ 23 -llib/glfw_windows/lib-vc2019/glfw3.lib 24 25 set RELCFLAGS=-O2 -Os 26 27 IF NOT EXIST ".\out" mkdir ".\out" 28 IF NOT EXIST ".\out\release" mkdir ".\out\release" 29 30 clang ^ 31 %CFLAGS% ^ 32 %RELCFLAGS% ^ 33 src\platform_windows.c ^ 34 -o .\out\release\a-game.exe ^ 35 %LDFLAGS%