annotate TaskManager/Makefile.gpu @ 1479:163220e54cc0 draft

remove hard code for TaskLog
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Tue, 24 Jul 2012 17:15:15 +0900
parents 27ed99a7a48c
children f2512fb94223
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
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 EXTRA_CFLAGS = -D__CERIUM_GPU__
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) \
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 $(IMPL_GPU_OBJS) \
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 Cell/spe/SpeTaskManagerImpl.o Cell/CellTaskManagerImpl.o
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 Makefile.dep:
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 make -f Makefile.gpu depend
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 depend:
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 $(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
30
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 $(TARGET): $(ALL_OBJS)
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 ar crus $@ $(ALL_OBJS)
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 gpudistclean: gpuclean
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 rm -f $(TARGET)
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
20e935f170c1 add Makefile for gpu
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 gpuclean: