master.mif

来自「Open Watcom 的 C 编译器源代码」· MIF 代码 · 共 49 行

MIF
49
字号
proj_name = wcl

!ifndef wcl_autodepends
wcl_autodepends = .AUTODEPEND
!endif

!include cproj.mif
!include deftarg.mif
!include defrule.mif

objs = wcl.obj clcommon.obj
!ifeq host_os dos
objs += swchar.obj
!endif

extra_c_flags = -s

!ifeq target_cpu i86
name = wcl.exe
extra_c_flags += -DWCLI86
!else ifeq target_cpu 386
name = wcl386.exe
extra_c_flags += -DWCL386
!else ifeq target_cpu axp
name = wclaxp.exe
extra_c_flags += -DWCLAXP
!else ifeq target_cpu ppc
name = wclppc.exe
extra_c_flags += -DWCLPPC
!else
objs = owcc.obj clcommon.obj getopt.obj quit.obj
!ifeq host_os linux
name = owcc.elf
!else
name = owcc.exe
!endif
!endif
extra_c_flags_swchar = -i"../../h;../../dos386.i86;$(comp_cfg_dir)/h"
extra_c_flags_owcc = -i"$(posix_dir)/h"
extra_c_flags_getopt = -i"$(posix_dir)/h"
extra_c_flags_quit = -i"$(posix_dir)/h"

extra_l_flags = op map

.c: ../c;../../c;$(posix_dir)/misc

$(name) : $(objs)
        $(linker) $(lflags) name $^@ file {$<}

⌨️ 快捷键说明

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