u7/pandora release
[gpsp.git] / pandora / Makefile
index 090cccb..81a52ea 100644 (file)
@@ -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