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
/
override
/
makefile
next >
Wrap
Makefile
|
1997-07-31
|
872b
|
34 lines
!include <win32.mak>
!if "$(nodebug)" == "1"
OBJ_DIR = Retail
!else
OBJ_DIR = Debug
!endif
proj=override
all: mkdir $(OBJ_DIR)\$(proj).exe
$(OBJ_DIR)\$(proj).obj: $(proj).c resource.h
$(cc) $(cdebug) $(cflags) -Fo$(OBJ_DIR)\$(proj).obj $(cvars) $(proj).c
$(OBJ_DIR)\$(proj).res: $(proj).rc resource.h
rc -r -fo $(OBJ_DIR)\$(proj).res $(proj).rc
$(OBJ_DIR)\$(proj).exe: $(OBJ_DIR)\$(proj).obj $(OBJ_DIR)\$(proj).res
$(link) $(linkdebug) $(guiflags) -out:$(OBJ_DIR)\$(proj).exe \
$(OBJ_DIR)\$(proj).obj $(OBJ_DIR)\$(proj).res \
$(guilibs) dplayx.lib uuid.lib ole32.lib
# Rules for cleaning out those old files
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