annotate examples/treedependtask/Makefile @ 17:b5bbbeec1fe8

run on Mac OS X with easy packaged CbC
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 13 Jan 2010 16:06:17 +0900
parents f06fb0370caf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #CC = gcc
17
b5bbbeec1fe8 run on Mac OS X with easy packaged CbC
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
2 CbCC = cbc-gcc -m64
8
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 CC = $(CbCC)
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
17
b5bbbeec1fe8 run on Mac OS X with easy packaged CbC
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
5 BASEDIR = ../../src
8
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
17
b5bbbeec1fe8 run on Mac OS X with easy packaged CbC
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
7 LDFLAGS = -L$(BASEDIR)
13
f06fb0370caf add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 8
diff changeset
8 LIBS = -lTaskManager
8
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 ENVIRONMENT=Fifo
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 #ENVIRONMENT=Cell
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
17
b5bbbeec1fe8 run on Mac OS X with easy packaged CbC
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 13
diff changeset
13 INCLUDE = -I$(BASEDIR)/userinclude -I.
8
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 CFLAGS = -Wall -g -O0 $(INCLUDE) -DDEBUG
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 .SUFFIXES: .cbc .c .o
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 all: testmanager
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 .c.o:
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 $(CC) -c $(CFLAGS) -o $@ $^
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 .cbc.o:
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 $(CbCC) -c $(CFLAGS) -o $@ $^
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 testmanager: testmanager.o taskinit.o
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 clean:
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 rm -f *.o testmanager
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32