-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake.cmd
32 lines (25 loc) · 1.2 KB
/
make.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
::往里面写入编译指令,固定格式,避免每次都要重复输入
gcc yjhc_preProcess\doc_del.c -o exe\dd
gcc yjhc_preProcess\pound_remove.c -o exe\pr
gcc yjhc_preProcess\pound_substitute.c -o exe\ps
gcc yjhc_preProcess\global_remove.c -o exe\gr
gcc yjhc_preProcess\type_remove.c -o exe\tr
gcc yjhc_preProcess\func_split.c -o exe\fs
gcc yjhc_preProcess\func_body_lexer.c -o exe\fbl
@REM 准备read工具到out中
gcc tool\token_readable.c -o out\read
@REM 准备gtg工具到exe中
gcc gtg\main.c -o exe\gtg
@REM 准备refector工具到exe中,该工具主要使用gtg生成的语法动作表以及token_reader模块
@REM 能够根据函数的token列表获得函数的格式化
gcc yjhc_func_translate\formatter.c -o exe\formatter
@REM 准备个函数代码块分割工具,用来检查token_reader的分割功能是否正确
gcc yjhc_func_translate\tokens_split.c -o exe\tks
@REM 准备编译yjhc_func_translate要用的头文件要的生成工具
gcc tool\genBitMap.c -o exe\genBitMap
@REM 然后使用该生成工具去产生头文件
exe\genBitMap > yjhc_func_translate/config.h
@REM 准备翻译工具
gcc yjhc_func_translate\main.c -o exe\ft
@REM 准备连接工具
gcc yjhc_combine\combine.c -o exe\combine