home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir08 / f013380.re_ / f013380.re
Text File  |  1996-04-02  |  3KB  |  102 lines

  1. #-----------------------------------------------------------------------
  2. #
  3. #  Copyright (1993-1995) Bentley Systems, Inc., All rights reserved.
  4. #
  5. #  Application Make File
  6. #
  7. #    $Logfile:   J:/mdl/examples/basic/basic.mkv  $
  8. #   $Workfile:   basic.mke  $
  9. #   $Revision:   5.5  $
  10. #       $Date:   16 Jun 1995 11:59:16  $
  11. #
  12. #  "MicroStation" is a registered trademark and "MDL" and "MicroCSL"
  13. #  are trademarks of Bentley Systems, Inc.
  14. #
  15. #  Limited permission is hereby granted to reproduce and modify this
  16. #  copyrighted material provided that the resulting code is used only
  17. #  in conjunction with Bentley Systems products under the terms of the
  18. #  license agreement provided therein, and that this notice is retained
  19. #  in its entirety in any such reproduction or modification.
  20. #
  21. #-----------------------------------------------------------------------
  22. #---------------------------------------------
  23. # Define macros specific to this example
  24. #---------------------------------------------
  25. %if defined (_MakeFilePath)
  26. BaseDir    = $(_MakeFilePath)
  27. %else
  28. BaseDir    = $(MS)/mdl/examples/basic/
  29. %endif
  30.  
  31. privateInc = $(BaseDir)
  32.  
  33. #---------------------------------------------
  34. # mdl.mki contains the default rules for creating .rsc, .mo, etc files
  35. # mdlexmpl.mki contains the output directory overrides used by examples
  36. #---------------------------------------------
  37. %include mdl.mki
  38. %include mdlexmpl.mki
  39.  
  40. #----------------------------------------------------------------------
  41. # Define macros for files included in our link and resource merge
  42. #----------------------------------------------------------------------
  43. basicObjs = \
  44.     $(o)basic.mo \
  45.     $(mdlLibs)ditemlib.ml
  46.  
  47. basicRscs = \
  48.     $(o)basic.mp \
  49.     $(o)basiccmd.rsc \
  50.     $(o)basictyp.rsc
  51.  
  52. #---------------------------------------------
  53. #    Generate command table include & resource file using rcomp
  54. #---------------------------------------------
  55. $(genSrc)basiccmd.h    : $(BaseDir)basiccmd.r
  56.  
  57. $(o)basiccmd.rsc    : $(BaseDir)basiccmd.r 
  58.  
  59. #---------------------------------------------
  60. #    Create & compile the application's type resource file using rsctype
  61. #     and rcomp
  62. #---------------------------------------------
  63. $(o)basictyp.r        : $(BaseDir)basictyp.mt $(BaseDir)basic.h
  64.  
  65. $(o)basictyp.rsc        : $(o)basictyp.r $(BaseDir)basic.h
  66.  
  67. #---------------------------------------------
  68. #    Compile the MDL source file using mcomp
  69. #---------------------------------------------
  70. $(o)basic.mo            : $(BaseDir)basic.mc $(BaseDir)basic.h
  71.  
  72. #---------------------------------------------
  73. #    Link MDL program file from basic.mo & ditemlib.ml using rlink
  74. #---------------------------------------------
  75. $(o)basic.mp            : $(basicObjs)
  76.     $(msg)
  77.     > $(o)make.opt
  78.     $(linkOpts) 
  79.     -a$@
  80.     $(basicObjs)
  81.     <
  82.     $(linkCmd) @$(o)make.opt 
  83.     ~time
  84.  
  85. #---------------------------------------------
  86. #    Merge the dialog resources & MDL program file using rlib
  87. #---------------------------------------------
  88. $(reqdObjs)basic.mi        : $(basicRscs)
  89.     $(msg)
  90.     > $(o)make.opt
  91.     -o$@
  92.     $(basicRscs)
  93.     <
  94.     $(rscLibCmd) @$(o)make.opt
  95.     ~time
  96.  
  97. # complete construction of the .ma by getting the last resource.
  98.  
  99. %include $(BaseDir)basicrsc.mki
  100.  
  101.  
  102.