Makefile.pandora
changeset 3161 494559cc723b
child 3170 b7a48f533966
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.pandora	Sun May 31 11:53:12 2009 +0000
     1.3 @@ -0,0 +1,37 @@
     1.4 +# Makefile to build the pandora SDL library
     1.5 +
     1.6 +AR	= arm-none-linux-gnueabi-ar
     1.7 +RANLIB	= arm-none-linux-gnueabi-ranlib
     1.8 +CC = arm-none-linux-gnueabi-gcc
     1.9 +CXX = arm-none-linux-gnueabi-g++
    1.10 +STRIP = arm-none-linux-gnueabi-strip
    1.11 +
    1.12 +CFLAGS  = -O3 -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp \
    1.13 +	-mfpu=neon -ftree-vectorize -ffast-math -fomit-frame-pointer -fno-strict-aliasing -fsingle-precision-constant \
    1.14 +	-I./include -I$(PNDSDK)/usr/include
    1.15 +
    1.16 +TARGET  = libSDL.a
    1.17 +
    1.18 +SOURCES = ./src/*.c ./src/audio/*.c ./src/cdrom/*.c ./src/cpuinfo/*.c ./src/events/*.c \
    1.19 +	./src/file/*.c ./src/stdlib/*.c ./src/thread/*.c ./src/timer/*.c ./src/video/*.c \
    1.20 +	./src/joystick/*.c ./src/haptic/*.c ./src/video/dummy/*.c ./src/audio/disk/*.c \
    1.21 +	./src/audio/dummy/*.c ./src/loadso/dlopen/*.c ./src/audio/dsp/*.c ./src/audio/dma/*.c \
    1.22 +	./src/thread/pthread/SDL_systhread.c ./src/thread/pthread/SDL_syssem.c \
    1.23 +	./src/thread/pthread/SDL_sysmutex.c ./src/thread/pthread/SDL_syscond.c \
    1.24 +	./src/joystick/linux/*.c ./src/haptic/linux/*.c ./src/timer/unix/*.c ./src/cdrom/dummy/*.c \
    1.25 +	./src/video/pandora/SDL_pandora.o ./src/video/pandora/SDL_pandora_events.o ./src/video/x11/*.c
    1.26 +	
    1.27 +
    1.28 +OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    1.29 +
    1.30 +all: $(TARGET)
    1.31 +
    1.32 +$(TARGET): $(CONFIG_H) $(OBJECTS)
    1.33 +	$(AR) crv $@ $^
    1.34 +	$(RANLIB) $@
    1.35 +
    1.36 +$(CONFIG_H):
    1.37 +	cp include/SDL_config_pandora.h include/SDL_config.h
    1.38 +
    1.39 +clean:
    1.40 +	rm -f $(TARGET) $(OBJECTS)