Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Makefile.cell @ 621:5b178db5988a
Cell fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Nov 2009 03:34:18 +0900 |
parents | 2cfbb36e221a |
children | ab866bc8a624 |
rev | line source |
---|---|
58 | 1 include ./Makefile.def |
2 | |
80 | 3 TARGET = libCellManager.a |
74 | 4 SPETARGET = libspemanager.a |
5 | |
304 | 6 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe |
321 | 7 |
8 CELL_SPE_SCHEDULE_SRC = $(CELL_SPE_DIR)/SchedExit.cc \ | |
9 $(CELL_SPE_DIR)/SchedNop2Ready.cc \ | |
10 $(CELL_SPE_DIR)/SchedTaskList.cc \ | |
11 $(CELL_SPE_DIR)/SchedMail.cc \ | |
12 $(CELL_SPE_DIR)/SchedTask.cc \ | |
13 $(CELL_SPE_DIR)/Scheduler.cc\ | |
14 $(CELL_SPE_DIR)/SchedNop.cc \ | |
380 | 15 $(CELL_SPE_DIR)/MemList.cc \ |
384 | 16 $(CELL_SPE_DIR)/MemHash.cc \ |
321 | 17 $(CELL_SPE_DIR)/TaskGroup.cc |
18 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) | |
19 | |
20 CELL_SPE_SRCS = \ | |
21 $(CELL_SPE_DIR)/CellDmaManager.cc \ | |
478
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
22 $(CELL_SPE_DIR)/CellScheduler.cc \ |
621 | 23 $(CELL_SPE_DIR)/SpeTaskManagerImpl.cc \ |
478
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
24 $(CELL_SPE_DIR)/main.cc |
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
25 |
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
26 CELL_SPE_TASK_SRCS = \ |
321 | 27 $(CELL_SPE_DIR)/TaskList.cc \ |
28 $(CELL_SPE_DIR)/TaskQueue.cc \ | |
478
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
29 $(CELL_SPE_DIR)/Task.cc |
321 | 30 |
31 # $(wildcard $(CELL_SPE_DIR)/*.cc) | |
32 | |
478
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
33 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) $(CELL_SPE_SCHEDULE_OBJ) $(CELL_SPE_TASK_SRCS:.cc=.o) |
301
bcb81858aa62
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
109
diff
changeset
|
34 |
59 | 35 SPUCC = spu-g++ |
74 | 36 |
109 | 37 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
38 | |
611 | 39 SPE_CFLAGS = -fno-exceptions -fno-rtti -Wall -O9 |
58 | 40 |
59 | 41 all: default |
321 | 42 |
43 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) | |
59 | 44 |
372
6ff4f651162b
change TaskManger/Makefile.cell
e065725@localhost.localdomain
parents:
356
diff
changeset
|
45 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) $(KERN_MEM_OBJS) |
109 | 46 |
59 | 47 $(TARGET): $(PPE_ALL_OBJS) |
61 | 48 ar crus $@ $(PPE_ALL_OBJS) |
59 | 49 |
109 | 50 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 51 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 52 |
302 | 53 $(SPETARGET): $(CELL_SPE_OBJS) |
54 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 55 |
321 | 56 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc |
57 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ | |
380 | 58 cp kernel/memory/*.cc $(CELL_SPE_DIR)/ |
478
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
59 cp kernel/ppe/{TaskList.cc,TaskQueue.cc,Task.cc} $(CELL_SPE_DIR)/ |
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
60 |
109 | 61 $(CELL_SPE_OBJS): %.o : %.cc |
611 | 62 $(SPUCC) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ |
74 | 63 |
80 | 64 celldistclean: cellclean |
65 rm -f $(TARGET) | |
66 rm -f $(SPETARGET) | |
67 | |
74 | 68 cellclean: |
478
c9127aec8c9c
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
69 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) $(CELL_SPE_TASK_SRCS) |
321 | 70 (cd $(CELL_SPE_DIR); rm -f *~ \#*) |
71 | |
72 | |
73 |