annotate ABP/Makefile @ 8:5dc0fa7caa57 draft

add ABP
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 01 May 2012 13:48:30 +0900
parents
children 18d2a590bc10
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 CC=gcc
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 MCC=mcc
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 TARGET=abp abp2 sender2 sender3 receiver2
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 MCCFLAGS=-s
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 CFLAGS=-g -Wall
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 .SUFFIXES: .c .o
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 .c.o:
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 $(MCC) $(MCCFLAGS) $<
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 $(CC) $(CFLAGS) -o $@ -c $(<:.c=.s)
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 all: $(TARGET)
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 abp: sender.o receiver.o scheduler.o
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 $(CC) -o $@ $^
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 abp2: queue.o sender3.o receiver3.o scheduler2.o
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 $(CC) -o $@ $^
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 sender2: sender2.o
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 $(CC) -o $@ $^
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 sender3: sender3.o
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 $(CC) -o $@ $^
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 receiver2: receiver2.o
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 $(CC) -o $@ $^
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 clean:
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 $(RM) $(TARGET)
5dc0fa7caa57 add ABP
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 $(RM) *.s *.o