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