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 / fastfile / makefile < prev    next >
Makefile  |  1997-07-31  |  958b  |  36 lines

  1. !include <win32.mak>
  2.  
  3. !if "$(nodebug)" == "1"
  4. OBJ_DIR = Retail
  5. !else
  6. OBJ_DIR = Debug
  7. !endif
  8.  
  9. all: mkdir $(OBJ_DIR)\fastfile.lib $(OBJ_DIR)\ffcreate.exe
  10.  
  11. $(OBJ_DIR)\fastfile.obj:  fastfile.c fastfile.h
  12.     $(cc) $(cdebug) $(cflags) -Fo$(OBJ_DIR)\fastfile.obj $(cvars) fastfile.c
  13.     
  14.  
  15. $(OBJ_DIR)\fastfile.lib: $(OBJ_DIR)\fastfile.obj
  16.     $(implib) $(OBJ_DIR)\fastfile.Obj -name:fastfile.Lib \
  17.     -out:$(OBJ_DIR)\fastfile.lib
  18.  
  19. $(OBJ_DIR)\ffcreate.obj:  ffcreate.c ffent.h
  20.     $(cc) $(cdebug) $(cflags) -Fo$(OBJ_DIR)\ffcreate.obj $(cvars) ffcreate.c
  21.  
  22. $(OBJ_DIR)\ffcreate.exe: $(OBJ_DIR)\ffcreate.obj  ffcreate.def  
  23.     $(link) $(linkdebug) $(conflags) -out:$(OBJ_DIR)\ffcreate.exe \
  24.            $(OBJ_DIR)\ffcreate.obj \
  25.            $(conlibs)
  26.  
  27. mkdir:
  28.     if not exist $(OBJ_DIR)\NUL md $(OBJ_DIR)
  29.     
  30. # Rules for cleaning out those old files
  31. clean:
  32.     -echo y | del Retail
  33.     -echo y | del Debug
  34.     -rd Retail
  35.     -rd Debug
  36.