|
Packit Service |
def718 |
# This file is the top android makefile for all sub-modules.
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
# Suggested settings to build for Android:
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
# export PATH=$PATH:/opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
|
|
Packit Service |
def718 |
# export SYSROOT=/opt/android-ndk/platforms/android-9/arch-arm/usr/
|
|
Packit Service |
def718 |
# export LD=arm-linux-androideabi-ld
|
|
Packit Service |
def718 |
# export CC="arm-linux-androideabi-gcc --sysroot=/opt/android-ndk/platforms/android-9/arch-arm"
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
# Then run autogen.sh, configure and make.
|
|
Packit Service |
def718 |
#
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
LOCAL_PATH := $(call my-dir)
|
|
Packit Service |
def718 |
include $(CLEAR_VARS)
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
json_c_TOP := $(LOCAL_PATH)
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
JSON_C_BUILT_SOURCES := Android.mk
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
JSON_C_BUILT_SOURCES := $(patsubst %, $(abspath $(json_c_TOP))/%, $(JSON_C_BUILT_SOURCES))
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
.PHONY: json-c-configure json-c-configure-real
|
|
Packit Service |
def718 |
json-c-configure-real:
|
|
Packit Service |
def718 |
echo $(JSON_C_BUILT_SOURCES)
|
|
Packit Service |
def718 |
cd $(json_c_TOP) ; \
|
|
Packit Service |
def718 |
$(abspath $(json_c_TOP))/autogen.sh && \
|
|
Packit Service |
def718 |
CC="$(CONFIGURE_CC)" \
|
|
Packit Service |
def718 |
CFLAGS="$(CONFIGURE_CFLAGS)" \
|
|
Packit Service |
def718 |
LD=$(TARGET_LD) \
|
|
Packit Service |
def718 |
LDFLAGS="$(CONFIGURE_LDFLAGS)" \
|
|
Packit Service |
def718 |
CPP=$(CONFIGURE_CPP) \
|
|
Packit Service |
def718 |
CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
|
|
Packit Service |
def718 |
PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
|
|
Packit Service |
def718 |
PKG_CONFIG_TOP_BUILD_DIR=/ \
|
|
Packit Service |
def718 |
ac_cv_func_malloc_0_nonnull=yes \
|
|
Packit Service |
def718 |
ac_cv_func_realloc_0_nonnull=yes \
|
|
Packit Service |
def718 |
$(abspath $(json_c_TOP))/$(CONFIGURE) --host=$(CONFIGURE_HOST) \
|
|
Packit Service |
def718 |
--prefix=/system \
|
|
Packit Service |
def718 |
&& \
|
|
Packit Service |
def718 |
for file in $(JSON_C_BUILT_SOURCES); do \
|
|
Packit Service |
def718 |
rm -f $$file && \
|
|
Packit Service |
def718 |
make -C $$(dirname $$file) $$(basename $$file) ; \
|
|
Packit Service |
def718 |
done
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
json-c-configure: json-c-configure-real
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
PA_CONFIGURE_TARGETS += json-c-configure
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
-include $(json_c_TOP)/Android.mk
|