31 lines
990 B
Plaintext
31 lines
990 B
Plaintext
CORE_PKGS += genode-lib
|
|
|
|
ifeq ($(SOURCES_CXX),)
|
|
CORE_PKGS += libc
|
|
else
|
|
CORE_PKGS += stdcxx
|
|
endif
|
|
|
|
CFLAGS += -D__LIBRETRO__
|
|
|
|
!libretro_cc = |> ^ CC %f^ $(CC) `pkg-config --cflags $(CORE_PKGS)` $(CFLAGS) -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=$(TUP_CWD)/link.T %f -o %o `pkg-config --libs $(CORE_PKGS)` $(LDFLAGS) |> libretro.so
|
|
|
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
|
|
|
: {libretro_objs} |> !libretro_core_link |> {binary}
|
|
: {binary} |> !strip_to_depot |> {depot_bin}
|
|
|
|
: archives | {depot_bin} |> !archives_to_depot |> {package}
|
|
: runtime |> !runtime_to_depot |> {package}
|
|
|
|
ifdef DEPOT_KEY
|
|
: {binary} |> !depot_bin_tarball |> {tarballs}
|
|
: {package} |> !depot_pkg_tarball |> {tarballs}
|
|
: foreach {tarballs} |> !public_signature |>
|
|
|
|
endif
|