home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / mosquito / makefile next >
Makefile  |  1997-07-31  |  851b  |  34 lines

  1. !include <win32.mak>
  2.  
  3. !if "$(nodebug)" == "1"
  4. OBJ_DIR = Retail
  5. !else
  6. OBJ_DIR = Debug
  7. !endif
  8.  
  9. proj=mosquito
  10.  
  11. all: mkdir $(OBJ_DIR)\$(proj).exe
  12.  
  13. $(OBJ_DIR)\$(proj).obj:  $(proj).cpp resource.h
  14.     $(cc) $(cdebug) $(cflags) -Fo$(OBJ_DIR)\$(proj).obj $(cvars) $(proj).cpp
  15.     
  16. $(OBJ_DIR)\$(proj).res: $(proj).rc resource.h
  17.    rc -r -fo $(OBJ_DIR)\$(proj).res $(proj).rc
  18.  
  19. $(OBJ_DIR)\$(proj).exe: $(OBJ_DIR)\$(proj).obj $(OBJ_DIR)\$(proj).res
  20.     $(link) $(linkdebug) $(guiflags) -out:$(OBJ_DIR)\$(proj).exe \
  21.            $(OBJ_DIR)\$(proj).obj $(OBJ_DIR)\$(proj).res \
  22.            $(guilibs) ddraw.lib
  23. # Rules for cleaning out those old files
  24.  
  25. mkdir:
  26.     if not exist $(OBJ_DIR)\NUL md $(OBJ_DIR)
  27.     
  28. # Rules for cleaning out those old files
  29. clean:
  30.     -echo y | del Retail
  31.     -echo y | del Debug
  32.     -rd Retail
  33.     -rd Debug
  34.