#############################################################################
#                                                                           #
#              Project: AvP                                                 #
#                                                                           #
#               Module: background.gen                                      #
#                                                                           #
#   Development System: VC++ NMAKE                                          #
#                                                                           #
#    Copyright (c)2000 Zono, Inc.                                           #
#                                                                           #
#############################################################################
#
# Secondary MakeFile for ONE AvP background (May be expanded for
# ALL level specific stuff. Is expected to be run in the given level
# This makfile is tool generated and may not be edited with the IDE
#
# ASSUMPTIONS:
#
#     none.
#

#############################################################################
#
# Build kfcflags.
#
KFCFLAGS =

!IFDEF PCX
KFCFLAGS = $(KFCFLAGS) /PCX
TARGET = PCX
!ENDIF

!IFDEF XBOX
KFCFLAGS = $(KFCFLAGS) /XBOX
TARGET = XBOX
!ENDIF

!IFDEF PS2
KFCFLAGS = $(KFCFLAGS) /PS2
TARGET = PS2
!ENDIF

!IFDEF GNUPS2
KFCFLAGS = $(KFCFLAGS) /PS2
TARGET = GNUPS2
!ENDIF



!IFDEF ARTROBOT	
KFCFLAGS = $(KFCFLAGS) /crcdiag
!IFNDEF TARGET
KFCFLAGS = $(KFCFLAGS) /crcdiag /PCX /PS2 
!ENDIF

LOCALARTBUILD=YES						
!ENDIF

!IF "$(CFG)" == "DEBUG"
KFCFLAGS = $(KFCFLAGS) /def: _DEBUG
!ENDIF


#############################################################################
#
# Some OS stuff so we can look for nul files, and just make sure we're under NT
#
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
!ERROR This makefile is usable under NT only!
!ENDIF

#############################################################################
#
# Directory macros - DAMM assumes $(OBJ)\ so we need to stick to that.
# 	BUT, if ARTROBOT==YES (for the robot itself) we'll redefine to GLOBALPROJPATH
#

!IF "$(ARTROBOT)" == "YES"
OBJ = $(GLOBALPROJPATH)\out\tbd\Greek04\
!ELSE
OBJ = $(PROJPATH)\out\tbd\Greek04\
!ENDIF


#############################################################################
#
# INFERENCE RULES - Last defined has precedence - All source directories
#       will need to be identified here.
#

.SUFFIXES:
.SUFFIXES: .kfc .tbd

#
# TBDScripts
#
!IFDEF LOCALARTBUILD
.SUFFIXES: .kfc

{$(GLOBALPROJPATH)\art\maps\Greek04}.kfc{$(OBJ)}.tbd:
        KFC $(KFCFLAGS) $< $@

!ELSE
.SUFFIXES: .kfc .tbd

{$(GLOBALPROJPATH)\out\tbd\Greek04}.tbd{$(OBJ)}.tbd:
        copy "$(GLOBALPROJPATH)\out\tbd\Greek04\$(@B).tbd" "$(PROJPATH)\out\tbd\Greek04\$(@B).tbd" /B
!ENDIF

{$(PROJPATH)\art\maps\Greek04}.kfc{$(OBJ)}.tbd:
        KFC $(KFCFLAGS) $< $@




#############################################################################
#
# TARGETS
#

ALL : $(OBJ) BACKGROUND

$(OBJ)\Background.tbd : 

$(OBJ)\DesignParams.tbd : 

$(OBJ)\HandLayout.tbd : 

$(OBJ)\LayoutParams.tbd : 

$(OBJ)\Lighting.tbd : 

$(OBJ)\MissionEnd.tbd : 

$(OBJ)\world.tbd : 

OBJECTS =               $(OBJ)\Background.tbd \
			$(OBJ)\DesignParams.tbd \
			$(OBJ)\HandLayout.tbd \
			$(OBJ)\LayoutParams.tbd \
			$(OBJ)\Lighting.tbd \
			$(OBJ)\MissionEnd.tbd \
			$(OBJ)\world.tbd 

!IFDEF XBOX
#############################################################################
#
# We're switchen to XBOX...
#
$(OBJ)\xboxcopyflag : $(OBJECTS)
        -xbcp /s /t /d /y $(GLOBALPROJPATH)\out\tbd\Greek04\*.tbx xe:\$(PROJNAME)\tbd\Greek04
	  -xbcp /s /t /d /y $(PROJPATH)\out\tbd\Greek04\*.tbx xe:\$(PROJNAME)\tbd\Greek04
        @echo "done" > $(OBJ)\xboxcopyflag

BACKGROUND : $(OBJECTS) $(OBJ)\xboxcopyflag

!ELSE 	

BACKGROUND : $(OBJECTS)

!ENDIF 	

