Rev 4387 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4386 | terminx | 1 | # Copyright (C) 2009 The Android Open Source Project |
2 | # |
||
3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
||
4 | # you may not use this file except in compliance with the License. |
||
5 | # You may obtain a copy of the License at |
||
6 | # |
||
7 | # http://www.apache.crg/licenses/LICENSE-2.0 |
||
8 | # |
||
9 | # Unless required by applicable law or agreed to in writing, software |
||
10 | # distributed under the License is distributed on an "AS IS" BASIS, |
||
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
12 | # See the License for the specific language governing permissions and |
||
13 | # limitations under the License. |
||
14 | # |
||
15 | LOCAL_PATH := $(call my-dir) |
||
16 | |||
17 | |||
18 | |||
19 | include $(CLEAR_VARS) |
||
20 | |||
21 | |||
22 | LOCAL_MODULE := duke |
||
23 | |||
24 | |||
25 | LOCAL_CFLAGS := -fPIC -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -pthread -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -DHAVE_INTTYPES -D_GNU_SOURCE=1 -D_REENTRANT -DRENDERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -Wno-attributes |
||
26 | |||
27 | #Needed my jaudiolib |
||
28 | LOCAL_CFLAGS += -DHAVE_SDL |
||
29 | |||
30 | LOCAL_LDLIBS += -lGLESv1_CM -lEGL |
||
31 | |||
32 | LOCAL_LDLIBS += -llog |
||
33 | |||
34 | LOCAL_CFLAGS += -march=armv7-a -mfloat-abi=softfp |
||
35 | LOCAL_LDLIBS += -Wl,--fix-cortex-a8 |
||
36 | |||
37 | |||
38 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include $(LOCAL_PATH)/build/include $(TOP_DIR)/SDL2/include $(TOP_DIR)/SDL2_mixer $(IDTECH_DIR)/libpng $(IDTECH_DIR)/TinyXML $(IDTECH_DIR)/TouchControls $(IDTECH_DIR)/ |
||
39 | |||
40 | ANDROID_SRC = \ |
||
41 | source/android/android-jni.cpp \ |
||
42 | source/android/in_android.c |
||
43 | |||
44 | BUILD_SRC = \ |
||
45 | build/src/a-c.c \ |
||
46 | build/src/baselayer.c \ |
||
47 | build/src/cache1d.c \ |
||
48 | build/src/compat.c \ |
||
49 | build/src/crc32.c \ |
||
50 | build/src/defs.c \ |
||
51 | build/src/engine.c \ |
||
52 | build/src/polymost.c \ |
||
53 | build/src/texcache.c \ |
||
54 | build/src/dxtfilter.c \ |
||
55 | build/src/hightile.c \ |
||
56 | build/src/textfont.c \ |
||
57 | build/src/smalltextfont.c \ |
||
58 | build/src/kplib.c \ |
||
59 | build/src/lz4.c \ |
||
60 | build/src/osd.c \ |
||
61 | build/src/pragmas.c \ |
||
62 | build/src/scriptfile.c \ |
||
63 | build/src/mutex.c |
||
64 | |||
65 | GL_SRC = \ |
||
66 | build/src/mdsprite.c \ |
||
67 | build/src/glbuild_android.c \ |
||
68 | |||
69 | SDL_SRC = \ |
||
70 | build/src/sdlayer.c \ |
||
71 | |||
72 | JMACT_SRC=source/jmact/file_lib.c \ |
||
73 | source/jmact//control.c \ |
||
74 | source/jmact//keyboard.c \ |
||
75 | source/jmact//mouse.c \ |
||
76 | source/jmact//joystick.c \ |
||
77 | source/jmact//mathutil.c \ |
||
78 | source/jmact//scriplib.c \ |
||
79 | source/jmact//animlib.c |
||
80 | |||
81 | GAME_SRC=source/game.c \ |
||
82 | source/actors.c \ |
||
83 | source/anim.c \ |
||
84 | source/common.c \ |
||
85 | source/config.c \ |
||
86 | source/demo.c \ |
||
87 | source/gamedef.c \ |
||
88 | source/gameexec.c \ |
||
89 | source/gamevars.c \ |
||
90 | source/global.c \ |
||
91 | source/input.c \ |
||
92 | source/menus.c \ |
||
93 | source/namesdyn.c \ |
||
94 | source/net.c \ |
||
95 | source/player.c \ |
||
96 | source/premap.c \ |
||
97 | source/savegame.c \ |
||
98 | source/sector.c \ |
||
99 | source/rts.c \ |
||
100 | source/osdfuncs.c \ |
||
101 | source/osdcmds.c \ |
||
102 | source/grpscan.c \ |
||
103 | source/sounds.c \ |
||
104 | source/soundsdyn.c \ |
||
105 | source/sdlmusic.c \ |
||
106 | |||
107 | JAUDIO_SRC=source/jaudiolib/src/drivers.c \ |
||
108 | source/jaudiolib/src//fx_man.c \ |
||
109 | source/jaudiolib/src//multivoc.c \ |
||
110 | source/jaudiolib/src//mix.c \ |
||
111 | source/jaudiolib/src//mixst.c \ |
||
112 | source/jaudiolib/src//pitch.c \ |
||
113 | source/jaudiolib/src//formats.c \ |
||
114 | source/jaudiolib/src//vorbis.c \ |
||
115 | source/jaudiolib/src//flac.c \ |
||
116 | source/jaudiolib/src//xa.c \ |
||
117 | source/jaudiolib/src//driver_nosound.c \ |
||
118 | source/jaudiolib/src//driver_sdl.c |
||
119 | |||
120 | |||
121 | ENET_SRC=source/enet/src/callbacks.c \ |
||
122 | source/enet/src/host.c \ |
||
123 | source/enet/src/list.c \ |
||
124 | source/enet/src/packet.c \ |
||
125 | source/enet/src/peer.c \ |
||
126 | source/enet/src/protocol.c \ |
||
127 | source/enet/src/compress.c \ |
||
128 | source/enet/src/unix.c |
||
129 | |||
130 | LOCAL_SRC_FILES = $(ANDROID_SRC) $(ENET_SRC) $(JAUDIO_SRC) $(JMACT_SRC) $(GAME_SRC) $(BUILD_SRC) $(GL_SRC) $(SDL_SRC) |
||
131 | |||
132 | |||
133 | LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lOpenSLES -lz |
||
134 | LOCAL_STATIC_LIBRARIES := nanogl SDL2_net libjpeg libpng |
||
135 | LOCAL_SHARED_LIBRARIES := touchcontrols openal SDL2 SDL2_mixer SDL2_image |
||
136 | |||
137 | include $(BUILD_SHARED_LIBRARY) |
||
138 |