annotate example/Simple/spe/Makefile @ 2069:26aa08c9a1de draft default tip

cuda example fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 12 Feb 2017 10:04:55 +0900
parents 97adb3fe85c6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
634
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ../Makefile.def
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 TARGET = ../spe-main
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 SRCS_TMP = $(wildcard *.cc)
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 OBJS = $(SRCS:.cc=.o)
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
713
97adb3fe85c6 remove SIMPLE_TASK conditional
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
9 CC = spu-g++ -DABIBIT=$(ABIBIT) $(OPT)
634
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 CFLAGS = -g -Wall -fno-exceptions -fno-rtti #-DDEBUG
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 INCLUDE = -I../${CERIUM}/include/TaskManager -I. -I..
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 LIBS = -L../${CERIUM}/TaskManager -lspemanager
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 .SUFFIXES: .cc .o
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 .cc.o:
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 all: $(TARGET)
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 $(TARGET): $(OBJS)
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 641
diff changeset
22 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) $(OPT)
634
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 clean:
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 rm -f $(TARGET) $(OBJS)
62e570ac5db2 SimpleTask start
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 rm -f *~ \#*