integrate M-HT's neon scalers
[gpsp.git] / pandora / Makefile
1 # gpSP makefile
2 # Gilead Kutnick - Exophase
3 # pandora port - notaz
4
5 # Global definitions
6
7 CC        = $(CROSS_COMPILE)gcc
8
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
13 BIN       = gpsp
14
15 # Platform specific definitions 
16
17 VPATH      += .. ../arm
18 CFLAGS     += -DARM_ARCH -DPND_BUILD -Wall
19 CFLAGS     += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon -ffast-math
20 CFLAGS     += -ggdb
21 ifndef DEBUG
22 CFLAGS     += -O2
23 endif
24
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
29
30 # Compilation:
31
32 all:    $(BIN) picorestore
33
34 %.o: %.S
35         $(CC) $(CFLAGS) -c -o $@ $<
36
37 cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
38
39 $(BIN): $(OBJS)
40         $(CC) $(OBJS) $(LIBS) -o $(BIN)
41
42 clean:
43         rm -f *.o $(BIN) picorestore
44
45 # ----------- release -----------
46
47 PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
48
49 rel: 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