improve of cmpl.
[bush.git] / lib / malloc / cmpl.sh
blobd0bc6d2d12a67e34667d8ea93c6d49467f26ad91
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/malloc'."
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="malloc"
29 OBJDIR_FMT='${OUTDIR}/obj/lib/malloc/'
31 SRC_LIST="
32 malloc.c
33 trace.c
34 stats.c
35 table.c
36 watch.c
38 OBJ_LIST="
43 if [[ $flag_clean != 1 ]]; then
44 build_init
45 update_param
46 # srclist
47 # dirbuild "$@"
48 echo ===============================================================
49 pwd
50 compile
51 staticlib
52 else
53 build_clean
54 remove_def_c
55 dirbuild "$@"
59 # gcc -c ${CFLAGS} ${SRC_FILE}
61 # rm -f libmalloc.a
62 # ar cr libmalloc.a ${OBJ_LIST}
63 # test -n "ranlib" && ranlib libmalloc.a
66 # make[1]: Leaving directory '/mnt/hgfs/workspace/tmp/srcpkg/bush/lib/malloc'
67 # making lib/readline/libreadline.a in ./lib/readline
68 # make[1]: Entering directory '/mnt/hgfs/workspace/tmp/srcpkg/bush/lib/readline'