Home | History | Annotate | Download | only in json-c
      1 # This file is the top android makefile for all sub-modules.
      2 
      3 LOCAL_PATH := $(call my-dir)
      4 include $(CLEAR_VARS)
      5 
      6 json_c_TOP := $(LOCAL_PATH)
      7 
      8 JSON_C_BUILT_SOURCES := Android.mk
      9 
     10 JSON_C_BUILT_SOURCES := $(patsubst %, $(abspath $(json_c_TOP))/%, $(JSON_C_BUILT_SOURCES))
     11 
     12 .PHONY: json-c-configure json-c-configure-real
     13 json-c-configure-real:
     14 	echo $(JSON_C_BUILT_SOURCES)
     15 	cd $(json_c_TOP) ; \
     16 	$(abspath $(json_c_TOP))/autogen.sh && \
     17 	CC="$(CONFIGURE_CC)" \
     18 	CFLAGS="$(CONFIGURE_CFLAGS)" \
     19 	LD=$(TARGET_LD) \
     20 	LDFLAGS="$(CONFIGURE_LDFLAGS)" \
     21 	CPP=$(CONFIGURE_CPP) \
     22 	CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
     23 	PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
     24 	PKG_CONFIG_TOP_BUILD_DIR=/ \
     25 	ac_cv_func_malloc_0_nonnull=yes \
     26 	ac_cv_func_realloc_0_nonnull=yes \
     27 	$(abspath $(json_c_TOP))/$(CONFIGURE) --host=$(CONFIGURE_HOST) \
     28 	--prefix=/system \
     29 	&& \
     30 	for file in $(JSON_C_BUILT_SOURCES); do \
     31 		rm -f $$file && \
     32 		make -C $$(dirname $$file) $$(basename $$file) ; \
     33 	done
     34 
     35 json-c-configure: json-c-configure-real
     36 
     37 PA_CONFIGURE_TARGETS += json-c-configure
     38 
     39 -include $(json_c_TOP)/Android.mk
     40