CORE_PKGS += libc

DEFINES += -O2 -DNDEBUG
DEFINES += \
	-Wall \
	-Wno-sign-compare \
	-Wno-unused-variable \
	-Wno-unused-function \
	-Wno-uninitialized \
	-Wno-strict-aliasing \
	-Wno-overflow \
	-fno-strict-overflow \

include upstream/Makefile.common

DEFINES += $(FLAGS)

: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}

: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !collect_bin |>
: |> !bin |>

: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
