AQStack test code.
[reglxgmr.git] / tmp / cmpl.bak.sh
blob36655175e18c5299128244214ff4a5f1a1692ab2
2 BAKDIR="../dvar-n-doc/$(date +%Y-%m)"
4 cmd_opt "$@"
7 # lib/lxr/script.l
10 #flag=0
11 #if [[ build.sh -nt lib/lxr/script.l || build.sh -nt config.l ]]; then
12 # flag=1
13 # touch lib/lxr/script.l config.l
14 # for
15 #else
16 # SRC_LIST="$SRC_FILE_LIST"
17 #fi
20 echo lib/lxr/script.l flex compile ...
21 if [[ $flag == 1 || ! -f lib/lxr/script.lex.c || $flag == 1 || -f lib/lxr/script.l && lib/lxr/script.l -nt lib/lxr/script.lex.c ]]; then
22 flex -o lib/lxr/script.lex.c lib/lxr/script.l
23 [[ $? != 0 ]] && echo "flex compile (lib/lxr/script.l) failed." && exit
26 echo "======================================================================"
28 #CC="gcc"
29 #LINK="gcc"
31 MACRO_DEF="-DLXRGMR_CODE -DLANGUAGE_CSH"
32 INC_PATHS="-I./ -I../ -Ilib -Iinclude -Isrc "
33 LIB_PATHS=""
34 INC_LIBS="-pthread"
37 # public module
39 #DST_FMT='${dst}'
40 DST_LIST="lxrgmr"
42 SUB_SRCDIR_LIST="src/language"
44 SRC_LIST="
45 lib/lib/SQLTGA/DataAccess.c
46 lib/lib/SQLTGA/MemBlk.c
47 lib/lib/SQLTGA/Node.c
48 lib/lib/SQLTGA/AQStack.c
49 lib/lib/SQLTGA/List.c
50 lib/lib/SQLTGA/FixedAlloc.c
51 lib/util.c
52 lib/lib/StrBuff.c
53 lib/lib/charset.c
54 lib/lxr/script.lex.c
55 lib/TokenParser/TokenParser.c
56 lib/TokenParser/TokenProc.c
57 lib/TokenParser/Parser.c
58 lib/TokenParser/State.c
59 lib/token/Token.c
60 lib/token/Flag.c
61 lib/IptSrc/input.c
62 src/reglxgmr.c
64 # lib/lxr/token_id.c
65 # language/language.c
66 # lib/util.c
67 # lxr/token_id.c
68 # lxr/script.lex.c
70 # token/strtoken.c ==> Parser.c + TokenParser.c + TokenProc.c
72 OBJ_LIST=
75 if [[ $flag_clean != 1 ]]; then
76 build_init
77 update_param
78 # srclist
79 dirbuild "$@"
80 # OBJ_LIST+=" output/obj/token.o output/obj/csh.o "
81 # exit
82 compile
83 link
84 else
85 build_clean
86 dirbuild "$@"
89 echo "======================================================================"
92 exit