Mercurial > sdl-ios-xcode
annotate Makefile.android @ 4960:0ab2492f2e17
Fixed 2D video on Android
There was a dummy renderer left in there which was overriding the OpenGL ES renderer.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 04 Jan 2011 20:36:39 -0800 |
parents | 361ada59e3aa |
children | 730b234ba9ec |
rev | line source |
---|---|
4700 | 1 # Makefile to build the SDL library |
2 | |
4955 | 3 include ./android/config.cfg #get ANDROID_NDK, ANDROID_NDK_HOST |
4714 | 4 |
4955 | 5 TOOLS_PATH=$(ANDROID_NDK)/toolchains/arm-eabi-4.4.0/prebuilt/$(ANDROID_NDK_HOST)/bin |
4941 | 6 ANDROID_INCLUDES = -I$(ANDROID_NDK)/platforms/android-4/arch-arm/usr/include |
4700 | 7 INCLUDE = -I./include |
4951
faad280e3280
Fixes the following warning:
Sam Lantinga <slouken@libsdl.org>
parents:
4941
diff
changeset
|
8 CFLAGS = -g -O2 -fno-short-enums $(INCLUDE) $(ANDROID_INCLUDES) -DANDROID -DANDROID_NDK -static |
4700 | 9 |
10 AR = $(TOOLS_PATH)/arm-eabi-ar | |
11 RANLIB = $(TOOLS_PATH)/arm-eabi-ranlib | |
12 CC = $(TOOLS_PATH)/arm-eabi-gcc | |
13 | |
14 | |
15 CONFIG_H = include/SDL_config.h | |
16 TARGET = libSDL.a | |
17 SOURCES = \ | |
18 src/*.c \ | |
19 src/audio/*.c \ | |
20 src/cpuinfo/*.c \ | |
21 src/events/*.c \ | |
22 src/file/*.c \ | |
23 src/joystick/*.c \ | |
24 src/haptic/*.c \ | |
25 src/stdlib/*.c \ | |
26 src/thread/*.c \ | |
27 src/timer/*.c \ | |
28 src/video/*.c \ | |
29 src/power/*.c \ | |
4718
79aa6c61f33b
Added stub android sound system
Paul Hunkin <paul@bieh.net>
parents:
4714
diff
changeset
|
30 src/audio/android/*.c \ |
4960
0ab2492f2e17
Fixed 2D video on Android
Sam Lantinga <slouken@libsdl.org>
parents:
4955
diff
changeset
|
31 src/audio/dummy/*.c \ |
4701
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4700
diff
changeset
|
32 src/video/android/*.c \ |
4722 | 33 src/joystick/android/*.c \ |
4700 | 34 src/haptic/dummy/*.c \ |
35 src/atomic/dummy/*.c \ | |
4720
80f8d672b52e
Oops, I wasn't using pthreads. Fixed so we can have mutexes and stuff
Paul Hunkin <paul@bieh.net>
parents:
4718
diff
changeset
|
36 src/thread/pthread/*.c \ |
80f8d672b52e
Oops, I wasn't using pthreads. Fixed so we can have mutexes and stuff
Paul Hunkin <paul@bieh.net>
parents:
4718
diff
changeset
|
37 src/timer/unix/*.c \ |
4700 | 38 src/loadso/dummy/*.c \ |
39 | |
40 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g') | |
41 | |
42 all: $(TARGET) | |
43 | |
44 $(TARGET): $(CONFIG_H) $(OBJECTS) | |
45 $(AR) crv $@ $^ | |
46 $(RANLIB) $@ | |
47 | |
48 $(CONFIG_H): | |
49 cp $(CONFIG_H).default $(CONFIG_H) | |
50 | |
51 clean: | |
52 rm -f $(TARGET) $(OBJECTS) |