Mercurial > hg > CbC > CbC_gcc
view CbC-examples/quicksort/mc/Makefile @ 41:c816ae4380d7
add quicksort/mc/Makefile
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 Jan 2010 16:58:29 +0900 |
parents | |
children | 9e4f9e20b8f1 |
line wrap: on
line source
CbCC=../../../../device/mc #CC=gcc CC=../../../../build-gcc/INSTALL_DIR/bin/cbc-gcc HEADERMAKER=../../../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 $(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