home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / pmeister / IODSIMPL.TM < prev    next >
Text File  |  1997-04-02  |  4KB  |  132 lines

  1. #   File:          MAKEFILE
  2. #
  3. #   Description:   Make file for $partname$
  4. #
  5. #   Written by:    $author$
  6. #
  7. #   Copyright:     (c) $years$ by $company$
  8. #                  - all rights reserved
  9. #
  10. #   Generated by:  $toolname$ $toolversion$
  11.  
  12. # If you wish to add to the existing compile and link flags, you can
  13. # do it with these macros
  14.  
  15. ExtraSOMCompileOptions = -I$publicpath$
  16.  
  17. ExtraCompileOptions = -I$publicpath$ $ExtraCompileOptionsForWIN32andOS2$
  18.  
  19. ExtraLinkOptions =
  20.  
  21. # ===================================================================
  22. # Subdirectories you want nmake to visit
  23. Subdirs = $lang_subdir$
  24.  
  25. # include to define the iodutils macro
  26. !include $(ODSRC)/src/iodduals.mak
  27.  
  28. # ===================================================================
  29. # Targets
  30.  
  31. # IdlTargets = List all the idls
  32. # HdrTargets = List all the C++ headers
  33. # MsgTargets = List all the message catalogs
  34. # LibTargets = List all export libraries to be built
  35. # DllTargets = List all shared libraries to be built
  36. #
  37. # The Reg* and File*  macros are used to generate a table of contents
  38. # and an install package
  39.  
  40.  
  41. IdlTargets = $filename$.idl
  42.  
  43. RcTargets  =
  44.  
  45. HdrTargets = $filename$.h
  46.  
  47. MsgTargets =
  48.  
  49. LibTargets = $(ODSRC)/lib/$filename$.$(LibSuffix)
  50.  
  51. #
  52. # Note that the DLL is placed into the "runtime" directory
  53. # specified on "settings" page of PartMeister.
  54. #
  55. # Alternatively this could be "$(ODSRC)/dll/$filename$.dll"
  56. # which would ignore the "runtime" setting.
  57. #
  58. DllTargets = $runtimepath$/$filename$.dll
  59.  
  60. RegMain=$filename$.dll
  61. RegIDL=$filename$.idl
  62. RegClassName=$partname$
  63. RegKind=$kindnq$
  64. FilesDlls=$filename$.dll $(iodutils).dll $parentfilename$.dll
  65. FilesIncs=$(IdlTargets) $(IdlTargets:.idl=.xh) $(HdrTargets)
  66. FilesLibs=$filename$.$(LibSuffix)
  67. FilesCats=$filename$.cat
  68. FilesHelps=$filename$.hlp
  69. FilesStationery=
  70.  
  71.  
  72. # ===================================================================
  73. # Common Inference Rules
  74.  
  75. # Platform.mak contains all the platform specific code to build the
  76. # sample. Check it to verify which compiler the sample is using.
  77.  
  78. !include $(ODSRC)/src/Platform.mak
  79.  
  80.  
  81. # ===================================================================
  82. # Rules
  83.  
  84. $filename$ObjList = $filename$.$(Obj)
  85.  
  86. $filename$.$(Obj) : $filename$.cpp $filename$.xih $filename$.h
  87.  
  88. $filename$LibList = \
  89. !IF "$(Platform)"=="win32"
  90.         $(ODBASE)/lib/msgdll.$(LibSuffix) \
  91. !ENDIF
  92.         $(SOMBASE)/lib/somtk.$(LibSuffix) \
  93.         $(ODBASE)/lib/odimagng.$(LibSuffix) \
  94.         $(ODBASE)/lib/odui.$(LibSuffix) \
  95.         $(ODBASE)/lib/odlayout.$(LibSuffix) \
  96.         $(ODBASE)/lib/odcore.$(LibSuffix) \
  97.         $(ODBASE)/lib/odmsgcat.$(LibSuffix) \
  98.         $(ODBASE)/lib/odstorag.$(LibSuffix) \
  99.         $(ODSRC)/lib/$(iodutils).$(LibSuffix) \
  100.         $(ODSRC)/lib/$parentfilename$.$(LibSuffix)
  101.  
  102.  
  103. $(DllTargets) :  $(ODSRC)/lib/$filename$.$(Exp) \
  104.         $($filename$LibList) \
  105.         $($filename$ObjList)
  106.         @$(BuildDll) BuildDllRule
  107.  
  108.  
  109. #
  110. # Since Windows and OS/2 both want a ".DEF" file,
  111. # the OS/2 file template was renamed to ".DEO" to
  112. # avoid a filename collision
  113. #
  114. !IF "$(Platform)"=="win32"
  115. $(ODSRC)/lib/$filename$.$(Def) :  $filename$.$(Def)
  116.         @$(BuildCopy)
  117. !ENDIF
  118. !IF "$(Platform)"=="os2"
  119. $(ODSRC)/lib/$filename$.$(Def) :  $filename$.deo
  120.         @$(BuildCopy)
  121. !ENDIF
  122.  
  123.  
  124. $(ODSRC)/lib/$filename$.$(LibSuffix) : \
  125. !IFDEF CPPMAIN
  126.         $(ODSRC)/lib/$filename$.$(Def) \
  127. !ENDIF
  128.         $($filename$ObjList)
  129.         @$(BuildLib)
  130.  
  131. # end of file
  132.