view ABP/Makefile.mc @ 33:3946f8d26710 draft default tip

add benchmarck/binary-trees
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 09 Apr 2013 16:41:30 +0900
parents 972515f10c1d
children
line wrap: on
line source

#CC=gcc
#MCC=mcc
CC=cbc-gcc-4.6.0
MCC=cbc-gcc-4.6.0
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