# --------------------------------------------------------------- 
# (C) Copyright 2001,2006,                                        
# International Business Machines Corporation,                    
#                                                                 
# All Rights Reserved.                                            
# --------------------------------------------------------------- 
# PROLOG END TAG zYx                                              
#

ifndef DEVEL

include Makefile.example

else

########################################################################
#                       Target
########################################################################
PROGRAMS_spu	= dacs_hello_spu
LIBRARY_embed64	= dacs_hello_spu.a

########################################################################
#                       Local Defines
########################################################################
ifndef DACS_LIBRARY_PATH
	DACS_LIBRARY_PATH = ../../../../../internal-src/lib/dacs/cell/install
endif
ifndef DACS_INCLUDE_PATH
	DACS_INCLUDE_PATH = ../../../../../internal-src/lib/dacs/include
endif

INCLUDE		+= -I ..

ifdef TRACE
ADD_PATH		=  dacs/trace/
CC_OPT_LEVEL   	+= -g -Dmain=_pdt_main -Dexit=_pdt_exit -DMFCIO_TRACE
LDFLAGS  		+= -L$(SDKLIB)/trace
INCLUDE			+= -I$(SDKINC)/include/trace 
IMPORTS     	+= $(SDKLIB)/trace/libtrace.a -ltrace
else
ifdef DEBUG
ADD_PATH		=  dacs/debug/
endif
endif

IMPORTS			+= $(DACS_LIBRARY_PATH)/spu/lib/$(ADD_PATH)libdacs.a
INCLUDE			+= -I $(DACS_INCLUDE_PATH)

########################################################################
#           buildutils/make.footer
########################################################################
ifdef CELL_TOP
    include $(CELL_TOP)/buildutils/make.footer
else
    include $(BUILD_TOP)/buildutils/make.booter
endif

endif
