home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Game Programming for Teens / VBGPFT.cdr / DirectX8 / dx8a_sdk.exe / samples / multimedia / directdraw / gammacontrol / makefile < prev    next >
Encoding:
Makefile  |  2000-09-22  |  1.1 KB  |  40 lines

  1. proj=GammaControl
  2.  
  3. INCLUDE=$(INCLUDE);$(DXSDKROOT)\samples\multimedia\ddraw\include;
  4.  
  5. !if "$(nodebug)" == "1"
  6. OBJ_DIR = Retail
  7. !else
  8. OBJ_DIR = Debug
  9. !endif
  10.  
  11. !include "$(DXSDKROOT)\include\dxsdk.inc"
  12.  
  13. mycflags=
  14.  
  15. OBJ_LIST = $(OBJ_DIR)\$(proj).obj $(OBJ_DIR)\ddutil.obj
  16.  
  17. all: mkdir $(OBJ_DIR)\$(proj).exe     
  18.  
  19. $(OBJ_DIR)\$(proj).obj:  $(proj).cpp
  20.     $(cc) $(cdebug) $(cflags) $(mycflags) $(outobj)$(OBJ_DIR)\$(proj).obj $(proj).cpp
  21.  
  22. $(OBJ_DIR)\ddutil.obj:  ..\common\ddutil.cpp
  23.     $(cc) $(cdebug) $(cflags) $(mycflags) $(outobj)$(OBJ_DIR)\ddutil.obj ..\common\ddutil.cpp
  24.  
  25. $(OBJ_DIR)\$(proj).res: $(proj).rc resource.h
  26.    $(rc) $(rcflags) $(OBJ_DIR)\$(proj).res $(proj).rc
  27.  
  28. $(OBJ_DIR)\$(proj).exe: $(OBJ_LIST) $(OBJ_DIR)\$(proj).res
  29.     $(link) $(linkdebug) $(linkflags) $(OBJ_LIST) $(borobjs) $(commas) $(outexe)$(OBJ_DIR)\$(proj).exe $(commas) $(commas) $(deflibs) ddraw.lib dxguid.lib $(commas) $(commas) $(OBJ_DIR)\$(proj).res
  30.  
  31. mkdir:
  32.     @if not exist $(OBJ_DIR)\NUL md $(OBJ_DIR)
  33.     
  34. # Rules for cleaning out those old files
  35. clean:
  36.     -@echo y | del Retail
  37.     -@echo y | del Debug
  38.     -@rd Retail
  39.     -@rd Debug
  40.