📄 cmlfind.mif
字号:
# C & Math library finders for those awkward cases where you haven't got a
# main function. You need to define:
# 1. host_os and host_cpu
# 2. If 32-bit stack-based, define 'stack'
# 3. If 16-bit, define memory_model_i86 = l, m, c, or s ('l' is the default)
# 4. Define 'fpconv' to fpc or fpi (fpi is the default)
# You get:
# clib_path - path for C library
# mlib_path - path for math library
!ifndef fpconv
fpconv = fpi
!endif
!ifdef stack
call_type = s
!else
call_type = r
!endif
clib_suffix_i86 = $(memory_model_i86)
clib_suffix_386 = 3$(call_type)
mlib_suffix_i86 = $(memory_model_i86)
mlib_suffix_386 = 3$(call_type)
mlib_suffix_i86_fpc = $(memory_model_i86)
mlib_suffix_i86_fpi = 7$(memory_model_i86)
mlib_suffix_386_fpc = 3$(call_type)
mlib_suffix_386_fpi = 387$(call_type)
!ifeq host_cpu i86
pathpiece = lib286
!else
pathpiece = lib$(host_cpu)
!endif
clib_path = $(lang_root)\$(pathpiece)\$(host_os)\clib$(clib_suffix_$(host_cpu)).lib
!ifdef host_os win
mlib_path = $(lang_root)\$(pathpiece)\win\math$(mlib_suffix_$(host_cpu)_$(fpconv)).lib
!else
mlib_path = $(lang_root)\$(pathpiece)\math$(mlib_suffix_$(host_cpu)_$(fpconv)).lib
!endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -