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

ifndef DEVEL

include Makefile.example

else

########################################################################
#                       Subdirectories
########################################################################
DIRS	= spu

########################################################################
#           			Target
########################################################################
PROGRAMS_ppu64	= dacs_hello

########################################################################
#           			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

ifdef TRACE
	ADD_PATH = dacs/trace/
	INCLUDE += -I/usr/include/trace
	IMPORTS += -ltrace
else
ifdef DEBUG
	ADD_PATH = dacs/debug/
endif
endif

IMPORTS	= $(DACS_LIBRARY_PATH)/lib64/$(ADD_PATH)libdacs.a \
		  ./spu/dacs_hello_spu.a \
		  -lspe2

INCLUDE	= -I $(DACS_INCLUDE_PATH)

ifdef TRACE
	LDFLAGS += -R$(SDKRPATH)/trace
	INCLUDE += -I/usr/include/trace
	IMPORTS += -ltrace
endif

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

endif
