31 lines
914 B
Plaintext
31 lines
914 B
Plaintext
CORE_PKGS += stdcxx libm
|
|
NO_UNDEFINED =
|
|
# Uses Genode API to create secondary stack
|
|
|
|
WITH_DYNAREC = @(TUP_ARCH)
|
|
# TODO: will not configure correctly for every possible TUP_ARCH
|
|
|
|
include upstream/Makefile.common
|
|
|
|
SOURCES_CXX += $(CORE_DIR)/libretro-common/libco/genode.cpp
|
|
|
|
GIT_VERSION = `git describe --always`
|
|
|
|
CFLAGS += -O2 -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\" -D__GENODE__
|
|
CFLAGS += $(COMMONFLAGS)
|
|
|
|
CXXFLAGS += -DHAVE_MMAP
|
|
# Use anonymous mmap to allocate executable memory pages
|
|
|
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
|
|
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
|
: {core} |> !publish_core |> {binary}
|
|
|
|
: $(TUP_CWD)/archives | {core} |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/runtime | {core} |> !publish_core_runtime |> {package}
|
|
|
|
: {binary} |> !core_publish_bin |>
|
|
: {package} |> !core_publish_pkg |>
|