home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / MAKE.INI < prev    next >
Text File  |  1997-07-05  |  4KB  |  193 lines

  1. # +++Date last modified: 05-Jul-1997
  2.  
  3. #
  4. #  Master MAKE.INI file for NDMAKE
  5. #
  6. #  jim nutt
  7. #  'the computer handyman'
  8. #
  9.  
  10. .SUFFIXES : .doc .exe .prf .obj .cpp .c .a86 .asm .com .a86
  11.  
  12. #
  13. # generate response files for these as well as lib and link
  14. #
  15.  
  16. .RESPONSE_LINK: tlink blink ztcmap
  17. .RESPONSE_LIB:  tlib zorlib
  18.  
  19. VPATH   = .;c:\include;
  20. MAKE_TMP= $(TMP)
  21.  
  22. #
  23. # some defaults
  24. #
  25.  
  26. project =
  27. obj     =
  28. cc      = ztc
  29. mcflags = $p $s $w
  30. cflags  =
  31.  
  32. #
  33. # zortech c settings
  34. #
  35.  
  36. ztclib     = c:\lib\$(cc)                  # where are the libraries
  37. ztcinclude = c:\include\$(cc)
  38. ztclibrary = $(lib)\zl$(model)
  39. ztccompile = $(cc) -c -m$(options)
  40. ztcoptions = $(model) $(mcflags) -I$(include) -ic:\include
  41. ztcstartup =
  42. ztcwild    =
  43. ztcscheck  = -s
  44. ztcpcheck  =
  45. ztcalign   = -a
  46. ztcunsigned= -J
  47. ztccodeview= -g
  48. ztcmaxwarnings= -p -r
  49. ztcinline  = -f
  50. ztcoptimize= -o+all -o+loop
  51. ztcmodel   = -m
  52. ztcdefine  = -d
  53. ztcstdc    = -A
  54.  
  55. #
  56. # quick c settings
  57. #
  58.  
  59. qcllib     = c:\lib\msc
  60. qclinclude = c:\include\msc
  61. qcllibrary = $(lib)\$(model)libcr $(lib)\libh
  62. qclcompile = qcl /c /X /Zl /A$(options) /D__MSC__=1
  63. qcloptions = $(model) $(mcflags) /I$(include)
  64. qclstartup =
  65. qclwild    =
  66. qclscheck  =
  67. qclpcheck  = /Zr
  68. qclalign   = /Zp
  69. qclunsigned=
  70. qclcodeview= /Zi
  71. qclmaxwarnings = /W3
  72. qclinline  = /FPi87
  73. qcloptimize= /Ox
  74. qclmodel   = /A
  75. qcldefine  = /D
  76. qclstdc    = /Za
  77.  
  78. #
  79. # msc 5.1 settings
  80. #
  81.  
  82. msclib     = c:\lib\msc
  83. mscinclude = c:\include\$(cc)
  84. msclibrary = $(lib)\$(model)libcr $(lib)\libh
  85. msccompile = cl /c /X /Zl /A$(options) /D__MSC__=1
  86. mscoptions = $(model) $(mcflags) /I$(include) /Ic:\include
  87. mscstartup =
  88. mscwild    =
  89. mscscheck  =
  90. mscpcheck  =
  91. mscalign   = /Zp
  92. mscunsigned=
  93. msccodeview= /Zi
  94. mscmaxwarnings = /W3
  95. mscinline  = /FPi87
  96. mscoptimize= /Owilt
  97. mscmodel   = /A
  98. mscdefine  = /D
  99. mscstdc    = /Za
  100.  
  101. #
  102. # turbo c settings
  103. #
  104.  
  105. tcclib     = c:\lib\$(cc)                  # where are the libraries
  106. tccinclude = c:\include\$(cc)
  107. tcclibrary = $(lib)\c$(model)
  108. tcccompile = $(cc) -c -m$(options)
  109. tccoptions = $(model) $(mcflags) -I$(include)
  110. tccstartup = $(lib)\c0$(model)
  111. tccwild    =
  112. tccscheck  = -N
  113. tccpcheck  =
  114. tccalign   = -a-
  115. tccunsigned= -K
  116. tcccodeview= -y
  117. tccmaxwarnings = -w -w-stv
  118. tccinline  = -f87
  119. tccmodel   = -m
  120. tccdefine  = -D
  121. tccoptimize= -O -G -r
  122. tccstdc    = -A
  123.  
  124. lib             = $($(cc)lib)
  125. include         = $($(cc)include)
  126. library         = $($(cc)library)
  127. cxl             = $(lib)\cxl$(model)
  128. options         = $($(cc)options)
  129. compile         = $($(cc)compile) $(cflags)
  130. startup         = $($(cc)startup)
  131. wild            = $($(cc)wild)
  132. libs            = $(library)
  133.  
  134. # compiler options
  135.  
  136. a       = $($(cc)align)         # byte align structures
  137. c       = $($(cc)codeview)      # codeview debugging (if avail, else symdeb)
  138. d       = $($(cc)define)        # command line #define
  139. i       = $($(cc)inline)        # inline 8087 code generation
  140. m       = $($(cc)model)         # memory model selection
  141. p       = $($(cc)pcheck)        # pointer checking (if available)
  142. s       = $($(cc)scheck)        # turn on stack checking
  143. u       = $($(cc)unsigned)      # chars are unsigned
  144. o       = $($(cc)optimize)      # do max optimizations
  145. w       = $($(cc)maxwarnings)   # give maximum warnings
  146. stdc    = $($(cc)stdc)          # use ANSI standard keywords only
  147.  
  148. model   = S
  149.  
  150. # the linker
  151.  
  152. linkopt = /noi
  153. linker  = link
  154.  
  155. # an easy linking macros
  156.  
  157. linklst = $($(project)obj),$(project),$(project),$(libs) $(linkopt);
  158. link    = $(linker) $(wild) $(startup) $(linklst)
  159.  
  160. # default rules
  161.  
  162. markfile :
  163.         calltree -z markfile *.c
  164.  
  165. .c.exe :
  166.         .c.obj
  167.         $(linker) $(wild) $(startup) $*, $* ,$* ,$(libs) $(linkopt);
  168.  
  169. .obj.exe :
  170.         $(link)
  171.  
  172. .c.obj : 
  173.         $(compile) $*.c
  174.  
  175. .cpp.obj :
  176.         $(cc) $*
  177.  
  178. .asm.obj :
  179.         masm $*;
  180.  
  181. .a86.obj :
  182.         a86 +o +s $*.a86 $*.obj
  183.  
  184. .a86.com :
  185.         a86 $*.a86
  186.  
  187. .a86.exe :
  188.         a86 +o +s $*.a86
  189.         link $*;
  190.  
  191. .prf.doc :
  192.         proff $*.prf $*.doc
  193.