giz port, restructuring
[picodrive.git] / platform / gizmondo / Makefile
index 1824fe1..ff7906a 100644 (file)
@@ -14,8 +14,13 @@ amalgamate = 0
 \r
 \r
 \r
-DEFINC = -I../.. -I. -D__GIZ__ -D_UNZIP_SUPPORT\r
-COPT_COMMON = -static -Wall -O2 -ftracer -fstrength-reduce -fomit-frame-pointer -fstrict-aliasing -ffast-math\r
+DEFINC = -I../.. -I. -D__GIZ__ -D_UNZIP_SUPPORT -DNO_SYNC\r
+COPT_COMMON = -static -Wall -Winline\r
+ifeq ($(DEBUG),)\r
+COPT_COMMON += -O2 -ftracer -fstrength-reduce -fomit-frame-pointer -fstrict-aliasing -ffast-math\r
+else\r
+COPT_COMMON += -ggdb\r
+endif\r
 ifeq "$(profile)" "1"\r
 COPT_COMMON += -fprofile-generate\r
 endif\r
@@ -30,10 +35,10 @@ AS = $(CROSS)as
 LD = $(CROSS)ld\r
 \r
 # frontend\r
-OBJS += main.o menu.o giz.o emu.o\r
+OBJS += main.o emu.o menu.o giz.o asm_utils.o\r
 \r
 # common\r
-OBJS += ../common/menu.o ../common/fonts.o ../common/arm_utils.o ../common/readpng.o\r
+OBJS += ../common/emu.o ../common/menu.o ../common/fonts.o ../common/arm_utils.o ../common/readpng.o\r
 \r
 # Pico\r
 ifeq "$(amalgamate)" "1"\r
@@ -129,7 +134,7 @@ endif
 ../../Pico/sound/mix_asm.o : ../../Pico/sound/mix.s\r
        @echo $<\r
        @$(AS) $(ASFLAGS) $< -o $@\r
-../../Pico/misc_asm.o : ../../Pico/misc.s\r
+../../Pico/misc_asm.o : ../../Pico/Misc.s\r
        @echo $<\r
        @$(AS) $(ASFLAGS) $< -o $@\r
 ../../Pico/cd/pico_asm.o : ../../Pico/cd/Pico.s\r
@@ -138,7 +143,7 @@ endif
 ../../Pico/cd/memory_asm.o : ../../Pico/cd/Memory.s\r
        @echo $<\r
        @$(AS) $(ASFLAGS) $< -o $@\r
-../../Pico/cd/misc_asm.o : ../../Pico/cd/misc.s\r
+../../Pico/cd/misc_asm.o : ../../Pico/cd/Misc.s\r
        @echo $<\r
        @$(AS) $(ASFLAGS) $< -o $@\r
 \r
@@ -160,6 +165,15 @@ clean_prof:
        find ../.. -name '*.gcno' -delete\r
        find ../.. -name '*.gcda' -delete\r
 \r
+up: PicoDrive.exe\r
+       synce-pcp -d 3 PicoDrive.exe ":/SD Card/emus/PicoDrive/PicoDrive.exe"\r
+\r
+run: up\r
+       synce-prun "/SD Card/emus/PicoDrive/PicoDrive.exe"\r
+\r
+run_only:\r
+       synce-prun "/SD Card/emus/PicoDrive/PicoDrive.exe"\r
+\r
 # ----------- release -----------\r
 ifneq ($(findstring rel,$(MAKECMDGOALS)),)\r
 ifeq ($(VER),)\r