view TaskManager/Makefile.cell @ 247:0098b5ff0d11

change example
author aaa
date Mon, 01 Jun 2009 19:33:09 +0900
parents 5c194c71eca8
children bcb81858aa62 81b25e5d5379
line wrap: on
line source

include ./Makefile.def

TARGET    = libCellManager.a
SPETARGET = libspemanager.a

CELL_SPE_DIR  = $(IMPL_CELL_DIR)/spe
CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc)
CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o)

SPUCC = spu-g++

EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing

SPE_CFLAGS = -fno-exceptions -fno-rtti

all: default
default: $(TARGET) $(SPETARGET)

PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS)

$(TARGET): $(PPE_ALL_OBJS)
	ar crus $@ $(PPE_ALL_OBJS)

$(PPE_ALL_OBJS): %.o : %.cc
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@

$(SPETARGET): $(CELL_SPE_OBJS)
	ar crus $@ $(CELL_SPE_OBJS)

$(CELL_SPE_OBJS): %.o : %.cc
	$(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@

celldistclean: cellclean
	rm -f $(TARGET)
	rm -f $(SPETARGET)

cellclean:
	rm -f $(CELL_SPE_OBJS)
	cd $(CELL_SPE_DIR); rm -f *~ \#*