Mercurial > hg > Members > nobuyasu > CbC
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ABP/Makefile Tue May 01 13:48:30 2012 +0900 @@ -0,0 +1,32 @@ +CC=gcc +MCC=mcc +TARGET=abp abp2 sender2 sender3 receiver2 +MCCFLAGS=-s +CFLAGS=-g -Wall + +.SUFFIXES: .c .o + +.c.o: + $(MCC) $(MCCFLAGS) $< + $(CC) $(CFLAGS) -o $@ -c $(<:.c=.s) + +all: $(TARGET) + +abp: sender.o receiver.o scheduler.o + $(CC) -o $@ $^ + +abp2: queue.o sender3.o receiver3.o scheduler2.o + $(CC) -o $@ $^ + +sender2: sender2.o + $(CC) -o $@ $^ + +sender3: sender3.o + $(CC) -o $@ $^ + +receiver2: receiver2.o + $(CC) -o $@ $^ + +clean: + $(RM) $(TARGET) + $(RM) *.s *.o