SDL based host with extram mapped to framebuffer and simple gfx app to accompany it

This commit is contained in:
Toby Jaffey 2025-12-11 23:31:10 +00:00
parent 577aaadacd
commit e7485d5972
8 changed files with 336 additions and 0 deletions

20
hosts/host-sdl/Makefile Normal file
View file

@ -0,0 +1,20 @@
TOPDIR=../..
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LIBS = ${SDL} -lm -lSDL3
else
LIBS = `pkg-config sdl3 --libs --static`
CFLAGS += `pkg-config sdl3 --cflags`
endif
#CFLAGS += -Wall -Werror
CFLAGS += -pedantic -std=c99 -O3
CFLAGS += -DUVM32_MEMORY_SIZE=65536
all:
gcc ${CFLAGS} -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-sdl ${TOPDIR}/uvm32/uvm32.c host-sdl.c ${LIBS}
clean:
rm -f host-sdl