improve of cmpl.
[bush.git] / lib / readline / cmpl.sh
blobadd1a08141f76861eaeece5ee54a4a46d2d3fab2
2 . ../../tools/build-srcpkg/shlib/incfile.shlib
4 . ../../tools/build-srcpkg/shlib/cmplib.shlib
6 BAKDIR="../../dvar-n-doc/$(date +%Y-%m)"
8 cmd_opt "$@"
10 echo "###################################################################################"
11 echo "# build dir of 'lib/readline'."
12 echo "###################################################################################"
14 # gcc -c ${CFLAGS} ${SRC_FILE}
16 # ( cd /mnt/hgfs/workspace/tmp/srcpkg/bush && make -w pathnames.h )
17 # make[2]: Entering directory '/mnt/hgfs/workspace/tmp/srcpkg/bush'
18 # make[2]: *** No rule to make target 'pathnames.h'. Stop.
19 # make[2]: Leaving directory '/mnt/hgfs/workspace/tmp/srcpkg/bush'
20 # Makefile:143: recipe for target '/mnt/hgfs/workspace/tmp/srcpkg/bush/pathnames.h' failed
21 # make[1]: [/mnt/hgfs/workspace/tmp/srcpkg/bush/pathnames.h] Error 2 (ignored)
23 MACRO_DEF="-DHAVE_CONFIG_H -DSHELL "
24 INC_PATHS=" -I. -I../.. -I../.. -I../../src -I../../lib -I../../include -I. "
25 MISC_CFLAGS=" -g -O2 -Wno-parentheses -Wno-format-security"
26 #CFLAGS="${INC_PATH} ${MACRO_DEF} -g -O2 -Wno-parentheses -Wno-format-security "
27 DST_LIST="readline"
29 OBJDIR_FMT='${OUTDIR}/obj/lib/readline/'
31 SRC_LIST="
32 readline.c
33 vi_mode.c
34 funmap.c
35 keymaps.c
36 parens.c
37 search.c
38 rltty.c
39 complete.c
40 bind.c
41 isearch.c
42 display.c
43 signals.c
44 util.c
45 kill.c
46 undo.c
47 macro.c
48 input.c
49 callback.c
50 terminal.c
51 text.c
52 nls.c
53 misc.c
54 history.c
55 histexpand.c
56 histfile.c
57 histsearch.c
58 shell.c
59 savestring.c
60 mbutil.c
61 ./tilde.c
62 colors.c
63 parse-colors.c
64 xmalloc.c
65 xfree.c
66 compat.c
68 OBJ_LIST="
73 if [[ $flag_clean != 1 ]]; then
74 build_init
75 update_param
76 # srclist
77 # dirbuild "$@"
78 echo ===============================================================
79 pwd
80 compile
81 staticlib
82 else
83 build_clean
84 remove_def_c
85 dirbuild "$@"
89 # gcc -c ${CFLAGS} ${SRC_FILE}
91 # rm -f libsh.a
92 # ar cr libsh.a ${OBJ_LIST}
93 # test -n "ranlib" && ranlib libsh.a
96 # make[1]: Leaving directory '/mnt/hgfs/workspace/tmp/srcpkg/bush/lib/sh'
97 # making lib/readline/libreadline.a in ./lib/readline
98 # make[1]: Entering directory '/mnt/hgfs/workspace/tmp/srcpkg/bush/lib/readline'