pbdlg.mke
来自「microstation MDL入门指导手册!」· MKE 代码 · 共 110 行
MKE
110 行
#----------------------------------------------------------------------
#
# Copyright 1993 - 2001, Bentley Systems, Inc.
#
# All rights reserved.
#
# Limited permission is hereby granted to reproduce and modify this
# copyrighted material provided that the resulting code is used only in
# conjunction with Bentley Systems products under the terms of the
# license agreement provided therein, and that this notice is retained
# in its entirety in any such reproduction or modification.
#
#----------------------------------------------------------------------
#---------------------------------------------
# Define macros specific to this example
#---------------------------------------------
%if defined (_MakeFilePath)
baseDir = $(_MakeFilePath)
%else
baseDir = $(MS)/mdl/examples/pubdlg/
%endif
appName = Pbdlg
privateInc = $(baseDir)
langSpec = $(baseDir)english/
#------------------------------------------------------------------------
# mdl.mki contains the default rules for creating .rsc, .mo, etc files
#------------------------------------------------------------------------
%include mdl.mki
#----------------------------------------------------------------------
# Create needed output directories if they don't exist
#----------------------------------------------------------------------
$(o)$(tstdir) : $(o)$(tstdir)
$(rscObjects)$(tstdir) : $(rscObjects)$(tstdir)
$(reqdObjs)$(tstdir) : $(reqdObjs)$(tstdir)
#------------------------------------------------------------------------
# Define macros for files included in our link and resource merge
#------------------------------------------------------------------------
bclassObjs = \
$(o)$(appName).mo \
$(mdlLibs)ditemlib.dlo
bclassRscs = \
$(o)$(appName)cmd.rsc \
$(o)$(appName)typ.rsc \
$(o)$(appName).mp
#------------------------------------------------------------------------
# Generate command table include & resource file using rcomp
#------------------------------------------------------------------------
$(genSrc)$(appName)cmd.h : $(baseDir)$(appName)cmd.r
$(o)$(appName)cmd.rsc : $(baseDir)$(appName)cmd.r
#------------------------------------------------------------------------
# Create & compile the app's type resource using rsctype & rcomp
#------------------------------------------------------------------------
$(o)$(appName)typ.r : $(baseDir)$(appName)typ.mt \
$(privateInc)$(appName).h
$(o)$(appName)typ.rsc : $(o)$(appName)typ.r
#------------------------------------------------------------------------
# Compile the MDL source object file using mcomp
#------------------------------------------------------------------------
$(o)$(appName).mo : $(baseDir)$(appName).mc \
$(privateInc)$(appName).h \
$(genSrc)$(appName)cmd.h
#----------------------------------------------------------------------
# The following section generates the MDL Program module using
# mlink. This module should contain ALL CODE resources and/or
# libraries used by the application.
#----------------------------------------------------------------------
$(o)$(appName).mp : $(bclassObjs)
$(msg)
> $(o)temp.cmd
-a$@
-s6000
$(linkOpts)
$(bclassObjs)
<
$(MLinkCmd) @$(o)temp.cmd
~time
#----------------------------------------------------------------------
# The following section generates the MDL Intermediate module using
# rlib. This module contains the MDL CODE module and any
# non-translatable resource modules.
#----------------------------------------------------------------------
$(o)$(appName).mi : $(bclassRscs)
$(msg)
> $(o)temp.cmd
-o$@
$(bclassRscs)
<
$(RLibCmd) @$(o)temp.cmd
~time
#----------------------------------------------------------------------
# complete construction of the .ma
#----------------------------------------------------------------------
%include $(appName)rsc.mki
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?