genode-ehmry/libretro/cores/Tuprules.tup

13 lines
921 B
Plaintext

!libretro_cc = |> ^ CC %f^ $(CC) `pkg-config --cflags $(CORE_PKGS)` $(CFLAGS) $(INCFLAGS) -c %f -o %o |> %f.o
!libretro_cxx = |> ^ CXX %f^ $(CXX) `pkg-config --cflags $(CORE_PKGS)` $(CFLAGS) $(CXXFLAGS) $(INCFLAGS) -c %f -o %o |> %f.o
!libretro_core_link = |> ^o LD %d^ $(LD) -shared --version-script=$(LINK_T) %f -o %o `pkg-config --libs $(CORE_PKGS)` $(LDFLAGS) |> libretro.so
!publish_core = | libretro.so |> ^ STRIP %o^ strip -o %o %f |> $(DEPOT_BIN_DIR)/libretro-$(TARGET_NAME)/@(DEPOT_VERSION)/%b
!publish_core_archives = |> ^ varse %d archives^ tup varsed %f %o |> $(DEPOT_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION)/archives
!publish_core_runtime = |> ^ validate %d runtime^ xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o |> $(DEPOT_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION)/runtime $(DEPOT_DIR)/<runtimes>
LINK_T = $(TUP_CWD)/link.T
CORE_PKGS += genode-lib
CFLAGS += -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565