Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Makefile.cell @ 318:7efc5ede2c03
Document/Cerium_2009.mm
author | aaa |
---|---|
date | Tue, 09 Jun 2009 22:55:00 +0900 |
parents | 2ac66db4dd11 |
children | f64d75473f95 |
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 |
318 | 7 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc) |
8 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) | |
301
bcb81858aa62
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
109
diff
changeset
|
9 |
59 | 10 SPUCC = spu-g++ |
74 | 11 |
109 | 12 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing |
13 | |
14 SPE_CFLAGS = -fno-exceptions -fno-rtti | |
58 | 15 |
59 | 16 all: default |
318 | 17 default: $(TARGET) $(SPETARGET) |
59 | 18 |
109 | 19 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) |
20 | |
59 | 21 $(TARGET): $(PPE_ALL_OBJS) |
61 | 22 ar crus $@ $(PPE_ALL_OBJS) |
59 | 23 |
109 | 24 $(PPE_ALL_OBJS): %.o : %.cc |
74 | 25 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
58 | 26 |
302 | 27 $(SPETARGET): $(CELL_SPE_OBJS) |
28 ar crus $@ $(CELL_SPE_OBJS) | |
58 | 29 |
109 | 30 $(CELL_SPE_OBJS): %.o : %.cc |
31 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@ | |
74 | 32 |
80 | 33 celldistclean: cellclean |
34 rm -f $(TARGET) | |
35 rm -f $(SPETARGET) | |
36 | |
74 | 37 cellclean: |
318 | 38 rm -f $(CELL_SPE_OBJS) |
39 cd $(CELL_SPE_DIR); rm -f *~ \#* |