cppexamp.mif

来自「开放源码的编译器open watcom 1.6.0版的源代码」· MIF 代码 · 共 61 行

MIF
61
字号
# cppexamp.mif
#
# This file is always included by makefiles's in sample sub-directories.
#
# Note: the file includes local.mif from this directory; local.mif is empty
#       as shipped.  It can be used for any customization required in a
#       particular installation.
#


!include ../local.mif

.extensions:
.extensions: .exe .lnk .obj .cpp .c

!ifndef cpp_compiler
!   ifdef __NTAXP__
!       define cpp_compiler wppaxp
!       define c_compiler wccaxp
!   else
!       define cpp_compiler wpp386
!       define c_compiler wcc386
!   endif
!endif

!ifndef linker
!   define linker wlink
!endif

!ifndef link_cmds
!   define link_cmds linkpgm.lnk
!endif

!ifndef cpp_options
!   define cpp_options -zq -xs -d1
!   define c_options -zq -d1
!endif

.cpp.obj: .AUTODEPEND
    $(cpp_compiler) $(cpp_options) $[*

.c.obj: .AUTODEPEND
    $(c_compiler) $(c_options) $[*

test.exe: $(objects) $(link_cmds)
    $(linker) @$(link_cmds)

linkpgm.lnk: $(__MAKEFILES__) ../local.mif
    @%create $^@
    @%append $^@ NAME    test
    @%append $^@ OPTION  quiet, eliminate, map, show
    @%append $^@ DEBUG   all
    @for %i in ($(objects)) do @%append $^@ FILE    %i

clean: .SYMBOLIC
    @if exist *.exe del *.exe
    @if exist *.lnk del *.lnk
    @if exist *.obj del *.obj
    @if exist *.map del *.map
    @if exist *.err del *.err

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?