annotate example/word_count/spe/Makefile @ 1130:5addc6c1d5c4 draft

fix.
author root@dolphins.cr.ie.u-ryukyu.ac.jp
date Sun, 13 Feb 2011 22:34:44 +0900
parents 852ed17d8af1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
393
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
1 include ../Makefile.def
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
2
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
3 TARGET = ../spe-main
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
4
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
5 SRCS_TMP = $(wildcard *.cc)
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
6 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
7 OBJS = $(SRCS:.cc=.o)
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
8
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
9 CC = spu-g++
946
852ed17d8af1 unify word count examples....
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 665
diff changeset
10 CFLAGS = -Wall -fno-exceptions -fno-rtti $(OPT)
393
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
11 INCLUDE = -I../${CERIUM}/include/TaskManager -I. -I..
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
12 LIBS = -L../${CERIUM}/TaskManager -lspemanager
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
13
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
14 .SUFFIXES: .cc .o
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
15
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
16 .cc.o:
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
17 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
18
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
19 all: $(TARGET)
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
20
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
21 $(TARGET): $(OBJS)
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
22 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
23
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
24 clean:
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
25 rm -f $(TARGET) $(OBJS)
665
77d9e3bc25b2 word_count_test
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 393
diff changeset
26 rm -f *~ \#*