get rid of -fno-common
[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
eb3668fc 19CFLAGS += -ggdb
20CFLAGS += -O2
21
22# expecting to have PATH set up to get correct sdl-config first
23CFLAGS += `sdl-config --cflags`
24LIBS += `sdl-config --libs`
25LIBS += -ldl -lpthread -lz
26
27# Compilation:
28
bbba3209 29all: $(BIN)
30
eb3668fc 31%.o: %.S
32 $(CC) $(CFLAGS) -c -o $@ $<
33
bbba3209 34cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
eb3668fc 35
36$(BIN): $(OBJS)
37 $(CC) $(OBJS) $(LIBS) -o $(BIN)
38
39clean:
40 rm -f *.o $(BIN)
41