# --------------------------------------------------------------- # (C) Copyright 2001,2006, # International Business Machines Corporation, # # All Rights Reserved. # --------------------------------------------------------------- # PROLOG END TAG zYx # ######################################################################## # Subdirectories ######################################################################## DIRS = spu ######################################################################## # Target ######################################################################## ifdef 32BIT PROGRAMS_ppu = dacs_hello else PROGRAMS_ppu64 = dacs_hello endif ######################################################################## # Local Defines ######################################################################## # # The below envs are always needed # IMPORT - If we are embedding the SPE image within the PPE execuatable, we # must import it. # LDFLAGS - We need to load against the DaCS shared library. Where and # which library we load against will be decided below. # IMPORTS += ./spu/dacs_hello_spu.a LDFLAGS += -ldacs # # So you want to add PDT tracing/profiling to your DaCS application? # By setting the TRACE env, we will add in the following options that enable # us to build a trace version. # # To build with the trace options run "TRACE=1 make" # ifdef TRACE # # Add linker options to indicate where to locate dependent shared # libraries # LDFLAGS += -Wl,-rpath-link -Wl,$(SDKRPATH) # # Rather than require multiple environment variables we'll roll the # desired library path into the execuatable (instead of LD_LIBRARY_PATH). # Here, we include the path to check the SDK trace and dacs/trace library # locations. # LDFLAGS += -R$(SDKRPATH)/trace -R$(SDKRPATH)/dacs/trace # # Include the appropriate trace headers # INCLUDE += -I$(SDKINC)/trace -I/usr/include/trace else # # So we don't want TRACE, but maybe we want to enable DEBUG/error checking in # DaCS. In this case, the DEBUG env is used to enable the necessary config # options for using the DaCS debug library. # # To build with the debug options run "DEBUG=1 make" # ifdef DEBUG # # Add linker options to use indicate where to locate dependent shared # libraries # LDFLAGS += -Wl,-rpath-link -Wl,$(SDKRPATH) # # Rather than require multiple environment variables we'll roll the # desired library path into the execuatable (instead of LD_LIBRARY_PATH). # Here, we include the path to check the dacs/debug library # locations. # LDFLAGS += -R$(SDKRPATH)/dacs/debug endif # # If we have not configured TRACE or DEBUG, then the build and link will fall # through the default DaCS paths for libraries and such. # # For no debug or trace simply type "make" to build the DaCS app. # endif ######################################################################## # buildutils/make.footer ######################################################################## ifdef CELL_TOP include $(CELL_TOP)/buildutils/make.footer else include /opt/cell/sdk/buildutils/make.footer endif