home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 v2.4 Fix / W95-v2.4fix.iso / ACADWIN / ASE / ASITM80.MAK < prev    next >
Encoding:
Text File  |  1995-02-08  |  2.2 KB  |  83 lines

  1. #
  2. # NMAKE include file for Autodesk SQL Interface NT builds
  3. #
  4. # Macro assumptions:
  5. #   LOCINC = list of additional include dirs for local makefile
  6. # LOCCFLAG = additional cflags for compiler command line
  7. #    DEBUG = defined, for full debugging
  8. #
  9.  
  10. # Turn on debugging switches if DEBUG is set.
  11. # This is located before ntwin32.mak because NODEBUG is used in that file.
  12. !IF "$(DEBUG)" == "NO"
  13. NODEBUG = 1
  14. ADFLAGS = /Mx
  15. !ELSE
  16. DFLAGS  = -DDEBUG=1
  17. ADFLAGS = /Mx /ZI
  18. !ENDIF
  19.  
  20. !include <ntwin32.mak>
  21.  
  22. # These should be defined this way in msvcnt's ntwin32.mak, but
  23. # they're set to cl386 and link32 instead, which give us warnings
  24. # and then call cl and link!
  25. cc = cl
  26. link = link
  27. libexe = lib
  28.  
  29. #   Allow makefile to add its own local include path.
  30. CF0 =
  31. !ifdef LOCINC
  32. !if "$(LOCINC)x" != "x"
  33. CF0 = -I$(LOCINC: = -I)
  34. !endif # LOCINC not empty
  35. !endif # LOCINC defined
  36.  
  37. #   Allow makefile to add its own local cflags
  38. !ifndef LOCCFLAG
  39. LOCCFLAG =
  40. !endif
  41.  
  42. #   The following line specifies the C compiler options.
  43. #   The cflags and cvars macros come from ntwin32.mak
  44.  
  45. !IF "$(SHOWWARNINGS)" == "YES"
  46. CF1 = -nologo $(cflags) $(cvarsmt) $(CF0) -DPROTOTYPES -DWIN -WX -DRADPACK
  47. !ELSE
  48. CF1 = -nologo $(cflags) $(cvarsmt) $(CF0) -DPROTOTYPES -DWIN -DRADPACK
  49. !ENDIF
  50.  
  51. ASM = $(AC)\tntools\bin\masm386 /Ml /DMSC $(AFLAGS)
  52.  
  53. .SUFFIXES:
  54. .SUFFIXES: .obj .asm .c .cc .cpp
  55.  
  56. #   Compile normally
  57.      
  58. CMPL = $(cc) $(cdebug) $(LOCCFLAG) $(CF1) -Fd$(VPATH)\ -Fo$(VPATH)\ $(DFLAGS)
  59.  
  60. # Normal compile rule
  61. {.}.c{$(VPATH)}.obj:
  62.     @echo Compiling $(@B).c
  63.     @if exist $@ del $@
  64.     @($(CMPL) $(@B).c > $(@B).err && del $(@B).err) || type $(@B).err
  65.  
  66. # Normal compile rule
  67. {.}.cc{$(VPATH)}.obj:
  68.     @echo Compiling $(@B).cc
  69.     @if exist $@ del $@
  70.     @($(CMPL) -Tp$(@B).cc > $(@B).err && del $(@B).err) || type $(@B).err
  71.  
  72. # Normal compile rule
  73. {.}.cpp{$(VPATH)}.obj:
  74.     @echo Compiling $(@B).cpp
  75.     @if exist $@ del $@
  76.     @($(CMPL) -Tp$(@B).cpp > $(@B).err && del $(@B).err) || type $(@B).err
  77.  
  78. # Normal assembly rule
  79. {.}.asm{$(VPATH)}.obj:
  80.     @echo Assembling $(@B).asm
  81.     @if exist $@ del $@
  82.     @($(ASM) $(@B).asm,$(VPATH)\$(@B).obj,NUL, NUL; > $(@B).err && del $(@B).err) || type $(@B).err
  83.