58
|
1 include ./Makefile.def
|
|
2
|
80
|
3 TARGET = libCellManager.a
|
74
|
4 SPETARGET = libspemanager.a
|
|
5
|
59
|
6 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe
|
109
|
7 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc)
|
|
8 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o)
|
59
|
9
|
|
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
|
74
|
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
|
74
|
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:
|
|
38 rm -f $(CELL_SPE_OBJS)
|
|
39 cd $(CELL_SPE_DIR); rm -f *~ \#*
|