Mercurial > hg > Game > Cerium
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 |
rev | line source |
---|---|
58 | 1 include ./Makefile.def |
2 | |
1081 | 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 | 5 TARGET = libCellManager.a |
74 | 6 SPETARGET = libspemanager.a |
1087 | 7 CFLAGS += -DHAS_POSIX_MEMALIGN |
74 | 8 |
304 | 9 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe |
321 | 10 |
11 CELL_SPE_SCHEDULE_SRC = $(CELL_SPE_DIR)/SchedExit.cc \ | |
12 $(CELL_SPE_DIR)/SchedNop2Ready.cc \ | |
13 $(CELL_SPE_DIR)/SchedTaskList.cc \ | |
14 $(CELL_SPE_DIR)/SchedMail.cc \ | |
15 $(CELL_SPE_DIR)/SchedTask.cc \ | |
16 $(CELL_SPE_DIR)/Scheduler.cc\ | |
17 $(CELL_SPE_DIR)/SchedNop.cc \ | |
380 | 18 $(CELL_SPE_DIR)/MemList.cc \ |
1021 | 19 $(CELL_SPE_DIR)/MemHash.cc \ |
20 $(CELL_SPE_DIR)/MailManager.cc | |
321 | 21 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) |
22 | |
23 CELL_SPE_SRCS = \ | |
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 | 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 | 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 | 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 | 37 # $(wildcard $(CELL_SPE_DIR)/*.cc) |
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 | 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 | 44 |
664 | 45 SPE_CFLAGS = $(SIMPLE_TASK) -D__CERIUM_CELL__ -fno-exceptions -fno-rtti -Wall $(OPT) |
58 | 46 |
59 | 47 all: default |
321 | 48 |
49 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) | |
59 | 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 | 52 |
59 | 53 $(TARGET): $(PPE_ALL_OBJS) |
61 | 54 ar crus $@ $(PPE_ALL_OBJS) |
59 | 55 |
109 | 56 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 57 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 58 |
302 | 59 $(SPETARGET): $(CELL_SPE_OBJS) |
60 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 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 | 63 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ |
380 | 64 cp kernel/memory/*.cc $(CELL_SPE_DIR)/ |
1021 | 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 | 67 $(CELL_SPE_OBJS): %.o : %.cc |
611 | 68 $(SPUCC) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ |
74 | 69 |
80 | 70 celldistclean: cellclean |
71 rm -f $(TARGET) | |
72 rm -f $(SPETARGET) | |
73 | |
74 | 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 | 76 (cd $(CELL_SPE_DIR); rm -f *~ \#*) |
77 | |
78 | |
79 |