annotate TaskManager/Makefile.cell @ 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 8039c48763c4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
1 include ./Makefile.def
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
2
1081
4a5498c98e34 look like working...
root@localhost.localdomain
parents: 1021
diff changeset
3 ABIBIT=32
631
30dd8a3deb4a Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 626
diff changeset
4 ABI= -m$(ABIBIT)
80
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
5 TARGET = libCellManager.a
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
6 SPETARGET = libspemanager.a
1087
20f09564c586 fix (not yet tested)
root@localhost.localdomain
parents: 1081
diff changeset
7 CFLAGS += -DHAS_POSIX_MEMALIGN
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
8
304
df3d65ae7d12 fix Makefile.cell
kono@localhost.localdomain
parents: 303
diff changeset
9 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
10
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
11 CELL_SPE_SCHEDULE_SRC = $(CELL_SPE_DIR)/SchedExit.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
12 $(CELL_SPE_DIR)/SchedNop2Ready.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
13 $(CELL_SPE_DIR)/SchedTaskList.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
14 $(CELL_SPE_DIR)/SchedMail.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
15 $(CELL_SPE_DIR)/SchedTask.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
16 $(CELL_SPE_DIR)/Scheduler.cc\
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
17 $(CELL_SPE_DIR)/SchedNop.cc \
380
fcd53a8b777c ps3 fix
e065701@localhost.localdomain
parents: 372
diff changeset
18 $(CELL_SPE_DIR)/MemList.cc \
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 873
diff changeset
19 $(CELL_SPE_DIR)/MemHash.cc \
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 873
diff changeset
20 $(CELL_SPE_DIR)/MailManager.cc
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
21 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o)
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
22
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
23 CELL_SPE_SRCS = \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
24 $(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
25 $(CELL_SPE_DIR)/CellScheduler.cc \
621
64e05530e333 Cell fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 611
diff changeset
26 $(CELL_SPE_DIR)/SpeTaskManagerImpl.cc \
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
27 $(CELL_SPE_DIR)/main.cc
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
28
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
29 CELL_SPE_TASK_SRCS = \
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
30 $(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
31 $(CELL_SPE_DIR)/Task.cc
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
32
1811
8039c48763c4 remove goto syntax
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1512
diff changeset
33 #CELL_SPE_PROFILE = \
8039c48763c4 remove goto syntax
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1512
diff changeset
34 # $(KERN_SYSTASK_DIR)/ShowTime.cc \
8039c48763c4 remove goto syntax
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1512
diff changeset
35 # $(KERN_SYSTASK_DIR)/StartProfile.cc
1348
5f004520face mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1087
diff changeset
36
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
37 # $(wildcard $(CELL_SPE_DIR)/*.cc)
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
38
1512
30145272ff0b fix Makefile for cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1511
diff changeset
39 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) $(CELL_SPE_SCHEDULE_OBJ) $(CELL_SPE_TASK_SRCS:.cc=.o) $(CELL_SPE_PROFILE:.cc=.o)
301
7f991471d43f remove deprecated source. not work.
tkaito@localhost.localdomain
parents: 109
diff changeset
40
631
30dd8a3deb4a Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 626
diff changeset
41 SPUCC = spu-g++ -DABIBIT=$(ABIBIT)
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
42
631
30dd8a3deb4a Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 626
diff changeset
43 EXTRA_CFLAGS = -D__CERIUM_CELL__ -DHAS_POSIX_MEMALIGN -fno-strict-aliasing
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
44
664
beb0f17c19f9 word count
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 663
diff changeset
45 SPE_CFLAGS = $(SIMPLE_TASK) -D__CERIUM_CELL__ -fno-exceptions -fno-rtti -Wall $(OPT)
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
46
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
47 all: default
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
48
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
49 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET)
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
50
372
d2418a3abcef change TaskManger/Makefile.cell
e065725@localhost.localdomain
parents: 356
diff changeset
51 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) $(KERN_MEM_OBJS)
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
52
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
53 $(TARGET): $(PPE_ALL_OBJS)
61
6bc72fde6615 *** empty log message ***
gongo
parents: 60
diff changeset
54 ar crus $@ $(PPE_ALL_OBJS)
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
55
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
56 $(PPE_ALL_OBJS): %.o : %.cc
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
57 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
58
302
40db021f6272 working on macosx
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 301
diff changeset
59 $(SPETARGET): $(CELL_SPE_OBJS)
40db021f6272 working on macosx
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 301
diff changeset
60 ar crus $@ $(CELL_SPE_OBJS)
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
61
873
c50f39fbb6ca fix hash problem ( unsigned int-> long overflow )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 786
diff changeset
62 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc kernel/memory/*.cc kernel/ppe/*.cc
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
63 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/
380
fcd53a8b777c ps3 fix
e065701@localhost.localdomain
parents: 372
diff changeset
64 cp kernel/memory/*.cc $(CELL_SPE_DIR)/
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 873
diff changeset
65 cp kernel/ppe/{TaskQueue.cc,Task.cc,MailManager.cc} $(CELL_SPE_DIR)/
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
66
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
67 $(CELL_SPE_OBJS): %.o : %.cc
611
e4c355211bd7 cell fix memaddr
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 478
diff changeset
68 $(SPUCC) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
69
80
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
70 celldistclean: cellclean
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
71 rm -f $(TARGET)
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
72 rm -f $(SPETARGET)
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
73
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
74 cellclean:
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
75 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) $(CELL_SPE_TASK_SRCS)
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
76 (cd $(CELL_SPE_DIR); rm -f *~ \#*)
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
77
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
78
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
79