makefile
来自「开放源码的编译器open watcom 1.6.0版的源代码」· 代码 · 共 53 行
TXT
53 行
plustest_name = winnt
!include ../environ.mif
!ifdef test1
test_cflags = -oxa-d1
!else ifdef test2
test_cflags = -oxa-d1 -br
!else ifdef test3
test_cflags = -d2 -br
!else
test_cflags = -d2
!endif
test_cflags += -w0-zq -i$(%watcom)\h\nt
.c.obj:
$(wpp_$(arch)) $[@ $(test_cflags)
test : .symbolic tomexe.exe tomdll.dll
if exist exec.out del exec.out
$(run) tomexe
diff exec.out exec.chk
%make global
%append $(log_file) PASS $(%__CWD__)
tomexe.exe : tomexe.obj tomexe.lnk
$(linker) @$]@
tomdll.dll : tomdll.obj tomdll.lnk
$(linker) @$]@
tomdll.obj : tomdll.c
$(wpp_$(arch)) $[@ $(test_cflags) -bd
tomexe.lnk : $(__MAKEFILES__)
%create $^@
@%append $^@ NAME $^*
@%append $^@ $(ldebug_$(arch))
@%append $^@ $(lnk_$(arch))
@%append $^@ OPTION map, caseexact, stack=128k, quiet
@%append $^@ FILE tomexe
tomdll.lnk : $(__MAKEFILES__)
%create $^@
@%append $^@ NAME $^*
@%append $^@ $(ldebug_$(arch))
@%append $^@ SYSTEM nt dll initinstance terminstance reference __DLLstart_
@%append $^@ OPTION map, caseexact, stack=128k, quiet
@%append $^@ FILE tomdll
global : .symbolic
@%make common_clean
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?