CORE_PKGS += libc libm

DEFINES += -O2 -DNDEBUG
DEFINES += -DWANT_GRIFFIN

include upstream/Makefile.common

DEFINES += -DSOUND_QUALITY=0 -DPATH_MAX=1024 -DFCEU_VERSION_NUMERIC=9813 -DINLINE=inline -DPSS_STYLE=1
DEFINES += -Wno-write-strings

: 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)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>
