Mercurial > hg > CbC > CbC_gcc
annotate CbC-examples/quicksort/Makefile @ 35:3f5886e153cb
modify cbc_replace_args
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Dec 2009 20:49:36 +0900 |
parents | f9b1a53df341 |
children | 9117c3b65bc3 |
rev | line source |
---|---|
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
1 |
35 | 2 CbCC=../../../build_cbc44/INSTALL_DIR/bin/gcc |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
3 |
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
4 #CC=gcc |
35 | 5 CC=../../../build_cbc44/INSTALL_DIR/bin/gcc |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
6 |
27
f9b1a53df341
implemented indirect sibcall for ppc.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
25
diff
changeset
|
7 HEADERMAKER=../../CbC-scripts/make_headers.py2 |
23 | 8 |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
9 # fastcall版では-O0,-O2は動作確認、-O3以上はだめ |
35 | 10 #CFLAGS=-g -O2 -fomit-frame-pointer |
11 CFLAGS=-g -O2 | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
12 #CFLAGS=-g -O0 |
23 | 13 |
14 .SUFFIXES: .cbc .o | |
15 | |
16 all: quicksort_cbc quicksort_c quicksort_cbc2 | |
17 | |
18 .cbc.o: | |
19 $(CbCC) $(CFLAGS) -c -o $@ $< | |
20 .cbc.h: | |
21 $(HEADERMAKER) $^ > $@ | |
22 | |
23 quicksort_cbc.o: quicksort_cbc.h | |
24 quicksort_cbc2.o: quicksort_cbc2.h | |
25 quicksort_test.o: quicksort_test.h | |
26 | |
27 quicksort_cbc: quicksort_cbc.o quicksort_test.o | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
28 $(CC) $(CFLAGS) -o $@ $^ |
23 | 29 quicksort_cbc2: quicksort_cbc2.o quicksort_test.o |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
30 $(CC) $(CFLAGS) -o $@ $^ |
23 | 31 |
32 quicksort_c: quicksort_c.o | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
33 $(CC) $(CFLAGS) -o $@ $^ |
23 | 34 |
35 | |
36 clean: | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
37 rm -rf *.o *.s quicksort_c quicksort_cbc quicksort_cbc2 |