Mercurial > hg > Game > Cerium
comparison TaskManager/Makefile.cell @ 354:cfd20d609ace draft
add example/get_segment and change spe/DrawSpan.cpp
author | koba |
---|---|
date | Wed, 15 Jul 2009 17:39:51 +0900 |
parents | 028ffc9c0375 |
children | 5b995810b86a |
comparison
equal
deleted
inserted
replaced
284:fbc78e36398b | 354:cfd20d609ace |
---|---|
2 | 2 |
3 TARGET = libCellManager.a | 3 TARGET = libCellManager.a |
4 SPETARGET = libspemanager.a | 4 SPETARGET = libspemanager.a |
5 | 5 |
6 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe | 6 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe |
7 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc) | 7 |
8 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) | 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)/TaskGroup.cc | |
16 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o) | |
17 | |
18 CELL_SPE_SRCS = \ | |
19 $(CELL_SPE_DIR)/CellDmaManager.cc \ | |
20 $(CELL_SPE_DIR)/TaskList.cc \ | |
21 $(CELL_SPE_DIR)/CellScheduler.cc \ | |
22 $(CELL_SPE_DIR)/TaskQueue.cc \ | |
23 $(CELL_SPE_DIR)/Task.cc \ | |
24 $(CELL_SPE_DIR)/main.cc | |
25 | |
26 # $(wildcard $(CELL_SPE_DIR)/*.cc) | |
27 | |
28 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) $(CELL_SPE_SCHEDULE_OBJ) | |
9 | 29 |
10 SPUCC = spu-g++ | 30 SPUCC = spu-g++ |
11 | 31 |
12 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing | 32 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
13 | 33 |
14 SPE_CFLAGS = -fno-exceptions -fno-rtti | 34 SPE_CFLAGS = -fno-exceptions -fno-rtti |
15 | 35 |
16 all: default | 36 all: default |
17 default: $(TARGET) $(SPETARGET) | 37 |
38 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET) | |
18 | 39 |
19 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) | 40 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) |
20 | 41 |
21 $(TARGET): $(PPE_ALL_OBJS) | 42 $(TARGET): $(PPE_ALL_OBJS) |
22 ar crus $@ $(PPE_ALL_OBJS) | 43 ar crus $@ $(PPE_ALL_OBJS) |
25 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | 46 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
26 | 47 |
27 $(SPETARGET): $(CELL_SPE_OBJS) | 48 $(SPETARGET): $(CELL_SPE_OBJS) |
28 ar crus $@ $(CELL_SPE_OBJS) | 49 ar crus $@ $(CELL_SPE_OBJS) |
29 | 50 |
51 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc | |
52 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ | |
53 | |
30 $(CELL_SPE_OBJS): %.o : %.cc | 54 $(CELL_SPE_OBJS): %.o : %.cc |
31 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | 55 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ |
32 | 56 |
33 celldistclean: cellclean | 57 celldistclean: cellclean |
34 rm -f $(TARGET) | 58 rm -f $(TARGET) |
35 rm -f $(SPETARGET) | 59 rm -f $(SPETARGET) |
36 | 60 |
37 cellclean: | 61 cellclean: |
38 rm -f $(CELL_SPE_OBJS) | 62 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) |
39 cd $(CELL_SPE_DIR); rm -f *~ \#* | 63 (cd $(CELL_SPE_DIR); rm -f *~ \#*) |
64 | |
65 | |
66 |