annotate examples/treedependtask/Makefile @ 8:07fab8c367b2

made src directory and move all source files into it. support autocont and automake tools.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 08 Jan 2010 14:40:49 +0900
parents
children f06fb0370caf
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
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 CbCC = ~/WorkSpace/Mercurial/build_cbc44/INSTALL_DIR/bin/gcc
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
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 TaskManagerDir = ../../CbCTaskManager
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 LDFLAGS = -L$(TaskManagerDir)
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 LIBS = -lFifoManager
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
07fab8c367b2 made src directory and move all source files into it.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 INCLUDE = -I$(TaskManagerDir) -I$(TaskManagerDir)/user -I. -I$(TaskManagerDir)/$(ENVIRONMENT)
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