view paper/quicksort_for_ppc/mc/Makefile @ 10:3d9addf62d0b

organized repository.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Tue, 16 Feb 2010 14:35:36 +0900
parents
children
line wrap: on
line source


CbCC=~/WorkSpace/Mercurial/device/mc

#CC=gcc
CC=gcc

HEADERMAKER=~/WorkSpace/Mercurial/GCC/CbC-scripts/make_headers.py2

CFLAGS=-g -Wall

.SUFFIXES: .cbc .o .s .c

all: quicksort_cbc quicksort_c quicksort_cbc2

quicksort_c.c quicksort_cbc.cbc quicksort_cbc2.cbc quicksort_test.cbc benchmark.sh:
	ln -s ../$@

.s.o:
	$(CC) -c -o $@ $<
.cbc.s:
	$(CbCC) $<
.cbc.h:
	$(HEADERMAKER) $^ > $@

quicksort_cbc.o: quicksort_cbc.h
quicksort_cbc2.o: quicksort_cbc2.h
quicksort_test.o: quicksort_test.h

quicksort_cbc: quicksort_cbc.o quicksort_test.o quicksort_cbc_inter.o
	$(CC) $(CFLAGS) -o $@ $^
quicksort_cbc2: quicksort_cbc2.o quicksort_test.o
	$(CC) $(CFLAGS) -o $@ $^

quicksort_c: quicksort_c.o
	$(CC) $(CFLAGS) -o $@ $^


clean: 
	rm -rf *.o *.s quicksort_c quicksort_cbc quicksort_cbc2