Mercurial > hg > CbC > CbC_examples
view quicksort/Makefile @ 27:586096c45873
clean up
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 May 2020 07:19:57 +0900 |
parents | bacef8675607 |
children |
line wrap: on
line source
CbCC=../../BUILD/INSTALL_DIR/bin/gcc #CC=gcc #CC=../../../build_gcc/INSTALL_DIR/bin/gcc CC=../../BUILD/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