144 lines
4.9 KiB
Plaintext
144 lines
4.9 KiB
Plaintext
CORE_PKGS += libc libm
|
|
LDFLAGS += --no-undefined
|
|
CFLAGS += -O3 -Wall -pedantic -std=gnu99
|
|
|
|
ifeq ($(TARGET_NAME),testaudio_callback)
|
|
CFLAGS += -I../../libretro-common/include
|
|
SOURCES_C += libretro-test.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testaudio_no_callback)
|
|
CFLAGS += -I../../libretro-common/include
|
|
SOURCES_C += libretro-test.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testaudio_playback_wav)
|
|
CFLAGS += -I../../libretro-common/include
|
|
SOURCES_C += libretro-test.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),button_test)
|
|
CFLAGS += -Ilibretro-common/include
|
|
SOURCES_C += libretro.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
#ifeq ($(TARGET_NAME),freebasic)
|
|
# : fbastest.bas |> fbc -dll %f -x %o |> libretro.so {core}
|
|
# : $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
# : $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
|
|
#endif
|
|
|
|
#ifeq ($(TARGET_NAME),pascal_pong)
|
|
# : pong.pas |> fpc -o%o %f |> libretro.so {core}
|
|
# : $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
# : $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
|
|
#endif
|
|
|
|
ifeq ($(TARGET_NAME),midi_test)
|
|
SOURCES_C += libretro.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/midi.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),test)
|
|
CFLAGS += -I../../libretro-common/include
|
|
SOURCES_C += libretro-test.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),cruzes)
|
|
SOURCES_C += cruzes.c ttf2c.c
|
|
# : obj/Carlito-Regular.ttf |> ttf2c 24 font24 %f %o |> font24.h
|
|
# : obj/Carlito-Regular.ttf |> ttf2c 16 font16 %f %o |> font16.h
|
|
# : obj/Carlito-Regular.ttf |> ttf2c 10 font10 %f %o |> font10.h
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),advanced_tests)
|
|
CFLAGS += -I../../libretro-common/include
|
|
SOURCES_C += libretro-test.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testgl_compute_shaders)
|
|
CORE_PKGS += mesa
|
|
CFLAGS += -Igl -DNDEBUG -fPIC -DHAVE_ZIP_DEFLATE
|
|
CXXFLAGS += -std=gnu++11
|
|
SOURCES_CXX += libretro/libretro.cpp
|
|
SOURCES_CXX += gl/*.cpp
|
|
SOURCES_CXX += app/boxes.cpp
|
|
SOURCES_C += glsym/rglgen.c
|
|
SOURCES_C += glsym/glsym_gl.c
|
|
|
|
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testgl_ff)
|
|
CORE_PKGS += mesa
|
|
CFLAGS +=
|
|
SOURCES_C += libretro_gl_ff_test.c glsym/rglgen.c glsym/glsym_gl.c
|
|
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testgl)
|
|
CORE_PKGS += mesa
|
|
CFLAGS +=
|
|
SOURCES_C += libretro_gl_test.c
|
|
SOURCES_C += glsym/rglgen.c
|
|
SOURCES_C += glsym/glsym_gl.c
|
|
|
|
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testsw)
|
|
CFLAGS += -I../../libretro-common/include
|
|
SOURCES_C += libretro-test.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testsw_vram)
|
|
CFLAGS += -I../../libretro-common/include
|
|
SOURCES_C += libretro-test.c
|
|
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testvulkan_async_compute)
|
|
CFLAGS += -I../../libretro-common/include -Iinclude
|
|
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
|
|
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
ifeq ($(TARGET_NAME),testvulkan)
|
|
CFLAGS += -I../../libretro-common/include -Iinclude
|
|
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
|
|
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
|
|
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
|
|
endif
|
|
|
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
|
|
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
|
: {core} |> !publish_core |> {binary}
|
|
|
|
: README.md |> !publish_core_metadata |> {package}
|
|
|
|
: {binary} |> !core_publish_bin |>
|
|
: {package} |> !core_publish_pkg |>
|