uvm32/hosts/host-sdl/Makefile
Toby Jaffey adec69e1d7 Attempt to enable RV32 C extension. c.lw and c.sw are definitely broken somehow wrt MMIO memory.
Examples built using C extensions, many fail in strange ways
2025-12-17 15:43:15 +00:00

20 lines
493 B
Makefile

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 -Wno-gnu-binary-literal
CFLAGS += -pedantic -std=c99 -O0 -g
CFLAGS += -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=$(shell echo "1024 * 1024 * 8" | bc)
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