local.mif
来自「开放源码的编译器open watcom 1.6.0版的源代码」· MIF 代码 · 共 158 行
MIF
158 行
# global definition which tool is quiet
cl += -zq
cc += -zq
cpp += -zq
linker += op q
librarian += -q
as += -q
rc += -q
rcaui += -q
bld_cl += -zq
bcl += -zq
bld_cc += -zq
bld_link += op q
bas += -q
blib += -q -zld
brc += -q
# redirect standard tools to pre-build versions
as = $(bas)
vi = $(bvi)
librarian = $(blib)
rc = $(brc)
!ifdef %open_nlang_root
lang_root = $(%open_nlang_root)
!else
lang_root = $(%DWATCOM)
!endif
!ifndef __NTAXP__
use_bld_incs = 0
!ifeq host_cpu axp
use_bld_incs = 1
!endif
!ifeq $(proj_name)_rtdll 1
use_bld_incs = 1
!endif
!ifdef clib_rtdll
# C runtime library must compile against local headers!!!!
use_bld_incs = 0
!endif
!ifeq use_bld_incs 1
cc_386 += $(bld_incs)
cpp_386 += $(bld_incs)
!endif
!endif
!ifdef __LOADDLL__
!loaddll wcc $(nlang_dll)\wccd.dll
!loaddll wcc386 $(nlang_dll)\wccd386.dll
!loaddll wccaxp $(nlang_dll)\wccdaxp.dll
!loaddll wlib $(nlang_dll)\wlibd.dll
!loaddll wlink $(nlang_dll)\wlink.dll
!loaddll wpp $(nlang_dll)\wppdi86.dll
!loaddll wpp386 $(nlang_dll)\wppd386.dll
!loaddll wppaxp $(nlang_dll)\wppdaxp.dll
!endif
!ifeq proj_name cc
extra_l_flags_nt = lib $(watcom_dir)/lib/ld.lib
!endif
!ifeq host_cpu axp
def_targ = wcc$(target_cpu)c.exe
!endif
# options for single source utility compilations
!ifdef __UNIX__
wcl_util_opts = $(def_fpu_flags_$(host_os)_$(host_cpu)) -ox -w4 -fo=.obj -fe=$^@
!else
wcl_util_opts = $(def_fpu_flags_$(host_os)_$(host_cpu)) -ox -w4 -fe=$^@
!endif
#common bootstrap definitions for Linux
!ifdef __LINUX__
!ifdef bootstrap
cc = gcc
cpp = gcc
cl = $(cc)
bld_incs = $(bld_extra_incs) -I$(watcom_dir)/h
bld_cl = gcc $(bld_incs)
bld_cc = gcc $(bld_incs)
bld_link = gcc
librarian += -fa
cppflags_386 = -D_M_IX86 -D__386__
cppflags_ppc = -D__PPC__
cppflags_mips = -D__MIPS__ -Umips
# $(inc_dirs_lang_$(host_os)) must be defined to override default OW headers
inc_dirs_lang_linux =
inc_dirs_lang_osi =
# Warning flags: all enabled except the ones that have no use besides annoy people
cflags_wng = -Wall -Wno-switch
cppflags = $(defines) -DNDEBUG -D__UNIX__ -D__LINUX__ &
-D__SMALL__ -DUNIX -DLINUX -D__FLAT__ $(cppflags_$(host_cpu)) &
-D_WCUNALIGNED="__attribute__((packed))"
cflags = $(extra_c_flags) $(cppflags) -g -c $(cflags_wng) -funsigned-char -fno-asm -pipe -O -o $@
# options for single source utility compilations
wcl_util_opts = -funsigned-char $(cflags_wng) $(cppflags) $(inc_dirs) $(ldflags) -o $@ $(defines)
# options for linking via cc
clflags = -o $@
cl_libs = $(clib_dir)/$(%OBJDIR)/libwatcom.a
!endif
!endif
#common definitions for targeting QNX Neutrino
!ifeq host_os nto
!ifdef bootstrap
cc = qcc
cpp = qcc
cl = $(cc)
!ifdef __QNX__
bld_incs = $(bld_extra_incs) -I$(watcom_dir)/h
bld_cl = $(cc) $(bld_incs)
bld_cc = $(cc) $(bld_incs)
bld_link = $(cc)
!endif
librarian += -fa
cppflags_386 = -D_M_IX86 -D__386__
cppflags_ppc = -D__PPC__
cppflags_mips = -D__MIPS__ -Umips
# $(inc_dirs_lang_$(host_os)) must be defined to override default OW headers
inc_dirs_lang_nto =
inc_dirs_lang_osi =
# Warning flags: all enabled except the ones that have no use besides annoy people
cflags_wng = -Wall -Wno-switch
cppflags = $(defines) -DNDEBUG -D__UNIX__ -D__QNX__ &
-D__SMALL__ -DUNIX -D__FLAT__ $(cppflags_$(host_cpu)) &
-D_WCUNALIGNED="__attribute__((packed))"
cflags = $(extra_c_flags) $(cppflags) -g -c $(cflags_wng) -funsigned-char -fno-asm -pipe -O -o $@
!ifdef __QNX__
# options for single source utility compilations
wcl_util_opts = -funsigned-char $(cflags_wng) $(cppflags) $(inc_dirs) $(ldflags) -o $@ $(defines)
!endif
# options for linking via cc
clflags = -o $@
cl_libs = $(clib_dir)/$(%OBJDIR)/libwatcom.a
!endif
!endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?