annotate example/word_count/spe/Makefile @ 393:cb06748ba6cf draft

add word_count
author e065725@localhost.localdomain
date Tue, 15 Sep 2009 16:30:46 +0900
parents
children 77d9e3bc25b2
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++
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
10 CFLAGS = -g -Wall -fno-exceptions -fno-rtti #-DDEBUG
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)
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
26 rm -f *~ \#*