1# Copyright © 2010 2# Thorsten Glaser <t.glaser@tarent.de> 3# This file is provided under the same terms as mksh. 4 5LOCAL_PATH:= $(call my-dir) 6 7 8# /system/etc/mkshrc 9 10include $(CLEAR_VARS) 11 12LOCAL_MODULE:= mkshrc 13LOCAL_MODULE_TAGS:= shell_mksh 14LOCAL_MODULE_CLASS:= ETC 15LOCAL_MODULE_PATH:= $(TARGET_OUT)/etc 16LOCAL_SRC_FILES:= $(LOCAL_MODULE) 17include $(BUILD_PREBUILT) 18 19 20# /system/bin/mksh 21 22include $(CLEAR_VARS) 23 24LOCAL_MODULE:= mksh 25LOCAL_MODULE_TAGS:= shell_mksh 26 27# mksh source files 28LOCAL_SRC_FILES:= src/lalloc.c src/edit.c src/eval.c src/exec.c \ 29 src/expr.c src/funcs.c src/histrap.c src/jobs.c \ 30 src/lex.c src/main.c src/misc.c src/shf.c \ 31 src/syn.c src/tree.c src/var.c 32 33LOCAL_SYSTEM_SHARED_LIBRARIES:= libc 34 35LOCAL_C_INCLUDES:= $(LOCAL_PATH)/src 36# additional flags first, then from Makefrag.inc: CFLAGS, CPPFLAGS 37LOCAL_CFLAGS:= -DMKSH_DEFAULT_EXECSHELL=\"/system/bin/sh\" \ 38 -DMKSH_DEFAULT_TMPDIR=\"/sqlite_stmt_journals\" \ 39 -DMKSHRC_PATH=\"/system/etc/mkshrc\" \ 40 -fwrapv \ 41 -DMKSH_ASSUME_UTF8=0 -DMKSH_NOPWNAM \ 42 -D_GNU_SOURCE \ 43 -DHAVE_ATTRIBUTE_BOUNDED=0 -DHAVE_ATTRIBUTE_FORMAT=1 \ 44 -DHAVE_ATTRIBUTE_NONNULL=1 -DHAVE_ATTRIBUTE_NORETURN=1 \ 45 -DHAVE_ATTRIBUTE_UNUSED=1 -DHAVE_ATTRIBUTE_USED=1 \ 46 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MKDEV_H=0 \ 47 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_SYSMACROS_H=1 \ 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