2 . ..
/tools
/build-srcpkg
/shlib
/incfile.shlib
4 . ..
/tools
/build-srcpkg
/shlib
/cmplib.shlib
6 #. ../build/cmplib.shlib
8 BAKDIR
="../../dvar-n-doc/$(date +%Y-%m)"
13 # =======================================================================
16 INC_PATHS
="-I. -I.. -I../src -I../include -I../lib "
17 # INC_PATHS="-I. -I./src -I./include -I./lib -I./builtins"
20 OBJDIR_FMT
='${OUTDIR}/obj/builtins/'
22 # make[1]: Leaving directory '/mnt/hgfs/workspace/tmp/srcpkg/bush/builtins'
81 OBJDIR
="$(eval echo ${OBJDIR_FMT})"
84 for srcfile
in $SRC_LIST; do
85 deffile
=${srcfile##*/}
86 deffile
="${deffile//\.c/\.def}"
88 [[ ! -f $deffile ]] && continue;
90 if [[ $deffile -nt $srcfile
91 ||
! -f $srcfile ]]; then
92 echo def
file $deffile build to
$srcfile ...
93 mkdir
-p $
(dirname $srcfile)
94 .
/mkbuiltins
-D .
$deffile
95 [[ $?
!= 0 ]] && echo "compile(mkbuiltins) ($deffile) failed." && exit -1
103 OBJDIR
="$(eval echo ${OBJDIR_FMT})"
105 for srcfile
in $SRC_LIST; do
106 deffile
=${srcfile##*/}
107 deffile
="${srcfile//\.c/\.def}"
109 [[ ! -f $deffile ]] && continue;
111 echo "append deffile ($deffile) $srcfile"
112 if [[ -f $srcfile ]]; then
113 DEF_C_LIST
+=" $srcfile"
119 # mkdir -p .obj/builtins/`dirname alias`
121 # ./mkbuiltins -D . alias.def
122 # gcc -c ${CFLAGS} alias.c -o .obj/builtins/alias.o || ( rm -f alias.c ; exit 1 )
125 gcc
-DHAVE_CONFIG_H -DSHELL -I.
-I..
-I..
-I..
/src
-I..
/include
-I..
/lib
-I.
-rdynamic -g -O2 -Wno-parentheses -Wno-format-security mkbuiltins.c
-ldl -o mkbuiltins
127 # gcc -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../src -I../include -I../lib -I. -g -O2 -Wno-parentheses -Wno-format-security mkbuiltins.c
128 # gcc -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -o mkbuiltins mkbuiltins.o
130 .
/mkbuiltins
-externfile builtext.h
-structfile builtins.c
-noproduction -D .
*.def
132 if [[ $flag_clean != 1 ]]; then