head	1.8;
access;
symbols
	charm6_1:1.8
	charm_6_0_1:1.8
	charm6_0_1:1.8
	charm6_0:1.8
	ChaNGa_1-0:1.7;
locks; strict;
comment	@# @;


1.8
date	2007.09.26.20.29.38;	author kunzman;	state Exp;
branches;
next	1.7;
commitid	3d0b46fac1254567;

1.7
date	2007.01.08.04.58.52;	author kunzman;	state Exp;
branches;
next	1.6;
commitid	2b4745a1cf7c4567;

1.6
date	2006.12.05.16.18.17;	author kunzman;	state Exp;
branches;
next	1.5;
commitid	20af45759bb64567;

1.5
date	2006.10.05.04.55.08;	author kunzman;	state Exp;
branches;
next	1.4;
commitid	74f64524900d4567;

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

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

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

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


desc
@@


1.8
log
@Added rules for making rawToProj.
@
text
@CHARMDIR=../..
CHARMC=$(CHARMDIR)/bin/charmc

include $(CHARMDIR)/tmp/Makefile.cell

RM = rm -f

all: libs tools
tools: rawToProj
libs: libcellppu.a libcellspu.a


##### Rules for installing the files for use by Charm++ #####

install: libs tools
	cp libcellppu.a libcellspu.a $(CHARMDIR)/lib
	cp rawToProj $(CHARMDIR)/bin


##### Rules for making the libraries (Offload API / SPE Runtime) #####

spert_common.o : spert_common.h spert_common.cpp
	$(CHARMC) -c -o spert_common.o spert_common.cpp

libcellppu.a: spert_ppu.o spert_common.o
	$(CHARMC) -o libcellppu.a spert_ppu.o spert_common.o

spert_ppu.o: spert_ppu.cpp spert_ppu.h
	$(CHARMC) -o spert_ppu.o spert_ppu.cpp

libcellspu.a: spert.o
	$(SPU_AR) r libcellspu.a spert.o

spert.o: spert.cpp spert.h
	cp spert.cpp spert.c
	$(SPU_CC) --param max-inline-insns-single=1000000 --param inline-unit-growth=1000 --param large-function-growth=1000 -c -o spert.o spert.c


##### Rules for creating SPE static timing data for the SPE Runtime #####

spert.s: spert.cpp spert.h
	cp spert.cpp spert.c
	$(SPU_CC) --param max-inline-insns-single=1000000 --param inline-unit-growth=1000 --param large-function-growth=1000 -c -S -g spert.c

spert.s.timing: spert.s
	/opt/ibm/cell-sdk/prototype/bin/spu_timing spert.s


##### Rules for making tools #####

rawToProj: rawToProj.cpp
	$(PPU_CXX) -o rawToProj rawToProj.cpp


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

clean :
	$(RM) *.o spert_ppu_test spert *.a spert.s spert.s.timing rawToProj
@


1.7
log
@Updated spert.s.timing rule for SDK v2.0.
@
text
@d8 10
a18 1
libs: libcellppu.a libcellspu.a
d20 1
a21 1
# Common object file (shared)
a37 2
install: libcellppu.a libcellspu.a
	cp libcellppu.a libcellspu.a $(CHARMDIR)/lib
d39 1
a44 1

d49 8
a56 1
# Clean-up
d58 1
a58 1
	$(RM) *.o spert_ppu_test spert *.a spert.s spert.s.timing
@


1.6
log
@Added rules for making spert.s.timing file.
@
text
@d39 1
a39 1
	/opt/IBM/cell-sdk-1.1/bin/spu_timing spert.s
@


1.5
log
@Added compiler parameters to allow for more code inlining.
@
text
@d33 9
d44 1
a44 1
	$(RM) *.o spert_ppu_test spert *.a
@


1.4
log
@Removed some directories from the include path (that were already being
added).  Made use of SPU_CC compiler "define" instead of using the
compiler directly (for xlc support).
@
text
@d27 1
a27 1
	$(SPU_CC) -c -o spert.o spert.c
@


1.3
log
@Modified the include directory path.  Made a change to force the SPE code to be compiled as C instead of C++ (at least for now).
@
text
@a0 1

d14 1
a14 1
	$(CHARMC) -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -c -o spert_common.o spert_common.cpp
d20 1
a20 1
	$(CHARMC) -I$(CELL_SDK_DIR)/sysroot/usr/include -o spert_ppu.o spert_ppu.cpp
d27 1
a27 1
	spu-gcc $(OPTS) -c -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -o spert.o spert.c
@


1.2
log
@include Makefile.cell.
@
text
@d15 1
a15 1
	$(CHARMC) -I$(CELL_SDK_DIR)/cbe_linux/src/libspe -c -o spert_common.o spert_common.cpp
d27 3
a29 2
	$(SPU_CXX) -c -I$(CELL_SDK_DIR)/sysroot/usr/spu/include -o spert.o spert.cpp 
	
@


1.1
log
@rename files, cleanup.
@
text
@a0 2
TOOLCHAIN_DIR = /opt/sce/toolchain-2.3
CELL_SDK_DIR = /home/strife/cellsim
d5 1
a5 6
PPU_CC = ppu32-gcc $(OPTS)
PPU_CXX = ppu32-g++ $(OPTS)
SPU_CC = spu-gcc $(OPTS)
SPU_CXX = spu-g++ $(OPTS)
SPU_AR = spu-ar
PPU_EMBEDSPU = ppu32-embedspu
@

