irm https://ps2build.dev/install.ps1 | iexcurl -sSfL https://ps2build.dev/install.sh | shRuns natively on Windows, Linux and macOS.
Installs into its own directory and runs natively on your OS.
ps2buildEE_BIN = my-game.elf
EE_OBJS = main.o
EE_INCS += -I$(PS2SDK)/ports/include
EE_LDFLAGS += -L$(PS2SDK)/ports/lib
EE_LIBS += -lpng -lz -lfreetype -lgskit -ldmakit
all: $(EE_BIN)
clean:
rm -f $(EE_BIN) $(EE_OBJS)
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobalproject: my-game
targets:
- name: my-game
type: ee
sources: [main.c]
libs: [png, freetype, gskit, dmakit]compile_commands.json is built in. Works in most editors.