X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=Makefile.pandora;h=ad56ca2bb46c98eb915c454f808e73ee3cbfe6d5;hp=ee9009907700e12167e6a14744a0baf89fe4d528;hb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hpb=e4434f79e73411f4d069831cb813f7db1b1f933b diff --git a/Makefile.pandora b/Makefile.pandora index ee90099..ad56ca2 100644 --- a/Makefile.pandora +++ b/Makefile.pandora @@ -2,8 +2,10 @@ CC = $(CROSS_COMPILE)gcc AS = $(CROSS_COMPILE)as STRIP = $(CROSS_COMPILE)strip -TFLAGS = -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT +TFLAGS += -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT +TFLAGS += -Wno-pointer-sign RM = rm -f +A = drivers/arm/ C = drivers/common/ L = drivers/libpicofe/ @@ -15,7 +17,7 @@ else TFLAGS += -O2 LDRIVER += -O2 endif -ASFLAGS += -mcpu=cortex-a8 +ASFLAGS += -mcpu=cortex-a8 -mfpu=neon NOSTRIP = 1 asm_6502=1 @@ -23,7 +25,8 @@ all: fceu include zlib/Makefile -OBJDRIVER = drivers/pandora/pandora.o drivers/arm/asmutils.o \ +OBJDRIVER = drivers/pandora/pandora.o \ + ${A}asmutils.o ${A}neon_scale2x.o ${A}neon_eagle2x.o \ ${L}fonts.o ${L}readpng.o ${L}input.o ${L}config_file.o \ ${L}linux/in_evdev.o ${L}linux/plat.o ${L}linux/sndout_oss.o \ ${L}linux/fbdev.o ${L}linux/xenv.o ${L}pandora/plat.o \ @@ -50,6 +53,11 @@ ${C}main.o: ${C}input.c ppu.o: ppu.c ppu.h x6502.o: TFLAGS += -Wno-inline +drivers/pandora/pandora.o: ${L}menu.h +${L}menu.h: + @echo "please run: git submodule init; git submodule update" + @false + ${C}revision.h: FORCE @(git describe || echo) | sed -e 's/.*/#define REV "\0"/' > $@_ @diff -q $@_ $@ > /dev/null 2>&1 || cp $@_ $@ @@ -58,4 +66,16 @@ ${C}revision.h: FORCE include Makefile.common +PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh +VER ?= $(shell git describe master) + +rel: fceu drivers/pandora/fceu.sh drivers/pandora/readme.txt drivers/pandora/skin \ + drivers/pandora/fceu.png drivers/pandora/fceu.pxml.templ COPYING + rm -rf out + mkdir out + cp -r $^ out/ + sed -e 's/%PR%/$(VER)/g' out/fceu.pxml.templ > out/fceu.pxml + rm out/fceu.pxml.templ + $(PND_MAKE) -p gpfce_$(VER).pnd -d out -x out/fceu.pxml -i drivers/pandora/fceu.png -c + # vim:filetype=make