diff options
Diffstat (limited to 'standalone/bash/Android.mk')
-rw-r--r-- | standalone/bash/Android.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/standalone/bash/Android.mk b/standalone/bash/Android.mk new file mode 100644 index 0000000..937e56c --- /dev/null +++ b/standalone/bash/Android.mk @@ -0,0 +1,23 @@ +ifeq ($(IN_THE_RIGHT_PLACE),yes-yes-i-am) +THIS_DIR := $(call my-dir) + +# AOSP build system things: +define all-c-files-under +$(call all-named-files-under,*.c,$(1)) +endef +define all-named-files-under +$(call find-files-in-subdirs,$(LOCAL_PATH),"$(1)",$(2)) +endef +define find-files-in-subdirs +$(sort $(patsubst ./%,%, \ + $(shell cd $(1) ; \ + find -L $(3) -name $(2) -and -not -name ".*") \ + )) +endef + +$(shell cd $(THIS_DIR) && ./fetch.sh ) +include $(THIS_DIR)/android_external_libncurses-cm-14.1/Android.mk +include $(THIS_DIR)/android_external_bash-cm-14.1/Android.mk +__ndk_modules.bash.CFLAGS += -D'getdtablesize()=sysconf(_SC_OPEN_MAX)' +__ndk_modules.builtins.CFLAGS += -D'getdtablesize()=sysconf(_SC_OPEN_MAX)' +endif |