home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / TESTCFG / MAKEFILE next >
Text File  |  1995-04-14  |  4KB  |  131 lines

  1. #******************************************************************************
  2. #  Makefile for the TESTCFG directory
  3. #
  4. #       IBM Confidential
  5. #
  6. #       Copyright (c) IBM Corporation 1987, 1992
  7. #
  8. #       SCCSID = @(#)makefile   6.2 92/01/22
  9. #
  10. #       All Rights Reserved
  11. #
  12. #******************************************************************************
  13.  
  14. #
  15. # ******  NOTE  ******
  16. #
  17. #
  18. #        If you are using a SED command with TAB characters, many editors
  19. #        will expand tabs causing unpredictable results in other programs.
  20. #
  21. #        Documentation:
  22. #
  23. #        Using SED command with TABS. Besure to invoke set tab save option
  24. #        on your editor. If you don't, the program 'xyz' will not work
  25. #        correctly.
  26. #
  27.  
  28. #
  29. # Conditional Setup Area and User Defined Macros
  30. #
  31.  
  32. !ifndef LANG
  33. LANG=us
  34. !endif
  35.  
  36.  
  37. #
  38. # Compiler and Linker Option changes
  39. #
  40. CL = cl
  41. CFLAGS = -W3 -c -Asnw -G2s -Zl -Zp -Ox -nologo
  42. CINC   = -I$(H) -I$(DISKH) -I$(RSM_H)
  43. LINK = link
  44. LFLAGS = /MAP /NOI /nod /exepack /packd /a:16 /far
  45. MASM = masm
  46. MFLAGS =  -Mx -t -N
  47. MAPSYM = mapsym
  48.  
  49. #****************************************************************************
  50. # Set up Macros that will contain all the different dependencies for the
  51. # executables and dlls etc. that are generated.
  52. #****************************************************************************
  53.  
  54. H       = ..\..\..\h
  55. DISKH   = ..\DASD\DISKH
  56. RSM_H   = ..\resource\rsm_h
  57. RMLIB   = ..\resource\rmcalls
  58. LIBPATH = ..\..\..\lib
  59. # OBJ sequence is important. testcfga must be first, testcfg must be second
  60. OBJS    = testcfga.obj testcfg.obj tcfgscsi.obj tcfgdata.obj
  61. DEF     = testcfg.def
  62. LIBS    = $(LIBPATH)\os2286.lib $(LIBPATH)\os2286p.lib $(RMLIB)\rmcalls.lib
  63.  
  64.  
  65. #****************************************************************************
  66. #   Target Information
  67. #****************************************************************************
  68. #
  69. # This is a very important step. The following small amount of code MUST
  70. # NOT be removed from the program. The following directive will do
  71. # dependency checking every time this component is built UNLESS the
  72. # following is performed:
  73. #                    A specific tag is used -- ie. all
  74. #
  75. # This allows the developer as well as the B & I group to perform incremental
  76. # build with a degree of accuracy that has not been used before.
  77. # There are some instances where certain types of INCLUDE files must be
  78. # created first. This type of format will allow the developer to require
  79. # that file to be created first. In order to achive that, all that has to
  80. # be done is to make the DEPEND.MAK tag have your required target. Below is
  81. # an example:
  82. #
  83. #    depend.mak:   { your file(s) } dephold
  84. #
  85. # Please DON'T remove the following line
  86. #
  87.  
  88.  
  89. #
  90. # Should be the default tag for all general processing
  91. #
  92.  
  93. all:    testcfg.s$(LANG)
  94.  
  95. clean:
  96.         if exist *.obj del *.obj
  97.         if exist *.s$(LANG) del *.s$(LANG)
  98.         if exist *.sym del *.sym
  99.         if exist *.lst del *.lst
  100.         if exist *.map del *.map
  101.  
  102. #*****************************************************************************
  103. #   Specific Description Block Information
  104. #*****************************************************************************
  105.  
  106. # This section would only be for specific direction as to how to create
  107. # unique elements that are necessary to the build process. This could
  108. # be compiling or assembling, creation of DEF files and other unique
  109. # files.
  110. # If all compiler and assembly rules are the same, use an inference rule to
  111. # perform the compilation.
  112. #
  113.  
  114. .asm.obj:
  115.         $(MASM) $(MFLAGS) $*.asm;
  116.  
  117. .c.obj:
  118.         $(CL) $(CFLAGS) $(CINC) $*.c
  119.  
  120. .c.lst:
  121.         $(CL) $(CFLAGS) /Fc $(CINC) $*.c
  122.         copy $*.cod $*.lst
  123.         del $*.cod
  124.  
  125.  
  126. testcfg.s$(LANG): $(OBJS) $(LIBS) $(DEF) makefile
  127.   $(LINK) $(LFLAGS) $(OBJS),$*.s$(LANG),,$(LIBS),$*.def
  128.   $(MAPSYM) $*.map
  129.  
  130. #****************************************************************************
  131.