Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Makefile.cell @ 636:d433fc37587d
Cell Simple Task compiled. but not worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Nov 2009 19:09:40 +0900 |
parents | 0558abba673c |
children | 5530fa36d42e |
rev | line source |
---|---|
58 | 1 include ./Makefile.def |
2 | |
629
8843edf37c0e
Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
626
diff
changeset
|
3 ABI= -m$(ABIBIT) |
80 | 4 TARGET = libCellManager.a |
74 | 5 SPETARGET = libspemanager.a |
6 | |
304 | 7 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe |
321 | 8 |
9 CELL_SPE_SCHEDULE_SRC = $(CELL_SPE_DIR)/SchedExit.cc \ | |
10 $(CELL_SPE_DIR)/SchedNop2Ready.cc \ | |
11 $(CELL_SPE_DIR)/SchedTaskList.cc \ | |
12 $(CELL_SPE_DIR)/SchedMail.cc \ | |
13 $(CELL_SPE_DIR)/SchedTask.cc \ | |
14 $(CELL_SPE_DIR)/Scheduler.cc\ | |
15 $(CELL_SPE_DIR)/SchedNop.cc \ | |
380 | 16 $(CELL_SPE_DIR)/MemList.cc \ |
626
ab866bc8a624
64bit mode compatibility on Cell
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
621
diff
changeset
|
17 $(CELL_SPE_DIR)/MemHash.cc |
321 | 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)/TaskQueue.cc \ |
478
c9127aec8c9c
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
c9127aec8c9c
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
bcb81858aa62
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
109
diff
changeset
|
33 |
629
8843edf37c0e
Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
626
diff
changeset
|
34 SPUCC = spu-g++ -DABIBIT=$(ABIBIT) |
74 | 35 |
629
8843edf37c0e
Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
626
diff
changeset
|
36 EXTRA_CFLAGS = -D__CERIUM_CELL__ -DHAS_POSIX_MEMALIGN -fno-strict-aliasing |
109 | 37 |
636
d433fc37587d
Cell Simple Task compiled. but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
634
diff
changeset
|
38 SPE_CFLAGS = -DSIMPLE_TASK -D__CERIUM_CELL__ -fno-exceptions -fno-rtti -Wall -O9 |
58 | 39 |
59 | 40 all: default |
321 | 41 |
42 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) | |
59 | 43 |
372
6ff4f651162b
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)/ |
636
d433fc37587d
Cell Simple Task compiled. but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
634
diff
changeset
|
58 cp kernel/ppe/{TaskQueue.cc,Task.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 |
109 | 60 $(CELL_SPE_OBJS): %.o : %.cc |
611 | 61 $(SPUCC) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ |
74 | 62 |
80 | 63 celldistclean: cellclean |
64 rm -f $(TARGET) | |
65 rm -f $(SPETARGET) | |
66 | |
74 | 67 cellclean: |
478
c9127aec8c9c
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 |