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 / stretch3 / makefile < prev    next >
Makefile  |  1997-10-10  |  2KB  |  52 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=stretch3
  10.  
  11. OBJ_LIST = $(OBJ_DIR)\$(proj).obj ..\misc\$(OBJ_DIR)\ddmm.obj \
  12.            ..\misc\$(OBJ_DIR)\ddutil2.obj
  13.  
  14. mycflag=/I "..\misc"
  15.  
  16. all: mkdir $(OBJ_DIR)\$(proj).exe
  17.  
  18. $(OBJ_DIR)\$(proj).obj:  stretch.cpp resource.h ..\misc\ddutil2.h
  19.     $(cc) $(cdebug) $(cflags) -Fo$(OBJ_DIR)\$(proj).obj $(mycflag) \
  20.     $(cvars) stretch.cpp
  21.     
  22. ..\misc\$(OBJ_DIR)\ddutil2.obj:  ..\misc\ddutil2.cpp ..\misc\ddutil2.h
  23.     $(cc) $(cdebug) $(cflags) -Fo..\misc\$(OBJ_DIR)\ddutil2.obj $(mycflag) \
  24.     $(cvars) ..\misc\ddutil2.cpp
  25.  
  26. ..\misc\$(OBJ_DIR)\ddmm.obj: ..\misc\ddmm.cpp
  27.     $(cc) $(cdebug) $(cflags) -Fo..\misc\$(OBJ_DIR)\ddmm.obj $(mycflag) \
  28.     $(cvars) ..\misc\ddmm.cpp
  29.  
  30. $(OBJ_DIR)\$(proj).res: stretch3.rc resource.h
  31.    rc -r -fo $(OBJ_DIR)\$(proj).res stretch3.rc
  32.  
  33. $(OBJ_DIR)\$(proj).exe: $(OBJ_LIST) stretch3.def $(OBJ_DIR)\$(proj).res
  34.     $(link) $(linkdebug) $(guiflags) -out:$(OBJ_DIR)\$(proj).exe \
  35.            $(OBJ_LIST) $(OBJ_DIR)\$(proj).res \
  36.            $(guilibs) ddraw.lib dxguid.lib
  37.  
  38. mkdir:
  39.     if not exist $(OBJ_DIR)\NUL md $(OBJ_DIR)
  40.     if not exist ..\misc\$(OBJ_DIR)\NUL md ..\misc\$(OBJ_DIR)
  41.     
  42. # Rules for cleaning out those old files
  43. clean:
  44.     -echo y | del Retail
  45.     -echo y | del Debug
  46.     -echo y | del ..\misc\Retail
  47.     -echo y | del ..\misc\Debug
  48.     -rd Retail
  49.     -rd Debug
  50.     -rd ..\misc\Retail
  51.     -rd ..\misc\Debug
  52.