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

  1.  
  2. ObjectFiles    =        \
  3.             o.Create    \
  4.             o.Delete    \
  5.             o.EnsureWind    \
  6.             o.OpenClose    \
  7.             o.OpenLeaf    \
  8.             o.OpenMenu    \
  9.             o.OpenPos    \
  10.             o.OpenStatic    \
  11.  
  12.  
  13. LibName        =    Dialog2
  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.Create:    ^.c.Create
  128. o.Create:    C:h.stdlib
  129. o.Create:    DeskLib:h.Error
  130. o.Create:    DeskLib:h.Core
  131. o.Create:    C:h.stddef
  132. o.Create:    C:DLLLib.h.dll
  133. o.Create:    C:h.kernel
  134. o.Create:    DeskLib:h.Template
  135. o.Create:    DeskLib:h.Sprite
  136. o.Create:    DeskLib:h.Wimp
  137. o.Create:    DeskLib:h.Coord
  138. o.Create:    C:h.stdarg
  139. o.Create:    DeskLib:h.LinkList
  140. o.Create:    DeskLib:h.Dialog2
  141. o.Create:    DeskLib:h.Window
  142. o.Create:    DeskLib:h.WimpSWIs
  143. o.Create:    DeskLib:h.Pointer
  144. o.Create:    DeskLib:h.Core
  145. o.Create:    DeskLib:h.Icon
  146. o.Create:    DeskLib:h.DragASpr
  147. o.Create:    DeskLib:h.Window
  148. o.Delete:    ^.c.Delete
  149. o.Delete:    C:h.stdlib
  150. o.Delete:    DeskLib:h.Error
  151. o.Delete:    DeskLib:h.Core
  152. o.Delete:    C:h.stddef
  153. o.Delete:    C:DLLLib.h.dll
  154. o.Delete:    C:h.kernel
  155. o.Delete:    DeskLib:h.Dialog2
  156. o.Delete:    DeskLib:h.Wimp
  157. o.Delete:    DeskLib:h.Window
  158. o.Delete:    DeskLib:h.WimpSWIs
  159. o.Delete:    DeskLib:h.Pointer
  160. o.Delete:    DeskLib:h.Core
  161. o.Delete:    DeskLib:h.Icon
  162. o.Delete:    DeskLib:h.DragASpr
  163. o.Delete:    DeskLib:h.Window
  164. o.Delete:    DeskLib:h.Coord
  165. o.EnsureWind:    ^.c.EnsureWind
  166. o.EnsureWind:    DeskLib:h.Window
  167. o.EnsureWind:    DeskLib:h.Wimp
  168. o.EnsureWind:    DeskLib:h.Core
  169. o.EnsureWind:    C:h.stddef
  170. o.EnsureWind:    C:DLLLib.h.dll
  171. o.EnsureWind:    C:h.kernel
  172. o.EnsureWind:    DeskLib:h.WimpSWIs
  173. o.EnsureWind:    DeskLib:h.Pointer
  174. o.EnsureWind:    DeskLib:h.Core
  175. o.EnsureWind:    DeskLib:h.Icon
  176. o.EnsureWind:    DeskLib:h.DragASpr
  177. o.EnsureWind:    DeskLib:h.Window
  178. o.EnsureWind:    DeskLib:h.Coord
  179. o.EnsureWind:    DeskLib:h.Dialog2
  180. o.OpenClose:    ^.c.OpenClose
  181. o.OpenClose:    C:h.stdlib
  182. o.OpenClose:    DeskLib:h.Window
  183. o.OpenClose:    DeskLib:h.Wimp
  184. o.OpenClose:    DeskLib:h.Core
  185. o.OpenClose:    C:h.stddef
  186. o.OpenClose:    C:DLLLib.h.dll
  187. o.OpenClose:    C:h.kernel
  188. o.OpenClose:    DeskLib:h.WimpSWIs
  189. o.OpenClose:    DeskLib:h.Pointer
  190. o.OpenClose:    DeskLib:h.Core
  191. o.OpenClose:    DeskLib:h.Icon
  192. o.OpenClose:    DeskLib:h.DragASpr
  193. o.OpenClose:    DeskLib:h.Window
  194. o.OpenClose:    DeskLib:h.Coord
  195. o.OpenClose:    DeskLib:h.WimpSWIs
  196. o.OpenClose:    DeskLib:h.Event
  197. o.OpenClose:    DeskLib:h.Error
  198. o.OpenClose:    DeskLib:h.Handler
  199. o.OpenClose:    DeskLib:h.Sound
  200. o.OpenClose:    DeskLib:h.Template
  201. o.OpenClose:    DeskLib:h.Sprite
  202. o.OpenClose:    C:h.stdarg
  203. o.OpenClose:    DeskLib:h.LinkList
  204. o.OpenClose:    DeskLib:h.Dialog2
  205. o.OpenClose:    ^.h.Defs
  206. o.OpenLeaf:    ^.c.OpenLeaf
  207. o.OpenLeaf:    DeskLib:h.WimpSWIs
  208. o.OpenLeaf:    DeskLib:h.Core
  209. o.OpenLeaf:    C:h.stddef
  210. o.OpenLeaf:    C:DLLLib.h.dll
  211. o.OpenLeaf:    C:h.kernel
  212. o.OpenLeaf:    DeskLib:h.Wimp
  213. o.OpenLeaf:    ^.h.Defs
  214. o.OpenLeaf:    DeskLib:h.Event
  215. o.OpenLeaf:    DeskLib:h.Dialog2
  216. o.OpenLeaf:    DeskLib:h.Window
  217. o.OpenLeaf:    DeskLib:h.Pointer
  218. o.OpenLeaf:    DeskLib:h.Core
  219. o.OpenLeaf:    DeskLib:h.Icon
  220. o.OpenLeaf:    DeskLib:h.DragASpr
  221. o.OpenLeaf:    DeskLib:h.Window
  222. o.OpenLeaf:    DeskLib:h.Coord
  223. o.OpenMenu:    ^.c.OpenMenu
  224. o.OpenMenu:    DeskLib:h.WimpSWIs
  225. o.OpenMenu:    DeskLib:h.Core
  226. o.OpenMenu:    C:h.stddef
  227. o.OpenMenu:    C:DLLLib.h.dll
  228. o.OpenMenu:    C:h.kernel
  229. o.OpenMenu:    DeskLib:h.Wimp
  230. o.OpenMenu:    ^.h.Defs
  231. o.OpenMenu:    DeskLib:h.Event
  232. o.OpenMenu:    DeskLib:h.Dialog2
  233. o.OpenMenu:    DeskLib:h.Window
  234. o.OpenMenu:    DeskLib:h.Pointer
  235. o.OpenMenu:    DeskLib:h.Core
  236. o.OpenMenu:    DeskLib:h.Icon
  237. o.OpenMenu:    DeskLib:h.DragASpr
  238. o.OpenMenu:    DeskLib:h.Window
  239. o.OpenMenu:    DeskLib:h.Coord
  240. o.OpenPos:    ^.c.OpenPos
  241. o.OpenPos:    DeskLib:h.Window
  242. o.OpenPos:    DeskLib:h.Wimp
  243. o.OpenPos:    DeskLib:h.Core
  244. o.OpenPos:    C:h.stddef
  245. o.OpenPos:    C:DLLLib.h.dll
  246. o.OpenPos:    C:h.kernel
  247. o.OpenPos:    DeskLib:h.WimpSWIs
  248. o.OpenPos:    DeskLib:h.Pointer
  249. o.OpenPos:    DeskLib:h.Core
  250. o.OpenPos:    DeskLib:h.Icon
  251. o.OpenPos:    DeskLib:h.DragASpr
  252. o.OpenPos:    DeskLib:h.Window
  253. o.OpenPos:    DeskLib:h.Coord
  254. o.OpenPos:    DeskLib:h.WimpSWIs
  255. o.OpenPos:    DeskLib:h.Dialog2
  256. o.OpenStatic:    ^.c.OpenStatic
  257. o.OpenStatic:    ^.h.Defs
  258. o.OpenStatic:    DeskLib:h.Event
  259. o.OpenStatic:    DeskLib:h.Core
  260. o.OpenStatic:    C:h.stddef
  261. o.OpenStatic:    C:DLLLib.h.dll
  262. o.OpenStatic:    C:h.kernel
  263. o.OpenStatic:    DeskLib:h.Wimp
  264. o.OpenStatic:    DeskLib:h.Dialog2
  265. o.OpenStatic:    DeskLib:h.Window
  266. o.OpenStatic:    DeskLib:h.WimpSWIs
  267. o.OpenStatic:    DeskLib:h.Pointer
  268. o.OpenStatic:    DeskLib:h.Core
  269. o.OpenStatic:    DeskLib:h.Icon
  270. o.OpenStatic:    DeskLib:h.DragASpr
  271. o.OpenStatic:    DeskLib:h.Window
  272. o.OpenStatic:    DeskLib:h.Coord
  273.