proj=xofuser

# Builds a console application
main = 1

!if "$(nodebug)" == "1"
OBJ_DIR = Retail
!else
OBJ_DIR = Debug
!endif

!include "$(DXSDKROOT)\include\dxsdk.inc"

mycflags=

OBJ_LIST = $(OBJ_DIR)\mytest.obj $(OBJ_DIR)\mysave.obj

all: mkdir $(OBJ_DIR)\$(proj).exe

$(OBJ_DIR)\mytest.obj:  mytest.cpp
    $(cc) $(cdebug) $(cflags) $(mycflags) $(outobj)$(OBJ_DIR)\mytest.obj mytest.cpp

$(OBJ_DIR)\mysave.obj:  mysave.cpp
    $(cc) $(cdebug) $(cflags) $(mycflags) $(outobj)$(OBJ_DIR)\mysave.obj mysave.cpp

$(OBJ_DIR)\$(proj).exe: $(OBJ_LIST)
    $(link) $(linkdebug) $(linkflags) $(OBJ_LIST) $(borobjs) $(commas) $(outexe)$(OBJ_DIR)\$(proj).exe $(commas) $(commas) $(deflibs) d3dxof.lib $(commas) $(commas)

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
