11TARGET = CMFileManager
22
33SOURCES := data drivers source source/audio source/gui ../libs/libnsbmp ../libs/libnsgif
4- CFILES := $(foreach dir, $(SOURCES ) , $(wildcard $(dir ) /* .c) )
5- SFILES := $(foreach dir, $(SOURCES ) , $(wildcard $(dir ) /* .S) )
6- CPPFILES := $(foreach dir, $(SOURCES ) , $(wildcard $(dir ) /* .cpp) )
7- FONTFILES := $(foreach dir, $(SOURCES ) , $(wildcard $(dir ) /* .pgf) )
8- GFXFILES := $(foreach dir, $(SOURCES ) , $(wildcard $(dir ) /* .png) )
9- PRXFILES := $(foreach dir, $(SOURCES ) , $(wildcard $(dir ) /* .prx) )
4+ CFILES := $(foreach dir,$(SOURCES ) , $(wildcard $(dir ) /* .c) )
5+ SFILES := $(foreach dir,$(SOURCES ) , $(wildcard $(dir ) /* .S) )
6+ CPPFILES := $(foreach dir,$(SOURCES ) , $(wildcard $(dir ) /* .cpp) )
7+ GFXFILES := $(foreach dir,$(SOURCES ) , $(wildcard $(dir ) /* .png) )
8+ FONTFILES := $(foreach dir,$(SOURCES ) , $(wildcard $(dir ) /* .pgf) )
109
11- OBJS := $(addsuffix .o,$(BINFILES ) ) $( CFILES:.c=.o ) $( SFILES:.S=.o ) $( CPPFILES:.cpp=.o ) \
12- $(FONTFILES:.pgf =.o ) $(GFXFILES:.png=.o ) $(PRXFILES:.prx =.o )
10+ OBJS := $(addsuffix .o,$(BINFILES ) ) \
11+ $(CFILES:.c =.o ) $(SFILES:.S=.o ) $( CPPFILES:.cpp=.o ) $( GFXFILES:.png=.o ) $(FONTFILES:.pgf =.o )
1312
1413VERSION_MAJOR := 4
1514VERSION_MINOR := 1
1615VERSION_MICRO := 0
1716
1817INCDIR = ../libs/ ../libs/include ../libs/libnsbmp ../libs/libnsgif ../libs/include/opus include
19- CFLAGS = -Os -G0 -Wall -ffast-math -Wno-narrowing -Wno-unused-variable \
18+ CFLAGS = -Os -mno-gpopt -Wall -ffast-math -Wno-narrowing -Wno-unused-variable \
2019 -DVERSION_MAJOR=$(VERSION_MAJOR ) -DVERSION_MINOR=$(VERSION_MINOR ) -DVERSION_MICRO=$(VERSION_MICRO )
2120CXXFLAGS = $(CFLAGS ) -fno-exceptions -fno-rtti -std=gnu++17
2221ASFLAGS := $(CFLAGS )
@@ -26,22 +25,19 @@ BUILD_PRX = 1
2625LIBDIR = ../libs/lib
2726LDFLAGS =
2827LIBS = -lintrafont -lglib2d -lxmp -lmpg123 -lvorbisfile -lvorbis -lopusfile -lopus -lFLAC -logg \
29- -larchive -llzma -ljpeg -lpng16 -lstdc++ -lz \
28+ -larchive -llzma -lturbojpeg - ljpeg -lpng16 -lstdc++ -lz \
3029 -lpspkubridge -lpspsystemctrl_user -lpspusbdevice \
3130 -lpspgu -lpspvram -lpspaudio -lpsppower -lpspreg -lpspusb -lpspusbstor -lpspumd
3231
33- EXTRA_TARGETS = EBOOT.PBP
34- PSP_EBOOT_TITLE = CM File Manager PSP v$(VERSION_MAJOR ) .$(VERSION_MINOR )$(VERSION_MICRO )
35- PSP_EBOOT_ICON = ../ICON0.PNG
32+ EXTRA_TARGETS = EBOOT.PBP
33+ PSP_EBOOT_TITLE = CM File Manager PSP v$(VERSION_MAJOR ) .$(VERSION_MINOR )$(VERSION_MICRO )
34+ PSP_EBOOT_ICON = ../ICON0.PNG
3635
3736PSPSDK =$(shell psp-config --pspsdk-path)
3837include $(PSPSDK ) /lib/build.mak
3938
40- % .o : % .pgf
41- bin2o -i $< $@ $(addsuffix _pgf, $(basename $(notdir $< ) ) )
42-
4339% .o : % .png
4440 bin2o -i $< $@ $(addsuffix _png, $(basename $(notdir $< ) ) )
4541
46- % .o : % .prx
47- bin2o -i $< $@ $(addsuffix _prx , $(basename $(notdir $< ) ) )
42+ % .o : % .pgf
43+ bin2o -i $< $@ $(addsuffix _pgf , $(basename $(notdir $< ) ) )
0 commit comments