a485146c0dded404272f83949c5a37e9c15c4308
[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             linux/fbdev.o linux/xenv.o
12 BIN       = gpsp
13
14 # Platform specific definitions 
15
16 VPATH      += .. ../arm
17 CFLAGS     += -DARM_ARCH -DPND_BUILD -Wall
18 CFLAGS     += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -ffast-math
19 CFLAGS     += -fno-common
20 CFLAGS     += -ggdb
21 CFLAGS     += -O2
22
23 # expecting to have PATH set up to get correct sdl-config first
24 CFLAGS     += `sdl-config --cflags`
25 LIBS       += `sdl-config --libs`
26 LIBS       += -ldl -lpthread -lz
27
28 # Compilation:
29
30 all:    $(BIN)
31
32 %.o: %.S
33         $(CC) $(CFLAGS) -c -o $@ $<
34
35 cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
36
37 $(BIN): $(OBJS)
38         $(CC) $(OBJS) $(LIBS) -o $(BIN)
39
40 clean:
41         rm -f *.o $(BIN) 
42