Subversion Repositories eduke32

Rev

Rev 4387 | Rev 4693 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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