view TaskManager/Makefile.cuda @ 2022:fac44ad2867d draft

make a sound
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Wed, 16 Jul 2014 02:50:32 +0900
parents 4d1bc8cd3a62
children
line wrap: on
line source

include ./Makefile.def
TARGET = libCudaManager.a
CFLAGS += -DHAS_POSIX_MEMALIGN
INCLUDE += -I$(CUDA_PATH)

ifdef LINUX
CFLAGS += -lrt
endif

.SUFFIXS: .c .o

EXTRA_CFLAGS = -D__CERIUM_CUDA__ -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_FIFO_OBJS) $(KERN_MEM_OBJS) \
	$(IMPL_MANYCORE_OBJS) $(IMPL_CUDA_OBJS) Cell/spe/SpeTaskManagerImpl.o Cell/CellTaskManagerImpl.o Cuda/CudaTaskManagerFactory.o

Makefile.dep: 
	make -f Makefile.cuda depend

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

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

cudadistclean: cudaclean
	rm -f $(TARGET)

cudaclean:
	rm -f $(TARGET) $(ALL_OBJS)