annotate example/mainMem/spe/Makefile @ 639:70c5c2d2eb24

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 19 Nov 2009 18:45:24 +0900
parents 57530cb7f7d1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
312
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ../Makefile.def
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 TARGET = ../spe-main
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 SRCS_TMP = $(wildcard *.cc)
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 OBJS = $(SRCS:.cc=.o)
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 CC = spu-g++
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 CFLAGS = -O9 -g -Wall -fno-exceptions -fno-rtti#-DDEBUG
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 INCLUDE = -I../${CERIUM}/include/TaskManager -I. -I..
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 LIBS = -L../${CERIUM}/TaskManager -lspemanager -Wl,--gc-sections
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 .SUFFIXES: .cc .o
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 .cc.o:
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 all: $(TARGET)
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 $(TARGET): $(OBJS)
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 clean:
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 rm -f $(TARGET) $(OBJS)
57530cb7f7d1 memMain tester
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 rm -f *~ \#*