mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
20 lines
445 B
Makefile
20 lines
445 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
|
|
CFLAGS += -pedantic -std=c99 -O3
|
|
CFLAGS += -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
|