notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FDS fixed for asm core
[fceu.git]
/
Makefile.gp2x
diff --git
a/Makefile.gp2x
b/Makefile.gp2x
index
bca522a
..
137b353
100644
(file)
--- a/
Makefile.gp2x
+++ b/
Makefile.gp2x
@@
-2,21
+2,24
@@
CROSS = arm-linux-
CC = $(CROSS)gcc
STRIP = $(CROSS)strip
AS = $(CROSS)as
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 -D
HAVE_ASPRINTF -D
ZLIB -DFRAMESKIP -D_REENTRANT
ASFLAGS = -mcpu=arm920t -mfloat-abi=soft
RM = rm -f
B = drivers/gp2x/
ifdef DEBUG
TFLAGS += -ggdb
LDRIVER += -ggdb
ASFLAGS = -mcpu=arm920t -mfloat-abi=soft
RM = rm -f
B = drivers/gp2x/
ifdef DEBUG
TFLAGS += -ggdb
LDRIVER += -ggdb
+NOSTRIP = 1
else
TFLAGS += -ftracer -fstrength-reduce -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math
else
TFLAGS += -ftracer -fstrength-reduce -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math
-TFLAGS += -O3 #
-pg
-LDRIVER += -O3 #
-pg
+TFLAGS += -O3 #
-pg -fno-omit-frame-pointer
+LDRIVER += -O3 #
-pg -fno-omit-frame-pointer
endif
endif
+#NOSTRIP = 1
+
asm_6502=1
asm_6502=1
-debug_asm_6502=1
+
#
debug_asm_6502=1
all: fceu
all: fceu
@@
-27,7
+30,7
@@
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 \
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
+ 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)
LDRIVER += -L /mnt/sd/lib -L/mnt/sd/gp2x/usr/lib -lm -lz -static -Wl,-Map=fceu.map
ifeq ($(asm_6502),1)
@@
-41,9
+44,10
@@
else
OBJDRIVER += x6502.o
endif
OBJDRIVER += x6502.o
endif
-x6502.o: x6502.c x6502.h ops.h fce.h sound.h
+x6502.o: x6502.c x6502.h ops.h fce.h sound.h dprintf.h
+
ncpu.o: ncpu.S ncpu.h
ncpu.o: ncpu.S ncpu.h
- $(CC) -c $< -o $@
+ $(CC)
$(TFLAGS)
-c $< -o $@
include Makefile.base
include Makefile.base
@@
-60,3
+64,14
@@
include Makefile.common
up: fceu
cp -v fceu /mnt/gp2x/mnt/sd/emus/Gpfce_v02/gpfce
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/*
+
+