You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Android.configure.mk 1.1 kB

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