X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2FMakefile;h=c98d6a9eee2fe5c6c2715dfd7d9f49c49354a20e;hb=6cadc2da0070781cf2d8fcff84265d3ca1f423b9;hp=67bbb34a299abb421d101200a23b4393cfc80197;hpb=0a051f558c6585c94d06dbe670e70bcac4e0aadd;p=picodrive.git diff --git a/platform/gp2x/Makefile b/platform/gp2x/Makefile index 67bbb34..c98d6a9 100644 --- a/platform/gp2x/Makefile +++ b/platform/gp2x/Makefile @@ -8,16 +8,18 @@ CROSS = arm-linux- dprint = 1 #mz80 = 1 #debug_cyclone = 1 -asm_memory = 0 # TODO +asm_memory = 1 asm_render = 1 asm_ym2612 = 1 asm_misc = 1 +asm_cdpico = 1 +asm_cdmemory = 1 #profile = 1 #use_musashi = 1 #up = 1 DEFINC = -I../.. -I. -DARM -D__GP2X__ -D_UNZIP_SUPPORT # -DBENCHMARK -COPT_COMMON = -static -s -O3 -ftracer -fstrength-reduce -Wall -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math +COPT_COMMON = -static -O3 -ftracer -fstrength-reduce -Wall -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math # -s ifeq "$(profile)" "1" COPT_COMMON += -fprofile-generate endif @@ -60,6 +62,15 @@ endif ifeq "$(asm_misc)" "1" DEFINC += -D_ASM_MISC_C OBJS += ../../Pico/misc_asm.o +OBJS += ../../Pico/cd/misc_asm.o +endif +ifeq "$(asm_cdpico)" "1" +DEFINC += -D_ASM_CD_PICO_C +OBJS += ../../Pico/cd/pico_asm.o +endif +ifeq "$(asm_cdmemory)" "1" +DEFINC += -D_ASM_CD_MEMORY_C +OBJS += ../../Pico/cd/memory_asm.o endif # Pico - sound OBJS += ../../Pico/sound/mix_asm.o @@ -74,7 +85,8 @@ OBJS += mp3.o # CPU cores ifeq "$(use_musashi)" "1" DEFINC += -DEMU_M68K -OBJS += _build\m68kcpu.o _build\m68kopac.o _build\m68kopdm.o _build\m68kopnz.o _build\m68kops.o +OBJS += ../../cpu/musashi/m68kcpu.o ../../cpu/musashi/m68kopac.o ../../cpu/musashi/m68kopdm.o +OBJS += ../../cpu/musashi/m68kopnz.o ../../cpu/musashi/m68kops.o else DEFINC += -DEMU_C68K OBJS += ../../cpu/Cyclone/proj/Cyclone.o @@ -93,8 +105,10 @@ all: PicoDrive.gpe PicoDrive.gpe : $(OBJS) helix/helix_mp3.a @echo $@ - @$(GCC) -o $@ $(COPT) $^ -lm + @$(GCC) -o $@ $(COPT) $^ -lm -Wl,-Map=PicoDrive.map +ifeq ($(DEBUG),) @$(STRIP) $@ +endif # @$(GCC) $(COPT) $(OBJS) -lm -o PicoDrive_.gpe # @gpecomp PicoDrive_.gpe $@ ifeq "$(up)" "1" @@ -137,6 +151,15 @@ testrefr.gpe : test.o gp2x.o asmutils.o ../../Pico/misc_asm.o : ../../Pico/misc.s @echo $< @$(AS) $(ASOPT) $< -o $@ +../../Pico/cd/pico_asm.o : ../../Pico/cd/Pico.s + @echo $< + @$(AS) $(ASOPT) $< -o $@ +../../Pico/cd/memory_asm.o : ../../Pico/cd/Memory.s + @echo $< + @$(AS) $(ASOPT) $< -o $@ +../../Pico/cd/misc_asm.o : ../../Pico/cd/misc.s + @echo $< + @$(AS) $(ASOPT) $< -o $@ # build Cyclone ../../cpu/Cyclone/proj/Cyclone.s :