-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
34 lines (29 loc) · 1.16 KB
/
Copy pathbuild.bat
File metadata and controls
34 lines (29 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
echo Building console version...
if not exist build mkdir build
if not exist build\obj mkdir build\obj
REM Try gcc in PATH first, then try common MinGW location
gcc --version >nul 2>&1
if %errorlevel% equ 0 (
set GCC=gcc
) else (
if exist "C:\mingw64\bin\gcc.exe" (
set GCC=C:\mingw64\bin\gcc
) else (
echo GCC not found! Please install MinGW or add GCC to PATH.
pause
exit /b 1
)
)
%GCC% -Wall -Wextra -std=c99 -c src/main.c -o build/obj/main.o
%GCC% -Wall -Wextra -std=c99 -c src/utils.c -o build/obj/utils.o
%GCC% -Wall -Wextra -std=c99 -c src/startup.c -o build/obj/startup.o
%GCC% -Wall -Wextra -std=c99 -c src/admin.c -o build/obj/admin.o
%GCC% -Wall -Wextra -std=c99 -c src/notifications.c -o build/obj/notifications.o
%GCC% -Wall -Wextra -std=c99 -c src/orders.c -o build/obj/orders.o
%GCC% -Wall -Wextra -std=c99 -c src/client.c -o build/obj/client.o
%GCC% -Wall -Wextra -std=c99 -c src/client_operations.c -o build/obj/client_operations.o
%GCC% -Wall -Wextra -std=c99 -c src/order_system.c -o build/obj/order_system.o
%GCC% build/obj/*.o -o build/pizza_system.exe
echo Build complete! Run: build/pizza_system.exe
pause