X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2FMakefile;h=9161ea623bea2d4cda1df0093140f4ef31db0b98;hb=f3f1615e5e683c42588648cac06077ba7652d5b8;hp=d990ba67f73bc876019c80a66b0eb8ffe8df1875;hpb=fe9e3b2544bdc6ba0fef167a949db4f90511f5ea;p=libpicofe.git diff --git a/psp/Makefile b/psp/Makefile index d990ba6..9161ea6 100644 --- a/psp/Makefile +++ b/psp/Makefile @@ -11,8 +11,6 @@ amalgamate = 0 CFLAGS += -I../.. -I. -DNO_SYNC CFLAGS += -Wall -Winline -G0 #CFLAGS += -DLPRINTF_STDIO -#CFLAGS += -fprofile-generate -#CFLAGS += -fprofile-use #CFLAGS += -pg ifeq ($(DEBUG),) CFLAGS += -O2 -ftracer -fstrength-reduce -ffast-math @@ -72,7 +70,7 @@ endif OBJS += data/bg32.o data/bg40.o -LIBS += -lpng -lm -lpspgu -lpsppower -lpspaudio -lpsprtc -lpspaudiocodec +LIBS += -lpng -lm -lpspgu -lpsppower -lpspaudio -lpsprtc -lpspaudiocodec -lpspkubridge #LIBS += -lpspprof LDFLAGS += -Wl,-Map=PicoDrive.map @@ -109,7 +107,11 @@ 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 ">>>" $< @@ -119,6 +121,10 @@ AS := psp-as @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 @@ -142,6 +148,7 @@ up: EBOOT.PBP # cleanup myclean: + $(RM) PicoDrive.map make -C ../../cpu/musashi clean @@ -158,5 +165,9 @@ endif # ? rel: EBOOT.PBP readme.txt - zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt + mkdir -p PicoDrive/skin/ + cp $^ PicoDrive/ + cp skin/* PicoDrive/skin/ + zip -9 -r ../../PicoDrive_$(VER).zip PicoDrive + rm -rf PicoDrive