X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=Makefile.gp2x;h=af7d4aedae8e99a9ddf96b9ff8f5ec5b79885d44;hp=ac85a1f3c6ce464dc8738dfd8c03203deda4ad46;hb=92764e6252a3691033d6044b466bf716c96b62d5;hpb=937bf65b1c80e9394547e5f105664bd26f3671de diff --git a/Makefile.gp2x b/Makefile.gp2x index ac85a1f..af7d4ae 100644 --- a/Makefile.gp2x +++ b/Makefile.gp2x @@ -2,7 +2,7 @@ CROSS = arm-linux- CC = $(CROSS)gcc STRIP = $(CROSS)strip AS = $(CROSS)as -TFLAGS = -Winline -mcpu=arm920t -Izlib -DGP2X=1 -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DZLIB -DFRAMESKIP -D_REENTRANT +TFLAGS = -Winline -mcpu=arm920t -Izlib -DGP2X=1 -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT ASFLAGS = -mcpu=arm920t -mfloat-abi=soft RM = rm -f B = drivers/gp2x/ @@ -15,6 +15,9 @@ TFLAGS += -O3 # -pg LDRIVER += -O3 # -pg endif +asm_6502=1 +#debug_asm_6502=1 + all: fceu gpfce: fceu @@ -24,8 +27,24 @@ include zlib/Makefile OBJDRIVER = ${B}minimal.o ${B}squidgehack.o ${B}asmutils.o ${B}gp2x.o ${B}main.o ${B}throttle.o \ ${B}unix-netplay.o ${B}gp2x-sound.o ${B}gp2x-video.o ${B}lnx-joystick.o \ - drivers/common/cheat.o drivers/common/config.o drivers/common/args.o drivers/common/vidblit.o ${UNZIPOBJS} ppu.o -LDRIVER += -L /mnt/sd/lib -L/mnt/sd/gp2x/usr/lib -lm -lz -static + drivers/common/cheat.o drivers/common/config.o drivers/common/args.o drivers/common/vidblit.o ${UNZIPOBJS} ppu.o movie.o +LDRIVER += -L /mnt/sd/lib -L/mnt/sd/gp2x/usr/lib -lm -lz -static -Wl,-Map=fceu.map + +ifeq ($(asm_6502),1) +TFLAGS += -DASM_6502 +OBJDRIVER += ncpu.o +ifeq ($(debug_asm_6502),1) +TFLAGS += -DDEBUG_ASM_6502 +OBJDRIVER += x6502.o ncpu_debug.o +endif +else +OBJDRIVER += x6502.o +endif + +x6502.o: x6502.c x6502.h ops.h fce.h sound.h dprintf.h + +ncpu.o: ncpu.S ncpu.h + $(CC) $(TFLAGS) -c $< -o $@ include Makefile.base @@ -42,3 +61,14 @@ include Makefile.common up: fceu cp -v fceu /mnt/gp2x/mnt/sd/emus/Gpfce_v02/gpfce +# ----------- release ----------- +ifneq ($(findstring rel,$(MAKECMDGOALS)),) +ifeq ($(VER),) +$(error need VER) +endif +endif + +rel: gpfce + zip -9 -j Gpfce_v$(VER).zip $^ drivers/gp2x/mmuhack.o out_gp2x/* + +