comparison TaskManager/Makefile.cell @ 74:5da437ae84db

*** empty log message ***
author gongo
date Mon, 18 Feb 2008 04:05:56 +0900
parents 6bc72fde6615
children 5a1a5f4c28fd
comparison
equal deleted inserted replaced
73:811ffebd8deb 74:5da437ae84db
1 include ./Makefile.def 1 include ./Makefile.def
2
3 SPETARGET = libspemanager.a
2 4
3 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe 5 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe
4 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cpp) 6 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cpp)
5 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cpp=.o) 7 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cpp=.o)
6 8
7 SPUCC = spu-g++ 9 SPUCC = spu-g++
8 SPUCFLAGS = -fno-strict-aliasing 10
11 EXTRA_CFLAGS = -fno-strict-aliasing
9 12
10 all: default 13 all: default
11 default: $(TARGET) spe 14 default: $(TARGET) $(SPETARGET)
12 15
13 PPE_ALL_OBJS = $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(IMPL_CELL_OBJS) 16 PPE_ALL_OBJS = $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(IMPL_CELL_OBJS)
14 $(TARGET): $(PPE_ALL_OBJS) 17 $(TARGET): $(PPE_ALL_OBJS)
15 ar crus $@ $(PPE_ALL_OBJS) 18 ar crus $@ $(PPE_ALL_OBJS)
16 19
17 $(PPE_ALL_OBJS): %.o : %.cpp 20 $(PPE_ALL_OBJS): %.o : %.cpp
18 $(CC) $(CFLAGS) $(SPUCFLAGS) $(INCLUDE) -c $< -o $@ 21 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
19 22
20 spe: $(CELL_SPE_OBJS) 23 $(SPETARGET): $(CELL_SPE_OBJS)
24 ar crus $@ $(CELL_SPE_OBJS)
21 25
22 $(CELL_SPE_OBJS): %.o : %.cpp 26 $(CELL_SPE_OBJS): %.o : %.cpp
23 $(SPUCC) $(CFLAGS) $(INCLUDE) -c $< -o $@ 27 $(SPUCC) $(CFLAGS) $(INCLUDE) -c $< -o $@
28
29 cellclean:
30 rm -f $(CELL_SPE_OBJS)
31 cd $(CELL_SPE_DIR); rm -f *~ \#*
32 rm -f $(SPETARGET)