Mercurial > hg > Game > Cerium
annotate TaskManager/Makefile.cell @ 596:f1c2e11a2ef4 draft
add xdr_getpos
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 04 Nov 2009 22:52:06 +0900 |
parents | b31019c79c34 |
children | e4c355211bd7 |
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
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
22 $(CELL_SPE_DIR)/CellScheduler.cc \ |
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
23 $(CELL_SPE_DIR)/main.cc |
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
24 |
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
25 CELL_SPE_TASK_SRCS = \ |
321 | 26 $(CELL_SPE_DIR)/TaskList.cc \ |
27 $(CELL_SPE_DIR)/TaskQueue.cc \ | |
478
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
28 $(CELL_SPE_DIR)/Task.cc |
321 | 29 |
30 # $(wildcard $(CELL_SPE_DIR)/*.cc) | |
31 | |
478
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
32 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) $(CELL_SPE_SCHEDULE_OBJ) $(CELL_SPE_TASK_SRCS:.cc=.o) |
301
7f991471d43f
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
109
diff
changeset
|
33 |
59 | 34 SPUCC = spu-g++ |
74 | 35 |
109 | 36 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
37 | |
38 SPE_CFLAGS = -fno-exceptions -fno-rtti | |
58 | 39 |
59 | 40 all: default |
321 | 41 |
42 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) | |
59 | 43 |
372
d2418a3abcef
change TaskManger/Makefile.cell
e065725@localhost.localdomain
parents:
356
diff
changeset
|
44 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) $(KERN_MEM_OBJS) |
109 | 45 |
59 | 46 $(TARGET): $(PPE_ALL_OBJS) |
61 | 47 ar crus $@ $(PPE_ALL_OBJS) |
59 | 48 |
109 | 49 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 50 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 51 |
302 | 52 $(SPETARGET): $(CELL_SPE_OBJS) |
53 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 54 |
321 | 55 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc |
56 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ | |
380 | 57 cp kernel/memory/*.cc $(CELL_SPE_DIR)/ |
478
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
58 cp kernel/ppe/{TaskList.cc,TaskQueue.cc,Task.cc} $(CELL_SPE_DIR)/ |
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
59 |
109 | 60 $(CELL_SPE_OBJS): %.o : %.cc |
61 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
74 | 62 |
80 | 63 celldistclean: cellclean |
64 rm -f $(TARGET) | |
65 rm -f $(SPETARGET) | |
66 | |
74 | 67 cellclean: |
478
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
68 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) $(CELL_SPE_TASK_SRCS) |
321 | 69 (cd $(CELL_SPE_DIR); rm -f *~ \#*) |
70 | |
71 | |
72 |