1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2014 by Artsoft Entertainment
7 # https://www.artsoft.org/
8 # -----------------------------------------------------------------------------
10 # =============================================================================
12 LOCAL_PATH := $(call my-dir)
18 SDL_PATH := ../build-projects/android/app/jni/SDL2
19 SDL_IMAGE_PATH := ../build-projects/android/app/jni/SDL2_image
20 SDL_MIXER_PATH := ../build-projects/android/app/jni/SDL2_mixer
21 SDL_NET_PATH := ../build-projects/android/app/jni/SDL2_net
24 $(LOCAL_PATH)/$(SDL_PATH)/include \
25 $(LOCAL_PATH)/$(SDL_IMAGE_PATH) \
26 $(LOCAL_PATH)/$(SDL_MIXER_PATH) \
27 $(LOCAL_PATH)/$(SDL_NET_PATH)
30 OPTIONS = $(DEBUG) -Wall # only for debugging purposes
32 ifdef BUILD_DIST # distribution build
36 LOCAL_CFLAGS := -DTARGET_SDL2 $(OPTIONS)
38 # application source code files
39 LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \
55 libgame/zip/iowin32.c \
57 libgame/zip/miniunz.c \
70 game_sp/BugsTerminals.c \
71 game_sp/DDScrollBuffer.c \
72 game_sp/DDSpriteBuffer.c \
74 game_sp/DoGameStuff.c \
76 game_sp/Explosions.c \
79 game_sp/InitGameConditions.c \
82 game_sp/MainGameLoop.c \
84 game_sp/OrangeDisk.c \
112 LOCAL_SHARED_LIBRARIES := SDL2 SDL2_image SDL2_mixer SDL2_net
114 LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog -lz
116 include $(BUILD_SHARED_LIBRARY)