58
|
1 include ./Makefile.def
|
|
2
|
59
|
3 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe
|
|
4 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cpp)
|
|
5 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cpp=.o)
|
|
6
|
|
7 SPUCC = spu-g++
|
60
|
8 SPUCFLAGS = -fno-strict-aliasing
|
58
|
9
|
59
|
10 all: default
|
|
11 default: $(TARGET) spe
|
|
12
|
|
13 PPE_ALL_OBJS = $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(IMPL_CELL_OBJS)
|
|
14 $(TARGET): $(PPE_ALL_OBJS)
|
|
15 ar crus $@ $(ALL_OBJS)
|
|
16
|
|
17 $(PPE_ALL_OBJS): %.o : %.cpp
|
60
|
18 $(CC) $(CFLAGS) $(SPUCFLAGS) $(INCLUDE) -c $< -o $@
|
58
|
19
|
59
|
20 spe: $(CELL_SPE_OBJS)
|
58
|
21
|
59
|
22 $(CELL_SPE_OBJS): %.o %.cpp
|
|
23 $(SPUCC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |