home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / desklib / sources / DeskLib / !DLSources / Libraries / MsgTrans / DLL / MkStubsOs < prev    next >
Encoding:
Text File  |  1995-09-04  |  4.0 KB  |  163 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.LoadFile    \
  4.             o.LookupPS    \
  5.             o.LoseFile    \
  6.             o.ReportPS    \
  7.             o.CloseFile    \
  8.             o.FileInfo    \
  9.             o.Lookup    \
  10.             o.OpenFile    \
  11.  
  12.  
  13. LibName        =    MsgTrans
  14.  
  15.  
  16.  
  17. # Template makefile to make all .o files
  18. # and the SDLS Stubs file for DeskLib
  19. # sublibraries.
  20. # Julian Smith 16 Mar 1995.
  21.  
  22.  
  23. # The macro $(ObjectFiles) should be set at the 
  24. # start of this file, to be a space-separated
  25. # list of object files.
  26. # This is done by 'Makatic'.
  27.  
  28.  
  29. # The macro $(LibName) should also be set at the 
  30. # start of this file, to be the name of the 
  31. # DeskLib sublibrary.
  32. # This is done by 'Makatic'.
  33.  
  34. # Compiler and linker flags, These can be anything. 
  35. # All flags required by Straylight (eg CC -zM and
  36. # Link -rmf) are included in the macros $(CC) and
  37. # $(LINK).
  38. #
  39. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  40. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  41.  
  42.  
  43. # Macros for commands, including the Straylight
  44. # tool 'cdll'. Note that DRLink doesn't seem to
  45. # work with the SDLS.
  46. #
  47. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  48. ASM        =    ObjAsm $(ASMFlags)
  49. CDLL        =    cdll
  50. LINK        =    link
  51. AS        =    as -dde -throwback
  52.  
  53.  
  54. # filename of DLL Stubs aof file. This is linked with client apps.
  55. DLL_Stubs    =    Stubs
  56.  
  57.  
  58. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  59. #
  60. # DLL_Def:        Standard definition file as per SDLS docs.
  61. # DLL_OtherStubsSource    Assembler source to be partially linked into
  62. #            the final stubs file. This will force linking
  63. #            in of stubs from any other DLLs used by this
  64. #            library when a client application is built.
  65. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  66. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  67. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  68. #            for all DeskLib DLLs used by this library, and
  69. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  70. #
  71. DLL_Def            =    ^.DLLDef
  72. DLL_OtherStubsSource    =    ^.OtherStubs
  73.  
  74. DLL_PlainStubs        =    PlainStubs
  75. DLL_OtherStubsObject    =    OSObj
  76.  
  77. # -------------------------------------------------------
  78. # Everything below here should probably not be changed...
  79. # -------------------------------------------------------
  80.  
  81.  
  82.  
  83. # Now all the rules...
  84.  
  85.  
  86. # Here's the two things we want to make...
  87. #
  88. All:    $(DLL_Stubs) $(ObjectFiles)
  89.  
  90. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  91.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  92.  
  93. $(DLL_PlainStubs):    $(DLL_Def)
  94.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  95.  
  96.  
  97. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  98. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  99.  
  100. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  101.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  102.  
  103.  
  104. $(DLL_Def):    
  105.     | Warning: No DLL definition file exists.
  106.     | Creating a default DLL definition file: $(DLL_Def)
  107.     | This will have to be altered by hand.
  108.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  109.  
  110.  
  111.  
  112. # Rule for compiling C source code for a Straylight dynamically-linked library.
  113.  
  114. VPATH = @.^
  115.  
  116. .SUFFIXES:    .o .c .s
  117.  
  118. .c.o:
  119.     $(CC) -o $@ $<
  120.  
  121. .s.o:
  122.     $(ASM) $(ASMFlags) -from $< -to $@
  123.  
  124.  
  125.  
  126. # Dynamic dependencies:
  127. o.LoadFile:    ^.c.LoadFile
  128. o.LoadFile:    C:h.stdlib
  129. o.LoadFile:    DeskLib:h.LinkList
  130. o.LoadFile:    DeskLib:h.Core
  131. o.LoadFile:    C:h.stddef
  132. o.LoadFile:    C:DLLLib.h.dll
  133. o.LoadFile:    C:h.kernel
  134. o.LoadFile:    DeskLib:h.MsgTrans
  135. o.LoadFile:    ^.h.MTDefs
  136. o.LoadFile:    DeskLib:h.LinkList
  137. o.LoadFile:    DeskLib:h.MsgTrans
  138. o.LookupPS:    ^.c.LookupPS
  139. o.LookupPS:    DeskLib:h.MsgTrans
  140. o.LookupPS:    DeskLib:h.Core
  141. o.LookupPS:    C:h.stddef
  142. o.LookupPS:    C:DLLLib.h.dll
  143. o.LookupPS:    C:h.kernel
  144. o.LoseFile:    ^.c.LoseFile
  145. o.LoseFile:    C:h.stdlib
  146. o.LoseFile:    DeskLib:h.LinkList
  147. o.LoseFile:    DeskLib:h.Core
  148. o.LoseFile:    C:h.stddef
  149. o.LoseFile:    C:DLLLib.h.dll
  150. o.LoseFile:    C:h.kernel
  151. o.LoseFile:    DeskLib:h.MsgTrans
  152. o.LoseFile:    ^.h.MTDefs
  153. o.LoseFile:    DeskLib:h.LinkList
  154. o.LoseFile:    DeskLib:h.MsgTrans
  155. o.ReportPS:    ^.c.ReportPS
  156. o.ReportPS:    DeskLib:h.Error
  157. o.ReportPS:    DeskLib:h.Core
  158. o.ReportPS:    C:h.stddef
  159. o.ReportPS:    C:DLLLib.h.dll
  160. o.ReportPS:    C:h.kernel
  161. o.ReportPS:    DeskLib:h.MsgTrans
  162.