home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-09-22 | 1.1 KB | 40 lines |
- proj=GammaControl
-
- INCLUDE=$(INCLUDE);$(DXSDKROOT)\samples\multimedia\ddraw\include;
-
- !if "$(nodebug)" == "1"
- OBJ_DIR = Retail
- !else
- OBJ_DIR = Debug
- !endif
-
- !include "$(DXSDKROOT)\include\dxsdk.inc"
-
- mycflags=
-
- OBJ_LIST = $(OBJ_DIR)\$(proj).obj $(OBJ_DIR)\ddutil.obj
-
- all: mkdir $(OBJ_DIR)\$(proj).exe
-
- $(OBJ_DIR)\$(proj).obj: $(proj).cpp
- $(cc) $(cdebug) $(cflags) $(mycflags) $(outobj)$(OBJ_DIR)\$(proj).obj $(proj).cpp
-
- $(OBJ_DIR)\ddutil.obj: ..\common\ddutil.cpp
- $(cc) $(cdebug) $(cflags) $(mycflags) $(outobj)$(OBJ_DIR)\ddutil.obj ..\common\ddutil.cpp
-
- $(OBJ_DIR)\$(proj).res: $(proj).rc resource.h
- $(rc) $(rcflags) $(OBJ_DIR)\$(proj).res $(proj).rc
-
- $(OBJ_DIR)\$(proj).exe: $(OBJ_LIST) $(OBJ_DIR)\$(proj).res
- $(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
-
- mkdir:
- @if not exist $(OBJ_DIR)\NUL md $(OBJ_DIR)
-
- # Rules for cleaning out those old files
- clean:
- -@echo y | del Retail
- -@echo y | del Debug
- -@rd Retail
- -@rd Debug
-