annotate TaskManager/Makefile.cell @ 115:d9ea79aac04f draft

fix Makefile
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 13 Nov 2008 10:46:36 +0900
parents 028ffc9c0375
children 7f991471d43f cfd20d609ace
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
1 include ./Makefile.def
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
2
80
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
3 TARGET = libCellManager.a
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
4 SPETARGET = libspemanager.a
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
5
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
6 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
7 CELL_SPE_SRCS = $(wildcard $(CELL_SPE_DIR)/*.cc)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
8 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o)
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
9
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
10 SPUCC = spu-g++
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
11
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
12 EXTRA_CFLAGS = -D__CERIUM_CELL__ -fno-strict-aliasing
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
13
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
14 SPE_CFLAGS = -fno-exceptions -fno-rtti
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
15
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
16 all: default
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
17 default: $(TARGET) $(SPETARGET)
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
18
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
19 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
20
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
21 $(TARGET): $(PPE_ALL_OBJS)
61
6bc72fde6615 *** empty log message ***
gongo
parents: 60
diff changeset
22 ar crus $@ $(PPE_ALL_OBJS)
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
23
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
24 $(PPE_ALL_OBJS): %.o : %.cc
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
25 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
26
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
27 $(SPETARGET): $(CELL_SPE_OBJS)
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
28 ar crus $@ $(CELL_SPE_OBJS)
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
29
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
30 $(CELL_SPE_OBJS): %.o : %.cc
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
31 $(SPUCC) $(CFLAGS) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
32
80
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
33 celldistclean: cellclean
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
34 rm -f $(TARGET)
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
35 rm -f $(SPETARGET)
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
36
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
37 cellclean:
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
38 rm -f $(CELL_SPE_OBJS)
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
39 cd $(CELL_SPE_DIR); rm -f *~ \#*