annotate TaskManager/Makefile.gpu @ 1880:a865ba7acb08 draft

free_ TaskList breaks next. Use it before free_.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 02 Jan 2014 21:46:22 +0900
parents cf475f0a9b80
children 5238ca826d6e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1439
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ./Makefile.def
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 TARGET = libGpuManager.a
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 CFLAGS += -DHAS_POSIX_MEMALIGN
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 ifdef LINUX
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 CFLAGS += -lrt
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 endif
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 .SUFFIXES: .cc .o
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
1487
6b451d72daf5 normal task run on GPU.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1481
diff changeset
11 EXTRA_CFLAGS = -D__CERIUM_GPU__ -D__CERIUM_PARALLEL__
1439
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 .cc.o:
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 all: default
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 default: $(TARGET)
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) \
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 $(KERN_SYSTASK_OBJS) $(IMPL_FIFO_OBJS) $(KERN_MEM_OBJS) \
1489
cf475f0a9b80 gpu make clean fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1487
diff changeset
22 $(IMPL_GPU_OBJS) Cell/spe/SpeTaskManagerImpl.o Cell/CellTaskManagerImpl.o
1439
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 Makefile.dep:
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 make -f Makefile.gpu depend
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 depend:
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) $(ALL_OBJS:.o=.cc) -MM > Makefile.dep
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 $(TARGET): $(ALL_OBJS)
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 ar crus $@ $(ALL_OBJS)
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 gpudistclean: gpuclean
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 rm -f $(TARGET)
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 gpuclean:
1489
cf475f0a9b80 gpu make clean fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1487
diff changeset
37 rm -f $(TARGET) $(ALL_OBJS)