Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Makefile.cell @ 384:eb7babaf7976
makefile fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 06 Aug 2009 12:05:59 +0900 |
parents | b4b8345b5366 |
children | c9127aec8c9c |
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 |
321 | 7 |
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 \ | |
380 | 15 $(CELL_SPE_DIR)/MemList.cc \ |
384 | 16 $(CELL_SPE_DIR)/MemHash.cc \ |
321 | 17 $(CELL_SPE_DIR)/TaskGroup.cc |
18 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) | |
19 | |
20 CELL_SPE_SRCS = \ | |
21 $(CELL_SPE_DIR)/CellDmaManager.cc \ | |
22 $(CELL_SPE_DIR)/TaskList.cc \ | |
23 $(CELL_SPE_DIR)/CellScheduler.cc \ | |
24 $(CELL_SPE_DIR)/TaskQueue.cc \ | |
25 $(CELL_SPE_DIR)/Task.cc \ | |
26 $(CELL_SPE_DIR)/main.cc | |
27 | |
28 # $(wildcard $(CELL_SPE_DIR)/*.cc) | |
29 | |
30 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
|
31 |
59 | 32 SPUCC = spu-g++ |
74 | 33 |
109 | 34 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
35 | |
36 SPE_CFLAGS = -fno-exceptions -fno-rtti | |
58 | 37 |
59 | 38 all: default |
321 | 39 |
40 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) | |
59 | 41 |
372
6ff4f651162b
change TaskManger/Makefile.cell
e065725@localhost.localdomain
parents:
356
diff
changeset
|
42 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) $(KERN_MEM_OBJS) |
109 | 43 |
59 | 44 $(TARGET): $(PPE_ALL_OBJS) |
61 | 45 ar crus $@ $(PPE_ALL_OBJS) |
59 | 46 |
109 | 47 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 48 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 49 |
302 | 50 $(SPETARGET): $(CELL_SPE_OBJS) |
51 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 52 |
321 | 53 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc |
54 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ | |
380 | 55 cp kernel/memory/*.cc $(CELL_SPE_DIR)/ |
109 | 56 $(CELL_SPE_OBJS): %.o : %.cc |
57 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
74 | 58 |
80 | 59 celldistclean: cellclean |
60 rm -f $(TARGET) | |
61 rm -f $(SPETARGET) | |
62 | |
74 | 63 cellclean: |
321 | 64 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) |
65 (cd $(CELL_SPE_DIR); rm -f *~ \#*) | |
66 | |
67 | |
68 |