2022-07-24 03:03:08 +00:00
|
|
|
TARGET = EVEREST
|
|
|
|
|
|
|
|
SOURCES := data drivers source
|
|
|
|
CFILES := $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.c))
|
2023-03-26 15:28:31 +00:00
|
|
|
CPPFILES := $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.cpp))
|
2022-07-24 03:03:08 +00:00
|
|
|
SFILES := $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.S))
|
|
|
|
GFXFILES := $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.bmp))
|
|
|
|
PRXFILES := $(foreach dir, $(SOURCES), $(wildcard $(dir)/*.prx))
|
|
|
|
|
2023-03-26 15:28:31 +00:00
|
|
|
OBJS := $(addsuffix .o,$(BINFILES)) $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(SFILES:.S=.o) \
|
|
|
|
$(GFXFILES:.bmp=.o) $(PRXFILES:.prx=.o)
|
2022-07-24 03:03:08 +00:00
|
|
|
|
|
|
|
INCDIR = ../libs/ ../libs/include include
|
2023-03-26 15:28:31 +00:00
|
|
|
CFLAGS = -O2 -G0 -Wall -fshort-wchar -fno-pic -mno-check-zero-division
|
|
|
|
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -std=gnu++17
|
2022-07-24 03:03:08 +00:00
|
|
|
ASFLAGS = $(CFLAGS) -c
|
|
|
|
|
|
|
|
BUILD_PRX = 1
|
|
|
|
PSP_LARGE_MEMORY = 1
|
|
|
|
|
|
|
|
LIBDIR = ../libs/lib
|
|
|
|
LDFLAGS = -nostdlib -nodefaultlibs
|
2023-03-26 15:28:31 +00:00
|
|
|
LIBS = -lpspmodinfo -lpspopenpsid -lpsprtc -lpsppower -lpspreg -lvlfgui -lvlfgu -lvlfutils -lvlflibc
|
2022-07-24 03:03:08 +00:00
|
|
|
|
|
|
|
EXTRA_TARGETS = EBOOT.PBP
|
2023-03-26 15:28:31 +00:00
|
|
|
PSP_EBOOT_TITLE = PSP EVEREST 2 Rev 7
|
2022-07-24 03:03:08 +00:00
|
|
|
PSP_EBOOT_ICON = ICON0.PNG
|
|
|
|
PSP_EBOOT_PIC1 = PIC1.png
|
|
|
|
|
|
|
|
PSPSDK=$(shell psp-config --pspsdk-path)
|
|
|
|
include ./build.mak
|
|
|
|
|
|
|
|
%.o: %.bmp
|
|
|
|
bin2o -i $< $@ $(addsuffix _bmp, $(basename $(notdir $<) ))
|
|
|
|
|
|
|
|
%.o: %.prx
|
|
|
|
bin2o -i $< $@ $(addsuffix _prx, $(basename $(notdir $<) ))
|