view TaskManager/Makefile.cell @ 74:5da437ae84db

*** empty log message ***
author gongo
date Mon, 18 Feb 2008 04:05:56 +0900
parents 6bc72fde6615
children 5a1a5f4c28fd
line wrap: on
line source

include ./Makefile.def

SPETARGET = libspemanager.a

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

SPUCC = spu-g++

EXTRA_CFLAGS = -fno-strict-aliasing

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

PPE_ALL_OBJS = $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(IMPL_CELL_OBJS)
$(TARGET): $(PPE_ALL_OBJS)
	ar crus $@ $(PPE_ALL_OBJS)

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

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

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

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