CORE_PKGS += libc libm
NO_UNDEFINED =
	# __cxa_...

EXTRACTDIR = $(CORE_DIR)/extract-auto
include upstream/Makefile.common

DEFINES += -O2 -DNDEBUG
DEFINES += -DHAVE_INTTYPES_H
DEFINES += -DINLINE="inline"
CFLAGS += -std=gnu11
CXXFLAGS += -fno-rtti -fno-exceptions

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

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

: $(TUP_CWD)/pkg.dhall |> !render_runtime |>
: |> !pkg |>
