Mercurial > sdl-ios-xcode
annotate Makefile.android @ 4899:5d529386db73
attached is a patch to support DirectFB in include/SDL_syswm.h. It
defines SDL_SYSWM_DIRECTFB as a subsystem.
This allows developers to e.g. access DirectFB's video and picture
providers.
Kind regards,
André
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 27 Sep 2010 00:50:46 -0700 |
parents | faa228f7ce5b |
children | bd009a923441 |
rev | line source |
---|---|
4700 | 1 # Makefile to build the SDL library |
2 | |
4714 | 3 include ./android/config.cfg #get ANDROID_NDK |
4 | |
4700 | 5 TOOLS_PATH=$(ANDROID_NDK)/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin |
6 ANDROID_INCLUDES = -I$(ANDROID_NDK)/build/platforms/android-4/common/include \ | |
7 -I$(ANDROID_NDK)/build/platforms/android-4/arch-arm/usr/include | |
8 INCLUDE = -I./include | |
4701
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4700
diff
changeset
|
9 CFLAGS = -g -O2 $(INCLUDE) $(ANDROID_INCLUDES) -DANDROID -DANDROID_NDK -static |
4700 | 10 |
11 AR = $(TOOLS_PATH)/arm-eabi-ar | |
12 RANLIB = $(TOOLS_PATH)/arm-eabi-ranlib | |
13 CC = $(TOOLS_PATH)/arm-eabi-gcc | |
14 | |
15 | |
16 CONFIG_H = include/SDL_config.h | |
17 TARGET = libSDL.a | |
18 SOURCES = \ | |
19 src/*.c \ | |
20 src/audio/*.c \ | |
21 src/cpuinfo/*.c \ | |
22 src/events/*.c \ | |
23 src/file/*.c \ | |
24 src/joystick/*.c \ | |
25 src/haptic/*.c \ | |
26 src/stdlib/*.c \ | |
27 src/thread/*.c \ | |
28 src/timer/*.c \ | |
29 src/video/*.c \ | |
30 src/power/*.c \ | |
4718
79aa6c61f33b
Added stub android sound system
Paul Hunkin <paul@bieh.net>
parents:
4714
diff
changeset
|
31 src/audio/android/*.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) |