2024-09-07 15:40:24 +00:00
|
|
|
# _____ ___ ____ ___ ____
|
|
|
|
# ____| | ____| | | |____|
|
|
|
|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# Copyright 2001-2022, ps2dev - http://www.ps2dev.org
|
|
|
|
# Licenced under Academic Free License version 2.0
|
|
|
|
# Review ps2sdk README & LICENSE files for further details.
|
|
|
|
|
2024-09-12 06:58:48 +00:00
|
|
|
EE_BIN = $(PROGRAM).elf
|
2024-09-07 15:40:24 +00:00
|
|
|
|
|
|
|
# KERNEL_NOPATCH = 1
|
|
|
|
# NEWLIB_NANO = 1
|
|
|
|
|
2024-09-12 06:58:48 +00:00
|
|
|
EE_OBJS = $(PROGRAM).o
|
|
|
|
EE_CFLAGS += -fdata-sections -DPS2 -ffunction-sections -I$(PS2SDK)/ports/include -Wformat=0
|
2024-09-07 15:40:24 +00:00
|
|
|
EE_LDFLAGS += -L$(PS2SDK)/ports/lib -L$(GSKIT)/lib -lSDL2 -lgskit -ldmakit -lps2_drivers -lm -Wl,--gc-sections
|
|
|
|
|
|
|
|
ifeq ($(DUMMY_TIMEZONE), 1)
|
|
|
|
EE_CFLAGS += -DDUMMY_TIMEZONE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(DUMMY_LIBC_INIT), 1)
|
|
|
|
EE_CFLAGS += -DDUMMY_LIBC_INIT
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(KERNEL_NOPATCH), 1)
|
|
|
|
EE_CFLAGS += -DKERNEL_NOPATCH
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
EE_CFLAGS += -DDEBUG -O0 -g
|
|
|
|
else
|
|
|
|
EE_CFLAGS += -Os
|
|
|
|
EE_LDFLAGS += -s
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(EE_BIN)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(EE_OBJS) $(EE_BIN)
|
|
|
|
|
|
|
|
# Include makefiles
|
|
|
|
include $(PS2SDK)/samples/Makefile.pref
|
|
|
|
include $(PS2SDK)/samples/Makefile.eeglobal
|