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

  1. #****************************************************************************
  2. #  Dot directive definition area (usually just suffixes)
  3. #****************************************************************************
  4.  
  5. .SUFFIXES: .c .obj
  6.  
  7.  
  8. !ifndef TOOLBASE
  9. TOOLBASE = ..\..\..\..\..\tools
  10. !endif
  11.  
  12. !ifndef BLDTOOLS
  13. BLDTOOLS = $(TOOLBASE)
  14. !endif
  15.  
  16. !ifndef CSET2
  17. CSET2    = $(TOOLBASE)\cset2
  18. !endif
  19.  
  20. !ifndef TOOLKT21
  21. TOOLKT21 = $(TOOLBASE)\toolkt20
  22. !endif
  23.  
  24. #****************************************************************************
  25. #  Environment Setup for the component(s).
  26. #****************************************************************************
  27. DDK      = ..\..\..\..\..
  28. IH       = ..\..\..\h
  29. TLKH     = ..\..\penbase\inc
  30. PENH     = $(IH);$(TLKH)
  31. CSET2H   = $(CSET2)\include;$(CSET2)\include\sys
  32. CSET2L   = $(CSET2)\lib;
  33. CSET2B   = $(CSET2)\bin
  34. CSET2M   = $(CSET2)\locale;$(CSET2)\help
  35. PINCLUDE  = -I. -I..\..\penbase\inc
  36. OS2H     = $(TOOLKT21)\c\os2h;$(DDK)\IBMH;$(DDK)\inc;
  37. OS2L     = $(TOOLKT21)\os2lib;$(DDK)\lib
  38. OS2B     = $(TOOLKT21)\os2bin
  39.  
  40. !if [set INCLUDE=$(PENH);$(CSET2H);$(OS2H);$(PINCLUDE);%INCLUDE%]  ||  \
  41.     [set LIB=$(CSET2L);$(OS2L);%LIB%]         ||  \
  42.     [set PATH=$(CSET2B);$(OS2B);$(BLDTOOLS);$(PATH);%PATH%]     ||  \
  43.     [set DPATH=$(CSET2M);$(DPATH);%DPATH%]
  44. !endif
  45.  
  46. SOMTEMP= $(TMP)
  47.  
  48. !if [set SMTMP=$(SOMTEMP)] || \
  49.     [set SMEMIT=ih;h;ph;psc;sc;c]
  50. !endif
  51.  
  52. #
  53. # Compiler/tools Macros
  54. #
  55. !ifdef DEBUG
  56. CDBFLAG=/Ti+ /O-
  57. LDBFLAG=/DEBUG /BATCH
  58. !endif
  59.  
  60. CC       = icc /c /Gm- /Ss $(CDBFLAG)
  61. LINK       = link386 $(LDBFLAG)
  62. LDFLAGS    = /noi /map /nol /nod /exepack /packcode /packdata /align:16
  63. LIBS       = os2386.lib dde4sbs.lib
  64.  
  65. #****************************************************************************
  66. # Set up Macros that will contain all the different dependencies for the
  67. # executables and dlls etc. that are generated.
  68. #****************************************************************************
  69.  
  70. OBJS = pentl.obj
  71.  
  72. #****************************************************************************
  73. #   Setup the inference rules for compiling source code to
  74. #   object code.
  75. #****************************************************************************
  76.  
  77. .c.obj:
  78. #       $(CC) $(INCLUDE) $<
  79.         $(CC) /fo$*.obj $(PINCLUDE) $<
  80.  
  81. .asm.obj:
  82.         $(MASM) $*.asm $*.obj
  83.  
  84. .csc.ih:
  85.         sc -v -r $*.csc
  86.  
  87. .csc.c:
  88.         sc $*.csc
  89.  
  90. #******************************************************************************
  91. #   Target Information
  92. #******************************************************************************
  93. #
  94. # This is a very important step. The following small amount of code MUST
  95. # NOT be removed from the program. The following directive will do
  96. # dependency checking every time this component is built UNLESS the
  97. # following is performed:
  98. #                    A specific tag is used -- ie. all
  99. #
  100. # This allows the developer as well as the B & I group to perform incremental
  101. # build with a degree of accuracy that has not been used before.
  102. # There are some instances where certain types of INCLUDE files must be
  103. # created first. This type of format will allow the developer to require
  104. # that file to be created first. In order to achive that, all that has to
  105. # be done is to make the DEPEND.MAK tag have your required target. Below is
  106. # an example:
  107. #
  108. #    depend.mak:   { your file(s) } dephold
  109. #
  110. # Please DON'T remove the following line
  111. #
  112.  
  113. all: pentl.exe
  114.  
  115. #
  116. # Specific Process Tag
  117. #
  118.  
  119. pentl.exe : $(OBJS)
  120.         $(LINK) /NOI /NOD @<<
  121.          $(OBJS)
  122.          $@
  123.          $*.map   /map
  124.          $(LIBS)
  125.          $*.def
  126. <<
  127.  
  128. #******************************************************************************
  129.