home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / IBM / IBM2FLPY / MAKEFILE < prev   
Encoding:
Text File  |  1995-04-14  |  9.1 KB  |  269 lines

  1. # SCCSID = %w% %e%
  2.  
  3. #/***********************************************************************/
  4. #/*                                                                     */
  5. #/* Driver Name: IBM2FLPY.ADD - Adapter Driver for ABIOS Diskette       */
  6. #/*              ------------------------------------------------       */
  7. #/*                                                                     */
  8. #/* Source File Name: MAKEFILE                                          */
  9. #/*                                                                     */
  10. #/* Descriptive Name: MAKEFILE for IBM2FLPY.ADD                         */
  11. #/*                                                                     */
  12. #/* Function:                                                           */
  13. #/*                                                                     */
  14. #/*                                                                     */
  15. #/*---------------------------------------------------------------------*/
  16. #/*                                                                     */
  17. #/* Copyright (C) 1992 IBM Corporation                                  */
  18. #/*                                                                     */
  19. #/* DISCLAIMER OF WARRANTIES.  The following [enclosed] code is         */
  20. #/* provided to you solely for the purpose of assisting you in          */
  21. #/* the development of your applications. The code is provided          */
  22. #/* "AS IS", without warranty of any kind. IBM shall not be liable      */
  23. #/* for any damages arising out of your use of this code, even if       */
  24. #/* they have been advised of the possibility of such damages.          */
  25. #/*                                                                     */
  26. #/*---------------------------------------------------------------------*/
  27. #/*                                                                     */
  28. #/* Change Log                                                          */
  29. #/*                                                                     */
  30. #/* Mark    Date      Programmer  Comment                               */
  31. #/* ----    ----      ----------  -------                               */
  32. #/* @nnnn   mm/dd/yy  NNN                                               */
  33. #/*                                                                     */
  34. #/*                                                                     */
  35. #/***********************************************************************/
  36.  
  37. #
  38. #
  39. #       You can optionally generate the listing files for the device driver.
  40. #
  41. #          make  [option]
  42. #
  43. #            option:     list         -> create listings
  44. #                        ibm2flpy.add -> create ibm2flpy.add
  45. #
  46. #            default:  create ibm2flpy.add
  47. #
  48. # ******  NOTE  ******
  49. #
  50. #        If you are using a SED command with TAB characters, many editors
  51. #        will expand tabs causing unpredictable results in other programs.
  52. #
  53. #        Documentation:
  54. #
  55. #        Using SED command with TABS. Besure to invoke set tab save option
  56. #        on your editor. If you don't, the program 'xyz' will not work
  57. #        correctly.
  58. #
  59.  
  60. #****************************************************************************
  61. #  Dot directive definition area (usually just suffixes)
  62. #****************************************************************************
  63.  
  64. .SUFFIXES:
  65. .SUFFIXES: .com .add .exe .obj .mbj .asm .inc .def .lnk .lrf .crf .ref
  66. .SUFFIXES: .lst .sym .map .c .h .lib
  67.  
  68. #****************************************************************************
  69. #  Environment Setup for the component(s).
  70. #****************************************************************************
  71.  
  72. #
  73. # Conditional Setup Area and User Defined Macros
  74. #
  75.  
  76. #
  77. # Compiler Location w/ includes, libs and tools
  78. #
  79.  
  80. DOSINC = ..\..\..\..\dos\dosinc
  81. INIT   = ..\..\..\..\dos\init
  82. TASK   = ..\..\..\..\dos\task
  83. INC    = ..\..\..\..\..\inc
  84. H      = ..\..\..\..\..\h
  85. LIB    = ..\..\..\..\..\lib
  86. TOOLSPATH = ..\..\..\..\..\tools
  87. DISKH  = ..\..\diskh
  88. DHLIB  = ..\..\devhelp
  89. ADDLIB  = ..\..\addcalls
  90.  
  91. #
  92. # Since the compiler/linker and other tools use environment
  93. # variables ( INCLUDE, LIB, etc ) in order to get the location of files,
  94. # the following line will check the environment for the LIFE of the
  95. # makefile and will be specific to this set of instructions. All MAKEFILES
  96. # are requested to use this format to insure that they are using the correct
  97. # level of files and tools.
  98. #
  99.  
  100. !if [set INCLUDE=$(DOSINC);$(INIT);$(TASK);$(INC)] || \
  101.    [set LIB=$(LIB);$(DHLIB);$(ADDLIB)] || [set PATH=$(TOOLSPATH);$(DK_TOOLS)]
  102. !endif
  103.  
  104.  
  105. #
  106. # Compiler/tools Macros
  107. #
  108.  
  109. AS=masm
  110. CC=cl
  111. IMPLIB=implib
  112. IPF=ipfc
  113. LIBUTIL=lib
  114. LINK=link
  115. MAPSYM=mapsym
  116. RC=rc
  117.  
  118. #
  119. # Compiler and Linker Options
  120. #
  121.  
  122. AFLAGS = -MX -T -Z $(ENV)
  123. AINC   = -I. -I$(DOSINC) -I$(INIT) -I$(TASK) -I$(INC)
  124. CINC   = -I. -I$(H) -I$(DISKH) -I$(MAKEDIR)
  125. CFLAGS = /c /Zp /G2s /Answ $(ENV)
  126. LFLAGS = /map /nod /exepack /packd /a:16 /far
  127. RFLAGS = -r
  128.  
  129. LIBS  =  $(DHLIB)\dhcalls.lib $(ADDLIB)\addcalls.lib
  130. DEF02 =  ibm2flpy.def
  131.  
  132. #****************************************************************************
  133. # Set up Macros that will contain all the different dependencies for the
  134. # executables and dlls etc. that are generated.
  135. #****************************************************************************
  136.  
  137. #
  138. #
  139. #
  140. OBJ1 = fl2segs.obj fl2headr.obj fl2data.obj fl2media.obj
  141. OBJ2 = fl2entry.obj fl2intr.obj fl2math.obj fl2init.obj
  142. OBJ3 = fl2iorb.obj fl2geo.obj fl2io.obj fl2fmt.obj
  143.  
  144. #
  145. #       LIST Files
  146. #
  147. LIST=   fl2segs.lst fl2headr.lst fl2data.lst
  148. LIST=   fl2entry.lst fl2intr.lst fl2math.lst fl2init.lst
  149. LIST=   fl2iorb.lst fl2geo.lst fl2io.lst fl2fmt.lst
  150. OBJS = $(OBJ1) $(OBJ2) $(OBJ3)
  151.  
  152. #****************************************************************************
  153. #   Setup the inference rules for compiling and assembling source code to
  154. #   obejct code.
  155. #****************************************************************************
  156.  
  157.  
  158. .asm.obj:
  159.         $(AS) $(AFLAGS) $(AINC) $*.asm;
  160.  
  161. .asm.mbj:
  162.         $(AS) $(AFLAGS) -DMMIOPH $(AINC) $*.asm $*.mbj;
  163.  
  164. .asm.lst:
  165.         $(AS) -l -n $(AFLAGS) $(AINC) $*.asm;
  166.  
  167. .c.obj:
  168.         $(CC) $(CFLAGS) $(CINC) $*.c
  169.  
  170. .c.lst:
  171.         $(CC) $(CFLAGS) /Fc $(CINC) $*.c
  172.         copy $*.cod $*.lst
  173.         del $*.cod
  174.  
  175.  
  176. #****************************************************************************
  177. #   Target Information
  178. #****************************************************************************
  179. #
  180. # This is a very important step. The following small amount of code MUST
  181. # NOT be removed from the program. The following directive will do
  182. # dependency checking every time this component is built UNLESS the
  183. # following is performed:
  184. #                    A specific tag is used -- ie. all
  185. #
  186. # This allows the developer as well as the B & I group to perform incremental
  187. # build with a degree of accuracy that has not been used before.
  188. # There are some instances where certain types of INCLUDE files must be
  189. # created first. This type of format will allow the developer to require
  190. # that file to be created first. In order to achive that, all that has to
  191. # be done is to make the DEPEND.MAK tag have your required target. Below is
  192. # an example:
  193. #
  194. #    depend.mak:   { your file(s) } dephold
  195. #
  196. # Please DON'T remove the following line
  197. #
  198.  
  199. !include      "$(H)\version.mak"
  200.  
  201. #
  202. # Should be the default tag for all general processing
  203. #
  204.  
  205. all:   ibm2flpy.add
  206.  
  207. list: $(LIST)
  208.  
  209. clean:
  210.         if exist *.lnk  del *.lnk
  211.         if exist *.obj  del *.obj
  212.         if exist *.mbj  del *.mbj
  213.         if exist *.map  del *.map
  214.         if exist *.old  del *.old
  215.         if exist *.lst  del *.lst
  216.         if exist *.lsd  del *.lsd
  217.         if exist *.sym  del *.sym
  218.         if exist *.sys  del *.sys
  219.         if exist *.add  del *.add
  220.         if exist *.tff  del *.tff
  221.  
  222.  
  223. #*****************************************************************************
  224. #   Specific Description Block Information
  225. #*****************************************************************************
  226.  
  227. # This section would only be for specific direction as to how to create
  228. # unique elements that are necessary to the build process. This could
  229. # be compiling or assembling, creation of DEF files and other unique
  230. # files.
  231. # If all compiler and assembly rules are the same, use an inference rule to
  232. # perform the compilation.
  233. #
  234.  
  235. ibm2flpy.add:  $(OBJS) $(LIBS) makefile
  236.         Rem Create DEF file <<$(DEF02)
  237. LIBRARY IBM2FLPY
  238.  
  239. DESCRIPTION "$(FILEVER)  Adapter Driver for ABIOS Diskette"
  240.  
  241. PROTMODE
  242.  
  243. SEGMENTS
  244.  DDHeader       CLASS 'DATA'
  245.  CONST          CLASS 'CONST'
  246.  _BSS           CLASS 'BSS'
  247.  LIBDATA        CLASS 'DATA'
  248.  _DATA          CLASS 'DATA'
  249.  LIBCODE        CLASS 'CODE' IOPL
  250.  'Code'         CLASS 'CODE' IOPL
  251.  StaticCode     CLASS 'CODE' IOPL
  252.  InitCode       CLASS 'CODE' IOPL
  253.  SwapCode       CLASS 'CODE' IOPL
  254. <<keep
  255.         $(LINK) $(LFLAGS) @<<$(@B).lnk
  256. $(OBJ1) +
  257. $(OBJ2) +
  258. $(OBJ3)
  259. $*.add
  260. $*.map
  261. $(LIBS)
  262. $(DEF02)
  263. <<keep
  264.              $(MAPSYM) $*.map
  265.  
  266.  
  267.  
  268. #****************************************************************************
  269.