X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2FMakefile;h=b045c2d94735d7a32eaa39cf1d3559a3bdb1e723;hb=d9a189437aa503963b96fe382883723d40eebef6;hp=67bbb34a299abb421d101200a23b4393cfc80197;hpb=5f9922e6c2c69cb940e70f1d108aac2c3d0b01d7;p=libpicofe.git diff --git a/gp2x/Makefile b/gp2x/Makefile index 67bbb34..b045c2d 100644 --- a/gp2x/Makefile +++ b/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 @@ -61,6 +63,14 @@ ifeq "$(asm_misc)" "1" DEFINC += -D_ASM_MISC_C OBJS += ../../Pico/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 OBJS += ../../Pico/sound/sound.o ../../Pico/sound/sn76496.o ../../Pico/sound/ym2612.o @@ -93,8 +103,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 +149,12 @@ 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 $@ # build Cyclone ../../cpu/Cyclone/proj/Cyclone.s :