Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Makefile.cell @ 303:a02e863dc69f
spu worked. Makefile warning remains.
author | kono@localhost.localdomain |
---|---|
date | Mon, 08 Jun 2009 18:21:01 +0900 |
parents | b0d37afab06a |
children | e679d401eab3 |
rev | line source |
---|---|
58 | 1 include ./Makefile.def |
2 | |
80 | 3 TARGET = libCellManager.a |
74 | 4 SPETARGET = libspemanager.a |
5 | |
302 | 6 CELL_SPE_SCHEDULE_SRC = $(CELL_SPE_DIR)/SchedExit.cc \ |
7 $(CELL_SPE_DIR)/SchedNop2Ready.cc \ | |
8 $(CELL_SPE_DIR)/SchedTaskList.cc \ | |
9 $(CELL_SPE_DIR)/SchedMail.cc \ | |
10 $(CELL_SPE_DIR)/SchedTask.cc \ | |
11 $(CELL_SPE_DIR)/Scheduler.cc\ | |
12 $(CELL_SPE_DIR)/SchedNop.cc \ | |
13 $(CELL_SPE_DIR)/SchedTaskImpl.cc \ | |
14 $(CELL_SPE_DIR)/TaskGroup.cc | |
303
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
15 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) |
302 | 16 |
59 | 17 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe |
109 | 18 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc) |
302 | 19 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
|
20 |
59 | 21 SPUCC = spu-g++ |
74 | 22 |
109 | 23 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
24 | |
25 SPE_CFLAGS = -fno-exceptions -fno-rtti | |
58 | 26 |
59 | 27 all: default |
302 | 28 |
303
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
29 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) |
59 | 30 |
109 | 31 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) |
32 | |
59 | 33 $(TARGET): $(PPE_ALL_OBJS) |
61 | 34 ar crus $@ $(PPE_ALL_OBJS) |
59 | 35 |
109 | 36 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 37 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 38 |
302 | 39 $(SPETARGET): $(CELL_SPE_OBJS) |
40 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 41 |
303
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
42 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc |
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
43 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ |
a02e863dc69f
spu worked. Makefile warning remains.
kono@localhost.localdomain
parents:
302
diff
changeset
|
44 |
109 | 45 $(CELL_SPE_OBJS): %.o : %.cc |
46 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
74 | 47 |
80 | 48 celldistclean: cellclean |
49 rm -f $(TARGET) | |
50 rm -f $(SPETARGET) | |
51 | |
74 | 52 cellclean: |
302 | 53 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) |
54 (cd $(CELL_SPE_DIR); rm -f *~ \#*) | |
55 | |
56 | |
57 |