X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2FMakefile;h=25a0a0154b747d22b4752c2c6facef97188f39c5;hb=960a8e2716349f9a7df6cca9b6e8e6b0724fe7ba;hp=d60078ec2d3a261a81a475d762d9b488d29f515d;hpb=16e89bed918ec39b1e43956b903f7986af86a6b2;p=libpicofe.git diff --git a/psp/Makefile b/psp/Makefile index d60078e..25a0a01 100644 --- a/psp/Makefile +++ b/psp/Makefile @@ -6,30 +6,28 @@ PSPSDK = $(shell psp-config --pspsdk-path) #use_musashi = 1 #use_mz80 = 1 amalgamate = 0 -#profile = 1 -#up = 1 +for_15fw = 1 -CFLAGS += -I../.. -I. -DNO_SYNC -DLPRINTF_STDIO +CFLAGS += -I../.. -I. -DNO_SYNC CFLAGS += -Wall -Winline -G0 +#CFLAGS += -DLPRINTF_STDIO +#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 +ifeq "$(for_15fw)" "1" +CFLAGS += -DFW15 endif -# frontend -OBJS += main.o emu.o mp3.o menu.o psp.o +# frontend and stuff +OBJS += main.o emu.o mp3.o menu.o psp.o asm_utils.o # common -OBJS += ../common/emu.o ../common/menu.o ../common/fonts.o ../common/readpng.o +OBJS += ../common/emu.o ../common/menu.o ../common/fonts.o ../common/config.o ../common/readpng.o # Pico ifeq "$(amalgamate)" "1" @@ -37,11 +35,14 @@ 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 \ ../../Pico/cd/Area.o ../../Pico/cd/Misc.o ../../Pico/cd/pcm.o ../../Pico/cd/buffering.o +# Pico - carthw +OBJS += ../../Pico/carthw/carthw.o ../../Pico/carthw/svp/svp.o ../../Pico/carthw/svp/Memory.o \ + ../../Pico/carthw/svp/ssp16.o endif # Pico - sound @@ -76,7 +77,10 @@ endif OBJS += data/bg32.o data/bg40.o -LIBS += -lpng -lm -lpspgu -lpsppower -lpspaudio -lpsprtc -Wl,-Map=PicoDrive.map +LIBS += -lpng -lm -lpspgu -lpsppower -lpspaudio -lpsprtc -lpspaudiocodec -lpspkubridge +#LIBS += -lpspprof +LDFLAGS += -Wl,-Map=PicoDrive.map + # target TARGET = PicoDrive @@ -84,6 +88,9 @@ EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = PicoDrive PSP_EBOOT_ICON = data/icon.png #PSP_EBOOT_PIC1 = .png +ifneq "$(for_15fw)" "1" +BUILD_PRX = 1 +endif CUSTOM_CLEAN = myclean @@ -109,11 +116,23 @@ AS := psp-as ../../Pico/Memory.o : ../../Pico/Memory.c @echo ">>>" $< - $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS + $(CC) $(CFLAGS) -O2 -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS + +../../Pico/cd/Memory.o : ../../Pico/cd/Memory.c + @echo ">>>" $< + $(CC) $(CFLAGS) -O2 -c $< -o $@ ../../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 + +../../Pico/cd/gfx_cd.o : ../../Pico/cd/gfx_cd.c + @echo ">>>" $< + $(CC) $(CFLAGS) -O2 -c $< -o $@ readme.txt: ../../tools/textfilter ../base_readme.txt ../../tools/textfilter ../base_readme.txt $@ PSP @@ -128,13 +147,17 @@ data/bg40.o: data/bg40.bin bin2o -i $< $@ bgdatac40 # +ifndef UPDIR +UPDIR = /media/disk/PSP/GAME/PicoDrive/ +endif up: EBOOT.PBP - @cp -v $^ /media/disk/PSP/GAME/PicoDrive/ + @cp -v $^ $(UPDIR) # cleanup myclean: + $(RM) PicoDrive.map make -C ../../cpu/musashi clean @@ -150,7 +173,17 @@ endif endif # ? -rel: EBOOT.PBP readme.txt - zip -9 -j ../../PicoDrive_$(VER).zip $^ -# zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt +rel: EBOOT.PBP readme.txt ../game_def.cfg + mkdir -p PicoDrive/skin/ + cp $^ PicoDrive/ + cp skin/* PicoDrive/skin/ + zip -9 -r ../../PicoDrive_psp_$(VER).zip PicoDrive + rm -rf PicoDrive + +rel_kxploit: readme.txt ../game_def.cfg + mkdir -p PicoDrive/skin/ + cp $^ PicoDrive/ + cp skin/* PicoDrive/skin/ + zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive + zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive%