view TaskManager/Makefile.parallel @ 1910:b7b528e9ec5e draft

Implement divide read in word_count ( but cannot running )
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Sun, 19 Jan 2014 22:54:01 +0900
parents ef52a2b07344
children
line wrap: on
line source

include ./Makefile.def
TARGET = libFifoManager.a
CFLAGS += -DHAS_POSIX_MEMALIGN

ifdef LINUX
CFLAGS += -lrt
endif


.SUFFIXES: .cc .o

EXTRA_CFLAGS = -D__CERIUM_FIFO__ -D__CERIUM_PARALLEL__ 

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


all: default
default: $(TARGET)

ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) \
	$(KERN_SYSTASK_OBJS) $(IMPL_MANYCORE_OBJS) $(KERN_MEM_OBJS) \
	Cell/CellTaskManagerImpl.o Cell/spe/SpeTaskManagerImpl.o ManyCore/ManyCoreTaskManagerFactory.o \
	Fifo/FifoDmaManager.o Fifo/FifoTaskManagerImpl.o \

Makefile.dep: 
	make -f Makefile.parallel depend

depend:
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) $(ALL_OBJS:.o=.cc) -MM  > Makefile.dep

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

paralleldistclean: parallelclean
	rm -f $(TARGET)

parallelclean: