mirror of
https://github.com/Alvin-Zilverstand/bob16.git
synced 2026-11-21 12:52:59 +01:00
54 lines
2.2 KiB
Makefile
54 lines
2.2 KiB
Makefile
CC ?= gcc
|
|
BOB64_CC ?= x86_64-w64-mingw32-gcc
|
|
CFLAGS ?= -std=gnu11 -O2 -Wall -Wextra -Werror
|
|
.PHONY: all c-os test bob64 bob64-test bob64-handoff bob64-handoff-test bob64-handoff-storage-test bob64-handoff-storage-active-test bob64cc bob64-app-test
|
|
|
|
all:
|
|
$(CC) $(CFLAGS) tools/build.c -o build-tool
|
|
./build-tool
|
|
|
|
c-os: all
|
|
./bob --boot build/kernel.b16
|
|
|
|
test: all
|
|
./build-tool --test
|
|
|
|
# x86-64 UEFI build, isolated from the bob16/bob32 emulator targets.
|
|
bob64:
|
|
$(CC) $(CFLAGS) tools/build.c -o build-tool
|
|
BOB64_CC="$(BOB64_CC)" ./build-tool --bob64
|
|
|
|
bob64-test: bob64
|
|
BOB64_CC="$(BOB64_CC)" ./build-tool --bob64-test
|
|
|
|
# Opt-in destructive-to-firmware-services kernel handoff build.
|
|
bob64-handoff:
|
|
$(CC) $(CFLAGS) tools/build.c -o build-tool
|
|
BOB64_CC="$(BOB64_CC)" ./build-tool --bob64-handoff
|
|
|
|
bob64-handoff-test:
|
|
$(CC) $(CFLAGS) tools/build.c -o build-tool
|
|
BOB64_CC="$(BOB64_CC)" ./build-tool --bob64-handoff-test
|
|
|
|
# Isolated opt-in image that writes a patterned sector on its temporary QEMU test disk.
|
|
bob64-handoff-storage-test:
|
|
$(CC) $(CFLAGS) tools/build.c -o build-tool
|
|
BOB64_CC="$(BOB64_CC)" ./build-tool --bob64-handoff-storage-test
|
|
|
|
# Isolated test image that pauses with an xHCI storage transfer outstanding.
|
|
bob64-handoff-storage-active-test:
|
|
$(CC) $(CFLAGS) tools/build.c -o build-tool
|
|
BOB64_CC="$(BOB64_CC)" ./build-tool --bob64-handoff-storage-active-test
|
|
|
|
bob64cc:
|
|
$(CC) $(CFLAGS) tools/bob64cc.c -o bob64cc
|
|
|
|
bob64-app-test: bob64-test bob64cc
|
|
BOB64_CC="$(BOB64_CC)" ./bob64cc apps/bob64_smoke.c build/bob64-app/smoke.b64e
|
|
BOB64_CC="$(BOB64_CC)" ./bob64cc apps/bob64_nested_smoke.c build/bob64-app/nested-smoke.b64e
|
|
BOB64_CC="$(BOB64_CC)" ./bob64cc apps/bob64_echo.c build/bob64-app/echo.b64e
|
|
BOB64_CC="$(BOB64_CC)" ./bob64cc apps/bob64_ls.c build/bob64-app/ls.b64e
|
|
BOB64_CC="$(BOB64_CC)" ./bob64cc apps/bob64_cat.c build/bob64-app/cat.b64e
|
|
BOB64_CC="$(BOB64_CC)" ./bob64cc apps/bob64_notes.c build/bob64-app/notes.b64e
|
|
./build/test_bob64 build/bob64/EFI/BOOT/BOOTX64.EFI build/bob64-app/smoke.b64e build/bob64-app/display.b64e build/bob64-app/gui.b64e build/bob64-app/nested-smoke.b64e build/bob64-app/echo.b64e build/bob64-app/ls.b64e build/bob64-app/cat.b64e build/bob64-app/notes.b64e
|