home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM User 1995 January / CDuser6Jan95.iso / WING / CUBE.MK_ / CUBE.MK
Text File  |  1994-06-24  |  928b  |  54 lines

  1. DEBUG=NO
  2.  
  3. !if "$(DEBUG)" == "YES"
  4. DEF = -DDEBUG -DSTRICT -DPROFILE
  5. CC  = cl -c -W3 -AS -G3 -Gs -GA -Zip -Oxwt /FPi $(DEF)
  6. !else
  7. DEF = -DSTRICT
  8. CC  = cl -c -W3 -AS -G3 -Gs -GA -Oxwt /FPi $(DEF)
  9. !endif
  10.  
  11. ASM = masm -Mx -Zi
  12. LINK= link /NOE/NOD/MAP/AL:16
  13. NAME= cube
  14. RC  = rc
  15.  
  16. OBJDIR = .
  17. OBJ = $(OBJDIR)\$(NAME).obj $(OBJDIR)\dumb3d.obj
  18.  
  19. LIBS = libw slibcew wing
  20.  
  21. goal: $(NAME).exe
  22.  
  23. .cpp{$(OBJDIR)}.obj:
  24.   $(CC) -Fo$*.obj $<
  25.  
  26. .asm{$(OBJDIR)}.obj:
  27.     $(ASM) $<, $*.obj;
  28.  
  29. $(NAME).exe: $(OBJ) $(NAME).res $(NAME).def
  30.         $(LINK) @<<
  31.         $(OBJ),
  32.         $(NAME),
  33.         $(NAME),
  34.         $(LIBS),
  35.         $(NAME).def
  36. <<
  37.         rc -k $(NAME).res
  38.         -cvpack -p $(NAME).exe
  39.         -mapsym $(NAME).map
  40.  
  41. $(NAME).res: $(NAME).rc $(NAME).ico
  42.         $(RC) -r $(NAME).rc
  43.  
  44. clean:
  45.         del $(NAME).exe
  46.         del *.res
  47.         del *.err
  48.         del $(OBJDIR)\*.obj
  49.         del *.map
  50.         del *.sym
  51.         del *.cod
  52.         del *.pdb
  53.  
  54.