home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cdrom.zip / DDK / BASE / SRC / VDEV / VCDROM / makefile < prev    next >
Makefile  |  1996-09-03  |  4KB  |  141 lines

  1. #******************************************************************************
  2. #  Makefile for the VCDROM directory
  3. #
  4. #       IBM Confidential
  5. #
  6. #       Copyright (c) IBM Corporation 1987, 1992
  7. #
  8. #       All Rights Reserved
  9. #
  10. #******************************************************************************
  11.  
  12. #
  13. # ******  NOTE  ******
  14. #
  15. #
  16. #        If you are using a SED command with TAB characters, many editors
  17. #        will expand tabs causing unpredictable results in other programs.
  18. #
  19. #        Documentation:
  20. #
  21. #        Using SED command with TABS. Besure to invoke set tab save option
  22. #        on your editor. If you don't, the program 'xyz' will not work
  23. #        correctly.
  24. #
  25.  
  26. !include ..\vdevsub.mak
  27.  
  28. #
  29. # Conditional Setup Area and User Defined Macros
  30. #
  31.  
  32.  
  33. #
  34. # Compiler and Linker Option changes from ..\VDEVSUB.MAK
  35. #
  36.  
  37.  
  38. #****************************************************************************
  39. # Set up Macros that will contain all the different dependencies for the
  40. # executables and dlls etc. that are generated.
  41. #****************************************************************************
  42.  
  43. OBJS =cdstub0.obj vcdrom.obj vcdrom2f.obj
  44.  
  45. #OBDS =vcdrom.obd vcdrom2f.obd
  46.  
  47. #****************************************************************************
  48. #   Target Information
  49. #****************************************************************************
  50. #
  51. # This is a very important step. The following small amount of code MUST
  52. # NOT be removed from the program. The following directive will do
  53. # dependency checking every time this component is built UNLESS the
  54. # following is performed:
  55. #                    A specific tag is used -- ie. all
  56. #
  57. # This allows the developer as well as the B & I group to perform incremental
  58. # build with a degree of accuracy that has not been used before.
  59. # There are some instances where certain types of INCLUDE files must be
  60. # created first. This type of format will allow the developer to require
  61. # that file to be created first. In order to achive that, all that has to
  62. # be done is to make the DEPEND.MAK tag have your required target. Below is
  63. # an example:
  64. #
  65. #    depend.mak:   { your file(s) } dephold
  66. #
  67. # Please DON'T remove the following line
  68. #
  69.  
  70.  
  71. #
  72. # Should be the default tag for all general processing
  73. #
  74.  
  75. all:    sys
  76.  
  77. lib:
  78.         cd ..\..\..\lib
  79.         $(MAKE) -c vdh.lib
  80.         cd ..\src\vdev\vcdrom
  81.  
  82. #sys:    vcdromd.sys vcdrom.sys
  83. sys:     vcdrom.sys
  84.  
  85. # Two-pass method to get XMMSTUB.OBJ  Pass 1 compiles the assembly code
  86. # proper; pass two converts the output into another .ASM file which
  87. # is compiled again, so that the stuff gets the right segment attributes.
  88.  
  89. cdstub0.asm cdstub.h: cdstub.asm
  90.         $(AS) $(AFLAGS) $(FLAG) $(AINC) cdstub.asm,cdstub.obj,cdstub.lst;
  91.         code2dat cdstub.lst cdstub0.asm
  92.  
  93. cdstub0.obj: cdstub0.asm cdstub.h
  94.         $(AS) $(AFLAGS) $(AINC) cdstub0.asm,cdstub0.obj;
  95.  
  96.  
  97.  
  98. clean:
  99.         if exist *.obj del *.obj
  100.         if exist *.obd del *.obd
  101.         if exist *.stb del *.stb
  102.         if exist *.lnk del *.lnk
  103.         if exist *.sys del *.sys
  104.         if exist *.sym del *.sym
  105.         if exist *.exe del *.exe
  106.         if exist *.com del *.com
  107.         if exist *.lst del *.lst
  108.         if exist *.lsd del *.lsd
  109.         if exist *.ltb del *.ltb
  110.         if exist *.map del *.map
  111.         if exist *.old del *.old
  112.         if exist *.cvk del *.cvk
  113.  
  114.  
  115.  
  116. #*****************************************************************************
  117. #   Specific Description Block Information
  118. #*****************************************************************************
  119.  
  120. # This section would only be for specific direction as to how to create
  121. # unique elements that are necessary to the build process. This could
  122. # be compiling or assembling, creation of DEF files and other unique
  123. # files.
  124. # If all compiler and assembly rules are the same, use an inference rule to
  125. # perform the compilation.
  126. #
  127.  
  128.  
  129. vcdrom.sys: $(OBJS) $(LIBS) $(DEF) makefile
  130.         $(LINK) $(LFLAGS) @<<$(@B).lnk
  131. $(OBJS)
  132. $@
  133. $*.map
  134. $(LIBS)
  135. $(DEF)
  136. <<keep
  137.     $(MAPSYM) $*.map
  138.  
  139.  
  140. #****************************************************************************
  141.