view TaskManager/Makefile.cell @ 115:d9ea79aac04f draft

fix Makefile
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 13 Nov 2008 10:46:36 +0900
parents 028ffc9c0375
children 7f991471d43f cfd20d609ace
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 *~ \#*