Mercurial > hg > CbC > CbC_gcc
view CbC-examples/quicksort/Makefile @ 42:9e4f9e20b8f1
add some examples.
author | kent@teto.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 25 Jan 2010 17:13:59 +0900 |
parents | 3367c5a7ec79 |
children | 2e19f845ea37 |
line wrap: on
line source
CbCC=../../../build_gcc/INSTALL_DIR/bin/gcc #CC=gcc CC=../../../build_gcc/INSTALL_DIR/bin/gcc HEADERMAKER=../../CbC-scripts/make_headers.py2 # fastcall版では-O0,-O2は動作確認、-O3以上はだめ #CFLAGS=-g -O2 -fomit-frame-pointer #CFLAGS=-g -O2 CFLAGS=-g -O0 #CFLAGS=-g -Os # an error occurred. .SUFFIXES: .cbc .o all: quicksort_cbc quicksort_c quicksort_cbc2 .cbc.o: $(CbCC) $(CFLAGS) -c -o $@ $< .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