2020-06-07 19:00:47 +00:00
|
|
|
BUILD_FOR_PCSX2 = 0
|
|
|
|
DEBUG = 0
|
2021-08-07 19:59:16 +00:00
|
|
|
SCREEN_DEBUG = 0
|
2020-06-07 19:00:47 +00:00
|
|
|
MUTE_WARNINGS = 1
|
|
|
|
PS2_IP = 192.168.1.150
|
|
|
|
|
|
|
|
TARGET = raboot-debug.elf
|
|
|
|
TARGET_RELEASE = raboot.elf
|
|
|
|
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
OPTIMIZE_LV := -O0 -g
|
|
|
|
RARCH_DEFINES += -DDEBUG
|
|
|
|
else
|
|
|
|
OPTIMIZE_LV := -O3
|
|
|
|
LDFLAGS := -s
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MUTE_WARNINGS), 1)
|
2021-12-15 18:01:56 +00:00
|
|
|
DISABLE_WARNINGS := -Wno-unused -Wno-format -Wno-format-truncation
|
2020-06-07 19:00:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
INCDIR = -Ilibretro-common/include
|
2022-12-12 04:52:57 +00:00
|
|
|
INCDIR += -I$(PS2SDK)/ports/include
|
2020-06-07 19:00:47 +00:00
|
|
|
CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) -ffast-math -fsingle-precision-constant
|
|
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
|
|
|
|
RARCH_DEFINES += -DPS2 -DIS_SALAMANDER -DRARCH_CONSOLE
|
|
|
|
|
|
|
|
LIBDIR =
|
2022-12-12 04:52:57 +00:00
|
|
|
LDFLAGS += -L$(PS2SDK)/ports/lib
|
|
|
|
LIBS = -lelf-loader -lps2_drivers -lpatches
|
2020-06-07 19:00:47 +00:00
|
|
|
|
2021-08-07 19:59:16 +00:00
|
|
|
ifeq ($(SCREEN_DEBUG), 1)
|
|
|
|
LIBS += -ldebug
|
|
|
|
RARCH_DEFINES += -DSCREEN_DEBUG
|
|
|
|
endif
|
|
|
|
|
2020-06-07 19:00:47 +00:00
|
|
|
ifeq ($(BUILD_FOR_PCSX2), 1)
|
|
|
|
RARCH_DEFINES += -DBUILD_FOR_PCSX2
|
|
|
|
endif
|
|
|
|
|
|
|
|
CFLAGS += $(RARCH_DEFINES)
|
|
|
|
|
|
|
|
EE_OBJS = frontend/frontend_salamander.o \
|
|
|
|
frontend/frontend_driver.o \
|
|
|
|
frontend/drivers/platform_ps2.o \
|
|
|
|
libretro-common/file/file_path.o \
|
|
|
|
libretro-common/file/file_path_io.o \
|
|
|
|
libretro-common/string/stdstring.o \
|
|
|
|
libretro-common/lists/string_list.o \
|
|
|
|
libretro-common/lists/dir_list.o \
|
|
|
|
libretro-common/file/retro_dirent.o \
|
|
|
|
libretro-common/encodings/encoding_utf.o \
|
|
|
|
libretro-common/compat/fopen_utf8.o \
|
|
|
|
libretro-common/compat/compat_strl.o \
|
2022-08-25 15:00:23 +00:00
|
|
|
libretro-common/compat/compat_strldup.o \
|
2020-06-07 19:00:47 +00:00
|
|
|
libretro-common/compat/compat_strcasestr.o \
|
|
|
|
libretro-common/file/config_file.o \
|
|
|
|
libretro-common/streams/file_stream.o \
|
|
|
|
libretro-common/vfs/vfs_implementation.o \
|
2020-12-28 19:24:55 +00:00
|
|
|
libretro-common/hash/lrc_hash.o \
|
2020-06-07 19:00:47 +00:00
|
|
|
libretro-common/time/rtime.o \
|
2022-12-12 04:52:57 +00:00
|
|
|
verbosity.o
|
2020-06-07 19:00:47 +00:00
|
|
|
|
|
|
|
EE_CFLAGS = $(CFLAGS)
|
|
|
|
EE_CXXFLAGS = $(CFLAGS)
|
|
|
|
EE_LDFLAGS = $(LDFLAGS)
|
|
|
|
EE_LIBS = $(LIBS)
|
|
|
|
EE_ASFLAGS = $(ASFLAGS)
|
|
|
|
EE_INCS = $(INCDIR)
|
|
|
|
EE_BIN = $(TARGET)
|
|
|
|
EE_GPVAL = $(GPVAL)
|
|
|
|
|
2021-12-15 18:01:56 +00:00
|
|
|
all: $(EE_BIN)
|
2020-06-07 19:00:47 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(EE_BIN) $(EE_OBJS)
|
|
|
|
|
|
|
|
debug: clean all run
|
|
|
|
|
|
|
|
run:
|
|
|
|
ps2client -h $(PS2_IP) execee host:$(EE_BIN)
|
|
|
|
|
2021-12-15 18:01:56 +00:00
|
|
|
release: all
|
2020-06-07 19:00:47 +00:00
|
|
|
ps2-packer $(EE_BIN) $(TARGET_RELEASE)
|
|
|
|
|
|
|
|
#Include preferences
|
|
|
|
include $(PS2SDK)/samples/Makefile.pref
|
|
|
|
include $(PS2SDK)/samples/Makefile.eeglobal_cpp
|