Mercurial > hg > Game > Cerium
annotate TaskManager/Makefile.cell @ 1479:163220e54cc0 draft
remove hard code for TaskLog
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Jul 2012 17:15:15 +0900 |
parents | 5b024efa2429 |
children | 34582cd8a7af |
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 \ | |
706
b2b4a1243961
no compile error on Cell. Regression Test.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
672
diff
changeset
|
16 $(CELL_SPE_DIR)/SchedTaskArray.cc \ |
786
043c98537bc5
fix early free of TaskArray, add SchedTaskArrayNop stage.
yutaka@localhost.localdomain
parents:
706
diff
changeset
|
17 $(CELL_SPE_DIR)/SchedTaskArrayNop.cc \ |
706
b2b4a1243961
no compile error on Cell. Regression Test.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
672
diff
changeset
|
18 $(CELL_SPE_DIR)/SchedTaskArrayLoad.cc \ |
321 | 19 $(CELL_SPE_DIR)/Scheduler.cc\ |
20 $(CELL_SPE_DIR)/SchedNop.cc \ | |
380 | 21 $(CELL_SPE_DIR)/MemList.cc \ |
1021 | 22 $(CELL_SPE_DIR)/MemHash.cc \ |
23 $(CELL_SPE_DIR)/MailManager.cc | |
321 | 24 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) |
25 | |
26 CELL_SPE_SRCS = \ | |
27 $(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
|
28 $(CELL_SPE_DIR)/CellScheduler.cc \ |
621 | 29 $(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
|
30 $(CELL_SPE_DIR)/main.cc |
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
31 |
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
32 CELL_SPE_TASK_SRCS = \ |
321 | 33 $(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
|
34 $(CELL_SPE_DIR)/Task.cc |
321 | 35 |
1348
5f004520face
mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1087
diff
changeset
|
36 CELL_SPE_PROFILE = \ |
5f004520face
mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1087
diff
changeset
|
37 $(KERN_SYSTASK_DIR)/ShowTime.cc \ |
5f004520face
mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1087
diff
changeset
|
38 $(KERN_SYSTASK_DIR)/StartProfile.cc |
5f004520face
mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1087
diff
changeset
|
39 |
321 | 40 # $(wildcard $(CELL_SPE_DIR)/*.cc) |
41 | |
1413
5b024efa2429
fix free on non copy DMA
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1348
diff
changeset
|
42 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
|
43 |
631
30dd8a3deb4a
Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
626
diff
changeset
|
44 SPUCC = spu-g++ -DABIBIT=$(ABIBIT) |
74 | 45 |
631
30dd8a3deb4a
Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
626
diff
changeset
|
46 EXTRA_CFLAGS = -D__CERIUM_CELL__ -DHAS_POSIX_MEMALIGN -fno-strict-aliasing |
109 | 47 |
664 | 48 SPE_CFLAGS = $(SIMPLE_TASK) -D__CERIUM_CELL__ -fno-exceptions -fno-rtti -Wall $(OPT) |
58 | 49 |
59 | 50 all: default |
321 | 51 |
52 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) | |
59 | 53 |
372
d2418a3abcef
change TaskManger/Makefile.cell
e065725@localhost.localdomain
parents:
356
diff
changeset
|
54 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) $(KERN_MEM_OBJS) |
109 | 55 |
59 | 56 $(TARGET): $(PPE_ALL_OBJS) |
61 | 57 ar crus $@ $(PPE_ALL_OBJS) |
59 | 58 |
109 | 59 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 60 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 61 |
302 | 62 $(SPETARGET): $(CELL_SPE_OBJS) |
63 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 64 |
873
c50f39fbb6ca
fix hash problem ( unsigned int-> long overflow )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
786
diff
changeset
|
65 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc kernel/memory/*.cc kernel/ppe/*.cc |
321 | 66 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ |
380 | 67 cp kernel/memory/*.cc $(CELL_SPE_DIR)/ |
1021 | 68 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
|
69 |
109 | 70 $(CELL_SPE_OBJS): %.o : %.cc |
611 | 71 $(SPUCC) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ |
74 | 72 |
80 | 73 celldistclean: cellclean |
74 rm -f $(TARGET) | |
75 rm -f $(SPETARGET) | |
76 | |
74 | 77 cellclean: |
478
b31019c79c34
remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
384
diff
changeset
|
78 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) $(CELL_SPE_TASK_SRCS) |
321 | 79 (cd $(CELL_SPE_DIR); rm -f *~ \#*) |
80 | |
81 | |
82 |