Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Makefile.cell @ 304:e679d401eab3
fix Makefile.cell
author | kono@localhost.localdomain |
---|---|
date | Mon, 08 Jun 2009 18:28:18 +0900 |
parents | a02e863dc69f |
children | 2ac66db4dd11 |
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 |
7 | |
302 | 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 \ | |
15 $(CELL_SPE_DIR)/SchedTaskImpl.cc \ | |
16 $(CELL_SPE_DIR)/TaskGroup.cc | |
303
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
17 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) |
302 | 18 |
304 | 19 CELL_SPE_SRCS = \ |
20 $(CELL_SPE_DIR)/CellDmaManager.cc \ | |
21 $(CELL_SPE_DIR)/TaskList.cc \ | |
22 $(CELL_SPE_DIR)/CellScheduler.cc \ | |
23 $(CELL_SPE_DIR)/TaskQueue.cc \ | |
24 $(CELL_SPE_DIR)/Task.cc \ | |
25 $(CELL_SPE_DIR)/main.cc | |
26 | |
27 # $(wildcard $(CELL_SPE_DIR)/*.cc) | |
28 | |
302 | 29 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) $(CELL_SPE_SCHEDULE_OBJ) |
301
bcb81858aa62
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
109
diff
changeset
|
30 |
59 | 31 SPUCC = spu-g++ |
74 | 32 |
109 | 33 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
34 | |
35 SPE_CFLAGS = -fno-exceptions -fno-rtti | |
58 | 36 |
59 | 37 all: default |
302 | 38 |
303
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
39 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) |
59 | 40 |
109 | 41 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) |
42 | |
59 | 43 $(TARGET): $(PPE_ALL_OBJS) |
61 | 44 ar crus $@ $(PPE_ALL_OBJS) |
59 | 45 |
109 | 46 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 47 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 48 |
302 | 49 $(SPETARGET): $(CELL_SPE_OBJS) |
50 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 51 |
303
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
52 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc |
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
53 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ |
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
54 |
109 | 55 $(CELL_SPE_OBJS): %.o : %.cc |
56 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
74 | 57 |
80 | 58 celldistclean: cellclean |
59 rm -f $(TARGET) | |
60 rm -f $(SPETARGET) | |
61 | |
74 | 62 cellclean: |
302 | 63 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) |
64 (cd $(CELL_SPE_DIR); rm -f *~ \#*) | |
65 | |
66 | |
67 |