PSP-Everest/app/Makefile

38 lines
1.2 KiB
Makefile
Raw Normal View History

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))
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)
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
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
EXTRA_TARGETS = EBOOT.PBP
2023-03-26 15:28:31 +00:00
PSP_EBOOT_TITLE = PSP EVEREST 2 Rev 7
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 $<) ))