blob: 958c3dc372d0a2e79fefd00fa53d0534f5b6bae1 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5 alias.c \
6 arith.c \
7 arith_lex.c \
8 builtins.c \
9 cd.c \
10 error.c \
11 eval.c \
12 exec.c \
13 expand.c \
14 input.c \
15 jobs.c \
16 main.c \
17 memalloc.c \
18 miscbltin.c \
19 mystring.c \
20 nodes.c \
21 options.c \
22 parser.c \
23 redir.c \
24 show.c \
25 syntax.c \
26 trap.c \
27 output.c \
28 var.c \
29 bltin/echo.c \
30 init.c
31
32LOCAL_MODULE:= sh
33
Jack Paleviche7de18e2010-05-24 20:37:38 +080034LOCAL_CFLAGS += -DSHELL -DWITH_LINENOISE
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080035
Jack Palevich0cf08ed2010-05-25 08:20:12 +080036LOCAL_STATIC_LIBRARIES := liblinenoise
37
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080038make_ash_files: PRIVATE_SRC_FILES := $(SRC_FILES)
39make_ash_files: PRIVATE_CFLAGS := $(LOCAL_CFLAGS)
40make_ash_files:
41 p4 edit arith.c arith_lex.c arith.h builtins.h builtins.c
42 p4 edit init.c nodes.c nodes.h token.h
43 sh ./mktokens
44 bison -o arith.c arith.y
45 flex -o arith_lex.c arith_lex.l
46 perl -ne 'print if ( /^\#\s*define\s+ARITH/ );' < arith.c > arith.h
47 sh ./mkbuiltins shell.h builtins.def . -Wall -O2
48 sh ./mknodes.sh nodetypes nodes.c.pat .
49 sh ./mkinit.sh $(PRIVATE_SRC_FILES)
50
51include $(BUILD_EXECUTABLE)