head	1.6;
access;
symbols
	charm6_1:1.6
	charm_6_0_1:1.6
	charm6_0_1:1.6
	charm6_0:1.5
	ChaNGa_1-0:1.3;
locks; strict;
comment	@# @;


1.6
date	2009.02.04.23.09.28;	author kunzman;	state Exp;
branches;
next	1.5;
commitid	GzJ3gytX8YyXHaBt;

1.5
date	2008.01.09.22.15.38;	author kunzman;	state Exp;
branches;
next	1.4;
commitid	FRdMYI2DtPBI0NMs;

1.4
date	2007.09.20.20.26.39;	author bhatele;	state Exp;
branches;
next	1.3;
commitid	7ddd46f2d77b4567;

1.3
date	2006.05.31.13.41.21;	author kunzman;	state Exp;
branches;
next	1.2;

1.2
date	2006.04.13.00.24.05;	author kunzman;	state Exp;
branches;
next	1.1;

1.1
date	2006.03.24.00.21.31;	author kunzman;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Modified for addition of accel entry method support.
@
text
@CHARM_BASE_DIR = ../../../..
CHARM_BIN_DIR = $(CHARM_BASE_DIR)/bin
CHARMC = $(CHARM_BIN_DIR)/charmc $(OPTS)

OBJS = main.o jacobi.o
GENERAL_DEPENDS = Makefile

default : all
all : jacobi


################################################################################
## General Charm++ Stuff

# Rule to combine all the object files
jacobi : $(OBJS) $(GENERAL_DEPENDS)
	$(CHARMC) -language charm++ -o jacobi $(OBJS)

# Rule to compile the Main class
main.o : main.C main.h jacobi_config.h main.decl.h jacobi.decl.h $(GENERAL_DEPENDS)
	$(CHARMC) -c -o main.o main.C

# Rule to compile the Jacobi class
jacobi.o : jacobi.C jacobi.h jacobi_config.h jacobi.decl.h main.decl.h $(GENERAL_DEPENDS)
	$(CHARMC) -c -o jacobi.o jacobi.C

# General rule for creating decl and def files
%.decl.h : %.ci $(GENERAL_DEPENDS)
	$(CHARMC) $*.ci


################################################################################
## Clean-up Stuff

clean :
	$(RM) *.decl.h *.def.h *.o jacobi_shared jacobi charmrun *genSPECode*
@


1.5
log
@Updated for SDK v3.0.
@
text
@d5 1
a7 3
# NOTE : Mainfile.cell will set some variables including : CELL_SDK_DIR, SPU_CXX, PPU_EMBEDSPU, etc.
include $(CHARM_BASE_DIR)/tmp/Makefile.cell

a8 1

d12 2
a13 2
#///////////////////////////////////////////////////////////////////////////////
#// General Charm++ Stuff
d16 2
a17 2
jacobi : main.o jacobi.o jacobi_shared.o
	$(CHARMC) -language charm++ -o jacobi main.o jacobi.o jacobi_shared.o
d20 1
a20 1
main.o : main.C main.h jacobi_shared.h main.decl.h jacobi.decl.h $(GENERAL_DEPENDS)
d24 1
a24 2
jacobi.o : jacobi.C jacobi.h jacobi_shared.h jacobi.decl.h main.decl.h $(GENERAL_DEPENDS)
#	$(CHARMC) -c -o jacobi.o jacobi.C jacobi_shared.cpp
d32 2
a33 18
#///////////////////////////////////////////////////////////////////////////////
#// Cell Specific Stuff

# Rule to create the embeded spu runtime that includes the user's shared code
jacobi_shared.o : jacobi_shared.cpp jacobi_shared.h $(GENERAL_DEPENDS)
#	$(SPU_CXX) -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -o jacobi_shared jacobi_shared.cpp -lcellspu
#	$(SPU_CXX) -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -nodefaultlibs -o jacobi_shared jacobi_shared.cpp -lcellspu -lc -lsim
	cp jacobi_shared.cpp jacobi_shared.c
#	spu-gcc $(OPTS) -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -o jacobi_shared jacobi_shared.c -lcellspu -lsim
#	spu-gcc $(OPTS) -c -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o jacobi_shared_tmp.o jacobi_shared.c
#	spu-gcc -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o jacobi_shared jacobi_shared_tmp.o -lcellspu -lsim
#	$(SPU_CC) -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o jacobi_shared jacobi_shared.c -lcellspu -lsim -lc
	$(SPU_CC) -I$(CHARM_BASE_DIR)/include -L$(CHARM_BASE_DIR)/lib -o jacobi_shared jacobi_shared.c -lcellspu
	$(PPU_EMBEDSPU) spert_main jacobi_shared jacobi_shared.o


#///////////////////////////////////////////////////////////////////////////////
#// Clean-up Stuff
d36 1
a36 1
	$(RM) *.decl.h *.def.h *.o jacobi_shared jacobi charmrun
@


1.4
log
@"all" target added
@
text
@d47 2
a48 1
	$(SPU_CC) -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o jacobi_shared jacobi_shared.c -lcellspu -lsim -lc
@


1.3
log
@Removed jacobi_shared.cpp from being compiled into PPE code (because of sim_printf).  Modified SPE compile rule so SPE code is compiled as C instead of C++ (left old commands in, for now, as reference).
@
text
@d10 1
a11 1
default : all
@


1.2
log
@Updated the jacobi example to match the changed made to the Offload API (another
parameter was added to funcLookup()).
@
text
@d28 2
a29 1
	$(CHARMC) -c -o jacobi.o jacobi.C jacobi_shared.cpp
d41 7
a47 1
	$(SPU_CXX) -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -o jacobi_shared jacobi_shared.cpp -lcellspu
@


1.1
log
@Initial addition of jacobi example using Cell.
@
text
@d40 1
a40 1
	$(SPU_CXX) -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -o jacobi_shared jacobi_shared.cpp -lcellspu
@

