X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpsp%2FMakefile;h=c3b04cd95c6dae2b84dad56e5909feec1a414eaa;hb=b542be4686241c9e0722ff8e452980f9ac2b4d7c;hp=6acc3eb5b7d57d4fd12fe6d4998b0730daaac914;hpb=8022f53da61b8e70420a3bac97250119bbe26457;p=picodrive.git diff --git a/platform/psp/Makefile b/platform/psp/Makefile index 6acc3eb..c3b04cd 100644 --- a/platform/psp/Makefile +++ b/platform/psp/Makefile @@ -6,23 +6,19 @@ PSPSDK = $(shell psp-config --pspsdk-path) #use_musashi = 1 #use_mz80 = 1 amalgamate = 0 -#profile = 1 -#up = 1 CFLAGS += -I../.. -I. -DNO_SYNC -DLPRINTF_STDIO CFLAGS += -Wall -Winline -G0 +CFLAGS += -DLPRINTF_STDIO +#CFLAGS += -fprofile-generate +#CFLAGS += -fprofile-use +#CFLAGS += -pg ifeq ($(DEBUG),) CFLAGS += -O2 -ftracer -fstrength-reduce -ffast-math else CFLAGS += -ggdb endif -ifeq "$(profile)" "1" -CFLAGS += -fprofile-generate -endif -ifeq "$(profile)" "2" -CFLAGS += -fprofile-use -endif # frontend @@ -37,7 +33,7 @@ OBJS += ../../PicoAll.o else OBJS += ../../Pico/Area.o ../../Pico/Cart.o ../../Pico/Memory.o ../../Pico/Misc.o \ ../../Pico/Pico.o ../../Pico/Sek.o ../../Pico/VideoPort.o ../../Pico/Draw2.o ../../Pico/Draw.o \ - ../../Pico/Patch.o ../../Pico/Draw_amips.o ../../Pico/Memory_amips.o + ../../Pico/Patch.o ../../Pico/Draw_amips.o ../../Pico/Memory_amips.o ../../Pico/Misc_amips.o # Pico - CD OBJS += ../../Pico/cd/Pico.o ../../Pico/cd/Memory.o ../../Pico/cd/Sek.o ../../Pico/cd/LC89510.o \ ../../Pico/cd/cd_sys.o ../../Pico/cd/cd_file.o ../../Pico/cd/gfx_cd.o \ @@ -77,8 +73,10 @@ OBJS += data/bg32.o data/bg40.o LIBS += -lpng -lm -lpspgu -lpsppower -lpspaudio -lpsprtc -lpspaudiocodec +#LIBS += -lpspprof LDFLAGS += -Wl,-Map=PicoDrive.map + # target TARGET = PicoDrive EXTRA_TARGETS = EBOOT.PBP @@ -114,7 +112,11 @@ AS := psp-as ../../Pico/Draw.o : ../../Pico/Draw.c @echo ">>>" $< - $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_DRAW_C_MIPS + $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_DRAW_C_AMIPS + +../../Pico/Misc.o : ../../Pico/Misc.c + @echo ">>>" $< + $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MISC_C_AMIPS readme.txt: ../../tools/textfilter ../base_readme.txt ../../tools/textfilter ../base_readme.txt $@ PSP @@ -152,6 +154,5 @@ endif # ? rel: EBOOT.PBP readme.txt - zip -9 -j ../../PicoDrive_$(VER).zip $^ -# zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt + zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt