CORE_PKGS += libc libm

LIBRETRO_COMM_DIR =

DEFINES += -O2 -DNDEBUG
DEFINES += -DINLINE=inline

include upstream/libretroBuildSystem/build/Makefile.common
include upstream/src/makefile.all
SOURCES_C += $(EMU_SOURCES_C)

DEFINES += $(COREDEFINES)
DEFINES += $(INCFLAGS)

CFLAGS += -Wall -W -Wno-unused-parameter -Wno-sign-compare -Wno-uninitialized
CFLAGS += -fomit-frame-pointer

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

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

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

: |> !bin |>
: |> !pkg |>
