Mercurial > hg > Game > Cerium
view TaskManager/Makefile.cuda @ 2005:4d1bc8cd3a62 draft
fix Makefile(CUDA PATH)
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 27 May 2014 14:23:44 +0900 |
parents | 904bc213c51b |
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)