2 # Gilead Kutnick - Exophase
7 CC = $(CROSS_COMPILE)gcc
9 OBJS = pnd.o main.o cpu.o memory.o video.o input.o sound.o gui.o \
10 cheats.o zip.o cpu_threaded.o arm_stub.o video_blend.o warm.o \
11 neon_scale2x.o neon_scale3x.o neon_eagle2x.o \
12 linux/fbdev.o linux/xenv.o
15 # Platform specific definitions
18 CFLAGS += -DARM_ARCH -DPND_BUILD -Wall
19 CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon -ffast-math
25 # expecting to have PATH set up to get correct sdl-config first
26 CFLAGS += `sdl-config --cflags`
27 LIBS += `sdl-config --libs`
28 LIBS += -ldl -lpthread -lz
32 all: $(BIN) picorestore
35 $(CC) $(CFLAGS) -c -o $@ $<
37 cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
40 $(CC) $(OBJS) $(LIBS) -o $(BIN)
43 rm -f *.o $(BIN) picorestore
45 # ----------- release -----------
47 PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
49 rel: gpsp gpsp.sh gpsp.pxml gba_icon.png picorestore readme.txt ../game_config.txt ../COPYING.DOC
53 $(PND_MAKE) -p gpsp.pnd -d out -x out/gpsp.pxml -i out/gba_icon.png -c