1 # Makefile to build the pandora SDL library
3 AR = arm-none-linux-gnueabi-ar
4 RANLIB = arm-none-linux-gnueabi-ranlib
5 CC = arm-none-linux-gnueabi-gcc
6 CXX = arm-none-linux-gnueabi-g++
7 STRIP = arm-none-linux-gnueabi-strip
9 CFLAGS = -O3 -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp \
10 -mfpu=neon -ftree-vectorize -ffast-math -fomit-frame-pointer -fno-strict-aliasing -fsingle-precision-constant \
11 -I./include -I$(PNDSDK)/usr/include
19 ./src/audio/disk/*.c \
21 ./src/audio/dummy/*.c \
25 ./src/filesystem/unix/*.c \
27 ./src/haptic/linux/*.c \
29 ./src/joystick/linux/*.c \
30 ./src/loadso/dlopen/*.c \
33 ./src/sensor/dummy/*.c \
36 ./src/thread/pthread/SDL_syscond.c \
37 ./src/thread/pthread/SDL_sysmutex.c \
38 ./src/thread/pthread/SDL_syssem.c \
39 ./src/thread/pthread/SDL_systhread.c \
41 ./src/timer/unix/*.c \
43 ./src/video/dummy/*.c \
44 ./src/video/pandora/SDL_pandora.o \
45 ./src/video/pandora/SDL_pandora_events.o \
49 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
51 CONFIG_H = $(shell cp include/SDL_config_pandora.h include/SDL_config.h)
55 $(TARGET): $(CONFIG_H) $(OBJECTS)
60 rm -f $(TARGET) $(OBJECTS)