X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pandora%2FMakefile;h=81a52ea44033c71c39ab2f5dc241508622c035c3;hb=ffc30d25671ca6d4d775445735abd13221b877c9;hp=090cccba2f0f028bb4d88f1dedb99b617115e652;hpb=eb3668fc5dab138073cd4844208ac05b94086a4a;p=gpsp.git diff --git a/pandora/Makefile b/pandora/Makefile index 090cccb..81a52ea 100644 --- a/pandora/Makefile +++ b/pandora/Makefile @@ -14,10 +14,8 @@ BIN = gpsp # Platform specific definitions VPATH += .. ../arm -CFLAGS += -DARM_ARCH -DPND_BUILD -CFLAGS += -funsigned-char +CFLAGS += -DARM_ARCH -DPND_BUILD -Wall CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -ffast-math -CFLAGS += -fno-common -fno-builtin CFLAGS += -ggdb CFLAGS += -O2 @@ -28,14 +26,25 @@ LIBS += -ldl -lpthread -lz # Compilation: +all: $(BIN) picorestore + %.o: %.S $(CC) $(CFLAGS) -c -o $@ $< -all: $(BIN) +cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label $(BIN): $(OBJS) $(CC) $(OBJS) $(LIBS) -o $(BIN) clean: - rm -f *.o $(BIN) + rm -f *.o $(BIN) picorestore + +# ----------- release ----------- + +PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh +rel: gpsp gpsp.sh gpsp.pxml gba_icon.png picorestore readme.txt ../game_config.txt ../COPYING.DOC + rm -rf out + mkdir out + cp $^ out/ + $(PND_MAKE) -p gpsp.pnd -d out -x out/gpsp.pxml -i out/gba_icon.png -c