integrate M-HT's neon scalers
[gpsp.git] / pandora / Makefile
CommitLineData
eb3668fc 1# gpSP makefile
2# Gilead Kutnick - Exophase
3# pandora port - notaz
4
5# Global definitions
6
7CC = $(CROSS_COMPILE)gcc
8
9OBJS = 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 \
e38fee1b 11 neon_scale2x.o neon_scale3x.o neon_eagle2x.o \
eb3668fc 12 linux/fbdev.o linux/xenv.o
13BIN = gpsp
14
15# Platform specific definitions
16
17VPATH += .. ../arm
bbba3209 18CFLAGS += -DARM_ARCH -DPND_BUILD -Wall
e38fee1b 19CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon -ffast-math
eb3668fc 20CFLAGS += -ggdb
e38fee1b 21ifndef DEBUG
eb3668fc 22CFLAGS += -O2
e38fee1b 23endif
eb3668fc 24
25# expecting to have PATH set up to get correct sdl-config first
26CFLAGS += `sdl-config --cflags`
27LIBS += `sdl-config --libs`
28LIBS += -ldl -lpthread -lz
29
30# Compilation:
31
ffc30d25 32all: $(BIN) picorestore
bbba3209 33
eb3668fc 34%.o: %.S
35 $(CC) $(CFLAGS) -c -o $@ $<
36
bbba3209 37cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
eb3668fc 38
39$(BIN): $(OBJS)
40 $(CC) $(OBJS) $(LIBS) -o $(BIN)
41
42clean:
ffc30d25 43 rm -f *.o $(BIN) picorestore
eb3668fc 44
ffc30d25 45# ----------- release -----------
46
47PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
48
49rel: gpsp gpsp.sh gpsp.pxml gba_icon.png picorestore readme.txt ../game_config.txt ../COPYING.DOC
50 rm -rf out
51 mkdir out
52 cp $^ out/
53 $(PND_MAKE) -p gpsp.pnd -d out -x out/gpsp.pxml -i out/gba_icon.png -c