X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2FMakefile;h=7a0cadae3a03719823e2fde58aa492ed29104a82;hb=2b90fc61e0907707c60bb01d97645b6afc22d4ae;hp=769f3edb4091178c7d23a6587be45915eb494b72;hpb=703e4c7bbb2cfd549797e2092e4d863547b3e87c;p=libpicofe.git diff --git a/psp/Makefile b/psp/Makefile index 769f3ed..7a0cada 100644 --- a/psp/Makefile +++ b/psp/Makefile @@ -3,7 +3,7 @@ PSPSDK = $(shell psp-config --pspsdk-path) # settings -use_musashi = 1 +#use_musashi = 1 use_mz80 = 1 amalgamate = 0 #profile = 1 @@ -13,7 +13,7 @@ amalgamate = 0 CFLAGS += -I../.. -I. -D_UNZIP_SUPPORT -DNO_SYNC # -DBENCHMARK CFLAGS += -Wall -Winline ifeq ($(DEBUG),) -CFLAGS += -O2 -G0 -ftracer -fstrength-reduce -fomit-frame-pointer -fstrict-aliasing -ffast-math +CFLAGS += -O2 -G0 -ftracer -fstrength-reduce -ffast-math else CFLAGS += -ggdb endif @@ -37,7 +37,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/Patch.o ../../Pico/Draw_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 \ @@ -59,6 +59,9 @@ OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o ifeq "$(use_musashi)" "1" CFLAGS += -DEMU_M68K OBJS += ../../cpu/musashi/m68kops.o ../../cpu/musashi/m68kcpu.o +else +CFLAGS += -DEMU_F68K +OBJS += ../../cpu/fame/famec.o endif # z80 ifeq "$(use_mz80)" "1" @@ -69,7 +72,7 @@ $(error nothing here!) endif -LIBS += -lpng -lm -lpspgu # -lpspaudio -lpspgu -lpsppower -lpsphprm -lz -lm -lstdc++ +LIBS += -lpng -lm -lpspgu -lpsppower -Wl,-Map=PicoDrive.map # -lpspaudio -lpsphprm # target TARGET = PicoDrive @@ -82,12 +85,17 @@ CUSTOM_CLEAN = myclean include $(PSPSDK)/lib/build.mak - # some additional rules .c.o: @echo ">>>" $< $(CC) $(CFLAGS) -c $< -o $@ +AS := psp-as + +.s.o: + @echo ">>>" $< + $(AS) -march=allegrex -mtune=allegrex $< -o $@ + ../../cpu/musashi/m68kops.c : make -C ../../cpu/musashi @@ -97,6 +105,9 @@ readme.txt: ../../tools/textfilter ../base_readme.txt ../../tools/textfilter: ../../tools/textfilter.c make -C ../../tools/ textfilter +../../cpu/fame/famec.o : ../../cpu/fame/famec.c + @echo ">>>" $< + $(CC) $(CFLAGS) -Wno-unused -c $< -o $@ # ? up: EBOOT.PBP