home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk22
/
dir08
/
f013380.re_
/
f013380.re
Wrap
Text File
|
1996-04-02
|
3KB
|
102 lines
#-----------------------------------------------------------------------
#
# Copyright (1993-1995) Bentley Systems, Inc., All rights reserved.
#
# Application Make File
#
# $Logfile: J:/mdl/examples/basic/basic.mkv $
# $Workfile: basic.mke $
# $Revision: 5.5 $
# $Date: 16 Jun 1995 11:59:16 $
#
# "MicroStation" is a registered trademark and "MDL" and "MicroCSL"
# are trademarks of Bentley Systems, Inc.
#
# 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/basic/
%endif
privateInc = $(BaseDir)
#---------------------------------------------
# mdl.mki contains the default rules for creating .rsc, .mo, etc files
# mdlexmpl.mki contains the output directory overrides used by examples
#---------------------------------------------
%include mdl.mki
%include mdlexmpl.mki
#----------------------------------------------------------------------
# Define macros for files included in our link and resource merge
#----------------------------------------------------------------------
basicObjs = \
$(o)basic.mo \
$(mdlLibs)ditemlib.ml
basicRscs = \
$(o)basic.mp \
$(o)basiccmd.rsc \
$(o)basictyp.rsc
#---------------------------------------------
# Generate command table include & resource file using rcomp
#---------------------------------------------
$(genSrc)basiccmd.h : $(BaseDir)basiccmd.r
$(o)basiccmd.rsc : $(BaseDir)basiccmd.r
#---------------------------------------------
# Create & compile the application's type resource file using rsctype
# and rcomp
#---------------------------------------------
$(o)basictyp.r : $(BaseDir)basictyp.mt $(BaseDir)basic.h
$(o)basictyp.rsc : $(o)basictyp.r $(BaseDir)basic.h
#---------------------------------------------
# Compile the MDL source file using mcomp
#---------------------------------------------
$(o)basic.mo : $(BaseDir)basic.mc $(BaseDir)basic.h
#---------------------------------------------
# Link MDL program file from basic.mo & ditemlib.ml using rlink
#---------------------------------------------
$(o)basic.mp : $(basicObjs)
$(msg)
> $(o)make.opt
$(linkOpts)
-a$@
$(basicObjs)
<
$(linkCmd) @$(o)make.opt
~time
#---------------------------------------------
# Merge the dialog resources & MDL program file using rlib
#---------------------------------------------
$(reqdObjs)basic.mi : $(basicRscs)
$(msg)
> $(o)make.opt
-o$@
$(basicRscs)
<
$(rscLibCmd) @$(o)make.opt
~time
# complete construction of the .ma by getting the last resource.
%include $(BaseDir)basicrsc.mki