Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
executable file
·
51 lines (41 loc) · 1.11 KB

Makefile.android

File metadata and controls

executable file
·
51 lines (41 loc) · 1.11 KB
 
May 23, 2010
May 23, 2010
1
2
# Makefile to build the SDL library
Jul 27, 2010
Jul 27, 2010
3
4
include ./android/config.cfg #get ANDROID_NDK
Jan 2, 2011
Jan 2, 2011
5
6
TOOLS_PATH=$(ANDROID_NDK)/toolchains/arm-eabi-4.4.0/prebuilt/darwin-x86/bin
ANDROID_INCLUDES = -I$(ANDROID_NDK)/platforms/android-4/arch-arm/usr/include
May 23, 2010
May 23, 2010
7
INCLUDE = -I./include
Jun 10, 2010
Jun 10, 2010
8
CFLAGS = -g -O2 $(INCLUDE) $(ANDROID_INCLUDES) -DANDROID -DANDROID_NDK -static
May 23, 2010
May 23, 2010
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AR = $(TOOLS_PATH)/arm-eabi-ar
RANLIB = $(TOOLS_PATH)/arm-eabi-ranlib
CC = $(TOOLS_PATH)/arm-eabi-gcc
CONFIG_H = include/SDL_config.h
TARGET = libSDL.a
SOURCES = \
src/*.c \
src/audio/*.c \
src/cpuinfo/*.c \
src/events/*.c \
src/file/*.c \
src/joystick/*.c \
src/haptic/*.c \
src/stdlib/*.c \
src/thread/*.c \
src/timer/*.c \
src/video/*.c \
src/power/*.c \
Jul 27, 2010
Jul 27, 2010
30
src/audio/android/*.c \
Jun 10, 2010
Jun 10, 2010
31
src/video/android/*.c \
Jul 27, 2010
Jul 27, 2010
32
src/joystick/android/*.c \
May 23, 2010
May 23, 2010
33
34
src/haptic/dummy/*.c \
src/atomic/dummy/*.c \
Jul 27, 2010
Jul 27, 2010
35
36
src/thread/pthread/*.c \
src/timer/unix/*.c \
May 23, 2010
May 23, 2010
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
src/loadso/dummy/*.c \
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
all: $(TARGET)
$(TARGET): $(CONFIG_H) $(OBJECTS)
$(AR) crv $@ $^
$(RANLIB) $@
$(CONFIG_H):
cp $(CONFIG_H).default $(CONFIG_H)
clean:
rm -f $(TARGET) $(OBJECTS)