home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk22
/
dir08
/
f013850.re_
/
f013850.re
Wrap
Text File
|
1996-04-02
|
3KB
|
103 lines
#----------------------------------------------------------------------
#
# MDL Make File
#
# $Workfile: cnvtspln.mke $
# $Revision: 6.1 $
# $Date: 29 Jun 1995 17:56:38 $
#
# Copyright (1993) 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/cnvtspln/
%endif
privateInc = $(BaseDir)
langSpec = $(baseDir)english/
#---------------------------------------------
# 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
#----------------------------------------------------------------------
cnvtObjs = \
$(o)cnvtspln.mo \
$(mdlLibs)ditemlib.ml \
$(mdlLibs)mdllib.ml \
cnvtRscs = \
$(o)cnvtcmd.rsc \
$(o)cnvttyp.rsc \
$(o)cnvtspln.mp
#---------------------------------------------
# Generate command table include & resource file using rcomp
#---------------------------------------------
$(genSrc)cnvtcmd.h : $(BaseDir)cnvtcmd.r
$(o)cnvtcmd.rsc : $(BaseDir)cnvtcmd.r
#---------------------------------------------
# Create & compile the application's type resource file using rsctype
# and rcomp
#---------------------------------------------
$(o)cnvttyp.r : $(BaseDir)cnvttyp.mt $(privateInc)cnvtspln.h
$(o)cnvttyp.rsc : $(o)cnvttyp.r $(privateInc)cnvtspln.h
#---------------------------------------------
# Compile the MDL source file using mcomp
#---------------------------------------------
$(o)cnvtspln.mo : $(BaseDir)cnvtspln.mc \
$(privateInc)cnvtspln.h \
$(genSrc)cnvtcmd.h
#---------------------------------------------
# Link MDL program file from cnvtspln.mo & ditemlib.ml using rlink
#---------------------------------------------
$(o)cnvtspln.mp : $(cnvtObjs)
$(msg)
> $(o)make.opt
$(linkOpts)
-a$@
$(cnvtObjs)
<
$(linkCmd) @$(o)make.opt
~time
#---------------------------------------------
# Merge the dialog resources & MDL program file using rlib
#---------------------------------------------
$(reqdObjs)cnvtspln.mi : $(cnvtRscs)
$(msg)
> $(o)make.opt
-o$@
$(cnvtRscs)
<
$(rscLibCmd) @$(o)make.opt
~time
# complete construction of the .ma by getting the last resource.
%include $(BaseDir)cnvtrsc.mki