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.5;
locks; strict;
comment	@# @;


1.6
date	2009.02.04.23.02.31;	author kunzman;	state Exp;
branches;
next	1.5;
commitid	TkXegDkedcqBFaBt;

1.5
date	2006.08.25.04.58.20;	author kunzman;	state Exp;
branches;
next	1.4;

1.4
date	2006.05.31.13.34.12;	author kunzman;	state Exp;
branches;
next	1.3;

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

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

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


desc
@@


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

OBJS = hello.o

all: hello


hello: $(OBJS)
	$(CHARMC) -language charm++ -o hello $(OBJS)

hello.decl.h hello.def.h: hello.ci
	$(CHARMC)  hello.ci

hello.o: hello.C hello.decl.h hello.def.h
	$(CHARMC) -c hello.C


clean:
	rm -f *.decl.h *.def.h conv-host *.o hello charmrun hello_shared *genSPECode*
@


1.5
log
@Modified the rule to build the SPE code.
@
text
@a4 2
include $(CHARM_BASE_DIR)/tmp/Makefile.cell

a8 2
hello: $(OBJS) hello_shared.o
	$(CHARMC) -language charm++ -o hello hello_shared.o $(OBJS)
d10 2
a11 8
hello_shared.o: hello_shared.cpp hello_shared.h
	cp hello_shared.cpp hello_shared.c
	$(SPU_CC) -c -I$(CHARM_BASE_DIR)/include -o hello_shared_tmp.o hello_shared.c
#	$(SPU_CC) -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o hello_shared hello_shared_tmp.o -lcellspu -lsim
#	$(SPU_CC) -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o hello_shared hello_shared_tmp.o -lcellspu $(CELL_SDK_DIR)/sysroot/usr/spu/lib/libc.a $(CELL_SDK_DIR)/sysroot/usr/spu/lib/libsim.a
#	$(SPU_CC) -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o hello_shared hello_shared_tmp.o $(SPERT_LIBS)
	$(SPU_LD) -L$(CHARM_BASE_DIR)/lib -o hello_shared hello_shared_tmp.o $(SPERT_LIBS)
	$(PPU_EMBEDSPU) spert_main hello_shared hello_shared.o
d13 1
a13 1
hello.decl.h: hello.ci
d16 1
a16 1
hello.o: hello.C hello.decl.h
d19 1
d21 1
a21 2
	rm -f *.decl.h *.def.h conv-host *.o hello charmrun hello_shared

@


1.4
log
@Modified SPE compile rule so the SPE code is compiled as C instead of C++.
@
text
@a0 1

d16 5
a20 2
	spu-gcc $(OPTS) -c -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -o hello_shared_tmp.o hello_shared.c
	spu-gcc -L$(CHARM_BASE_DIR)/lib -L$(CELL_SDK_DIR)/sysroot/usr/spu/lib -o hello_shared hello_shared_tmp.o -lcellspu -lsim
@


1.3
log
@Extended the hello example to also use the scatter/gather work request.
@
text
@d16 3
a18 1
	$(SPU_CXX) -I$(CHARM_BASE_DIR)/include -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -o hello_shared hello_shared.cpp -lcellspu
@


1.2
log
@include Makefile.cell.
@
text
@d16 1
a16 1
	$(SPU_CXX) -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -L$(CHARM_BASE_DIR)/lib -o hello_shared hello_shared.cpp -lcellspu
@


1.1
log
@cell charm example using offloading api
@
text
@a0 1
CELL_SDK_DIR = /home/strife/cellsim
d6 1
a6 4
SPU_CC = spu-gcc $(OPTS)
SPU_CXX = spu-g++ $(OPTS)
SPU_AR = spu-ar
PPU_EMBEDSPU = ppu32-embedspu
@

