Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Makefile.cell @ 302:b0d37afab06a
working on macosx
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Jun 2009 18:07:26 +0900 |
parents | bcb81858aa62 |
children | a02e863dc69f |
comparison
equal
deleted
inserted
replaced
301:bcb81858aa62 | 302:b0d37afab06a |
---|---|
1 include ./Makefile.def | 1 include ./Makefile.def |
2 | 2 |
3 TARGET = libCellManager.a | 3 TARGET = libCellManager.a |
4 SPETARGET = libspemanager.a | 4 SPETARGET = libspemanager.a |
5 | 5 |
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 | |
15 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC: .cc=.o) | |
16 | |
6 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe | 17 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe |
7 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc) | 18 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc) |
8 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) | 19 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) $(CELL_SPE_SCHEDULE_OBJ) |
9 | |
10 CELL_SPE_KERNEL = kernel/schedule | |
11 CELL_SPE_KERNEL_OBJS = $(CELL_SPE_DIR)/SchedExit.o $(CELL_SPE_DIR)/SchedNop2Ready.o \ | |
12 $(CELL_SPE_DIR)/Scheduler.o $(CELL_SPE_DIR)/SchedMail.o $(CELL_SPE_DIR)/SchedTask.o \ | |
13 $(CELL_SPE_DIR)/TaskGroup.o $(CELL_SPE_DIR)/SchedNop.o $(CELL_SPE_DIR)/SchedTaskList.o | |
14 | |
15 | 20 |
16 SPUCC = spu-g++ | 21 SPUCC = spu-g++ |
17 | 22 |
18 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing | 23 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
19 | 24 |
20 SPE_CFLAGS = -fno-exceptions -fno-rtti | 25 SPE_CFLAGS = -fno-exceptions -fno-rtti |
21 | 26 |
22 all: default | 27 all: default |
28 | |
23 default: $(TARGET) $(SPETARGET) | 29 default: $(TARGET) $(SPETARGET) |
24 | 30 |
25 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) | 31 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) |
26 | 32 |
27 $(TARGET): $(PPE_ALL_OBJS) | 33 $(TARGET): $(PPE_ALL_OBJS) |
28 ar crus $@ $(PPE_ALL_OBJS) | 34 ar crus $@ $(PPE_ALL_OBJS) |
29 | 35 |
30 $(PPE_ALL_OBJS): %.o : %.cc | 36 $(PPE_ALL_OBJS): %.o : %.cc |
31 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | 37 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
32 | 38 |
33 $(SPETARGET): $(CELL_SPE_OBJS) $(CELL_SPE_KERNEL_OBJS) | 39 $(SPETARGET): $(CELL_SPE_OBJS) |
34 ar crus $@ $(CELL_SPE_OBJS) $(CELL_SPE_KERNEL_OBJS) | 40 ar crus $@ $(CELL_SPE_OBJS) |
35 | 41 |
36 $(CELL_SPE_OBJS): %.o : %.cc | 42 $(CELL_SPE_OBJS): %.o : %.cc |
37 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | 43 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ |
38 | 44 |
39 $(CELL_SPE_KERNEL_OBJS): | 45 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc |
40 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | 46 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/ |
41 | |
42 $(CELL_SPE_DIR)/SchedExit.o: $(CELL_SPE_KERNEL)/SchedExit.cc | |
43 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
44 $(CELL_SPE_DIR)/SchedNop2Ready.o: $(CELL_SPE_KERNEL)/SchedNop2Ready.cc | |
45 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
46 $(CELL_SPE_DIR)/Scheduler.o: $(CELL_SPE_KERNEL)/Scheduler.cc | |
47 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
48 $(CELL_SPE_DIR)/SchedMail.o: $(CELL_SPE_KERNEL)/SchedMail.cc | |
49 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
50 $(CELL_SPE_DIR)/SchedTask.o: $(CELL_SPE_KERNEL)/SchedTask.cc | |
51 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
52 $(CELL_SPE_DIR)/TaskGroup.o: $(CELL_SPE_KERNEL)/TaskGroup.cc | |
53 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
54 $(CELL_SPE_DIR)/SchedNop.o: $(CELL_SPE_KERNEL)/SchedNop.cc | |
55 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
56 $(CELL_SPE_DIR)/SchedTaskList.o: $(CELL_SPE_KERNEL)/SchedTaskList.cc | |
57 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
58 | 47 |
59 celldistclean: cellclean | 48 celldistclean: cellclean |
60 rm -f $(TARGET) | 49 rm -f $(TARGET) |
61 rm -f $(SPETARGET) | 50 rm -f $(SPETARGET) |
62 | 51 |
63 cellclean: | 52 cellclean: |
64 rm -f $(CELL_SPE_OBJS) | 53 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) |
65 cd $(CELL_SPE_DIR); rm -f *~ \#* | 54 (cd $(CELL_SPE_DIR); rm -f *~ \#*) |
55 | |
56 | |
57 |