home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / t / triq.zip / MAKEFILE < prev    next >
Text File  |  1991-09-10  |  2KB  |  80 lines

  1. #     (C) Copyright Microsoft Corp. 1991.  All rights reserved.
  2. #
  3. #     You have a royalty-free right to use, modify, reproduce and 
  4. #     distribute the Sample Files (and/or any modified version) in 
  5. #     any way you find useful, provided that you agree that 
  6. #     Microsoft has no warranty obligations or liability for any 
  7. #     Sample Application Files which are modified. 
  8. #
  9.  
  10. # /Gh means use C5.0 compatible 'helper' routines for long math
  11. # The 4D asm code depends on these 'old' routine names.
  12.  
  13. CC  = cl -c -W2 -AM -G2sw -Zip -Otxza /Gh $(DEF)
  14. ASM = masm -t -D?QUIET $(DEF) -Mx -Zi
  15. LINK= link /NOE/CO/LI/MAP/NOD
  16. NAME= triq
  17. DEF =-DDEBUG
  18. RC  = rc $(DEF)
  19.  
  20. OBJ  = parse.obj dib.obj triangle.obj 
  21. LIBS = libw Mlibcew 4d\4d.lib 
  22.  
  23. .c.obj:
  24.     $(CC) $*.c
  25.  
  26. .asm.obj:
  27.     $(ASM) $*;
  28.  
  29. goal: 4d\4d.lib $(NAME).exe tri.exe
  30.  
  31. 4d\4d.lib:
  32.     cd 4d
  33.     $(MAKE)
  34.     cd ..
  35.  
  36. tri.exe: tri.obj dib.obj triangle.obj tri.res tri.def makefile 4d\4d.lib
  37.         $(LINK) @<<
  38. tri.obj +
  39. dib.obj triangle.obj
  40. tri
  41. tri
  42. libw mlibcew 4d\4d.lib
  43. tri.def
  44. <<
  45.         $(RC) -t tri.res
  46.         cvpack -p tri.exe
  47.     mapsym tri.map
  48.  
  49. $(NAME).exe: $(NAME).obj $(OBJ) $(NAME).res $(NAME).def makefile 4d\4d.lib
  50.         $(LINK) @<<
  51. $(NAME).obj +
  52. $(OBJ)
  53. $(NAME)
  54. $(NAME)
  55. $(LIBS)
  56. $(NAME).def
  57. <<
  58.         $(RC) -t $(NAME).res
  59.         cvpack -p $(NAME).exe
  60.     mapsym $(NAME).map
  61.  
  62. tri.res: tri.rc
  63.         $(RC) -r tri.rc
  64.  
  65. $(NAME).res: $(NAME).rc
  66.         $(RC) -r $(NAME).rc
  67.  
  68. clean:
  69.     cd 4d
  70.     $(MAKE) clean
  71.     cd ..
  72.     del 4d.lib
  73.     del $(NAME).exe
  74.     del tri.exe
  75.         del *.res
  76.         del *.obj
  77.         del *.map
  78.         del *.sym
  79.  
  80.