58
|
1 include ./Makefile.def
|
|
2
|
74
|
3 SPETARGET = libspemanager.a
|
|
4
|
59
|
5 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe
|
|
6 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cpp)
|
|
7 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cpp=.o)
|
|
8
|
|
9 SPUCC = spu-g++
|
74
|
10
|
|
11 EXTRA_CFLAGS = -fno-strict-aliasing
|
58
|
12
|
76
|
13 TARGET = libCellManager.a
|
|
14
|
59
|
15 all: default
|
74
|
16 default: $(TARGET) $(SPETARGET)
|
59
|
17
|
|
18 PPE_ALL_OBJS = $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(IMPL_CELL_OBJS)
|
|
19 $(TARGET): $(PPE_ALL_OBJS)
|
61
|
20 ar crus $@ $(PPE_ALL_OBJS)
|
59
|
21
|
|
22 $(PPE_ALL_OBJS): %.o : %.cpp
|
74
|
23 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
|
58
|
24
|
74
|
25 $(SPETARGET): $(CELL_SPE_OBJS)
|
|
26 ar crus $@ $(CELL_SPE_OBJS)
|
58
|
27
|
61
|
28 $(CELL_SPE_OBJS): %.o : %.cpp
|
74
|
29 $(SPUCC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
|
30
|
|
31 cellclean:
|
|
32 rm -f $(CELL_SPE_OBJS)
|
|
33 cd $(CELL_SPE_DIR); rm -f *~ \#*
|
|
34 rm -f $(SPETARGET) |