mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
SDL based host with extram mapped to framebuffer and simple gfx app to accompany it
This commit is contained in:
parent
577aaadacd
commit
e7485d5972
8 changed files with 336 additions and 0 deletions
20
hosts/host-sdl/Makefile
Normal file
20
hosts/host-sdl/Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue