sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

Makefile.pandora (1521B)


      1 # Makefile to build the pandora SDL library
      2 
      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
      8 
      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
     12 
     13 TARGET  = libSDL.a
     14 
     15 SOURCES = 
     16 	./src/*.c \
     17 	./src/atomic/*.c \
     18 	./src/audio/*.c \
     19 	./src/audio/disk/*.c \
     20 	./src/audio/dsp/*.c \
     21 	./src/audio/dummy/*.c \
     22 	./src/cpuinfo/*.c \
     23 	./src/events/*.c \
     24 	./src/file/*.c \
     25 	./src/filesystem/unix/*.c \
     26 	./src/haptic/*.c \
     27 	./src/haptic/linux/*.c \
     28 	./src/joystick/*.c \
     29 	./src/joystick/linux/*.c \
     30 	./src/loadso/dlopen/*.c \
     31 	./src/power/*.c \
     32 	./src/sensor/*.c \
     33 	./src/sensor/dummy/*.c \
     34 	./src/stdlib/*.c \
     35 	./src/thread/*.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 \
     40 	./src/timer/*.c \
     41 	./src/timer/unix/*.c \
     42 	./src/video/*.c \
     43 	./src/video/dummy/*.c \
     44 	./src/video/pandora/SDL_pandora.o \
     45 	./src/video/pandora/SDL_pandora_events.o \
     46 	./src/video/x11/*.c \
     47 	
     48 
     49 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
     50 
     51 CONFIG_H = $(shell cp include/SDL_config_pandora.h include/SDL_config.h)
     52 
     53 all: $(TARGET)
     54 
     55 $(TARGET): $(CONFIG_H) $(OBJECTS)
     56 	$(AR) crv $@ $^
     57 	$(RANLIB) $@
     58 
     59 clean:
     60 	rm -f $(TARGET) $(OBJECTS)