Mercurial > hg > CbC > CbC_gcc
annotate CbC-examples/quicksort/Makefile @ 27:f9b1a53df341
implemented indirect sibcall for ppc.
author | kent@teto.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 10 Nov 2009 16:34:29 +0900 |
parents | 2476ed92181e |
children | 3f5886e153cb |
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 |
27
f9b1a53df341
implemented indirect sibcall for ppc.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
25
diff
changeset
|
2 CbCC=../../../build_gcc/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 |
27
f9b1a53df341
implemented indirect sibcall for ppc.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
25
diff
changeset
|
5 CC=../../../build_gcc/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以上はだめ |
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
10 CFLAGS=-g -O2 -fomit-frame-pointer |
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
11 #CFLAGS=-g -O0 |
23 | 12 |
13 .SUFFIXES: .cbc .o | |
14 | |
15 all: quicksort_cbc quicksort_c quicksort_cbc2 | |
16 | |
17 .cbc.o: | |
18 $(CbCC) $(CFLAGS) -c -o $@ $< | |
19 .cbc.h: | |
20 $(HEADERMAKER) $^ > $@ | |
21 | |
22 quicksort_cbc.o: quicksort_cbc.h | |
23 quicksort_cbc2.o: quicksort_cbc2.h | |
24 quicksort_test.o: quicksort_test.h | |
25 | |
26 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
|
27 $(CC) $(CFLAGS) -o $@ $^ |
23 | 28 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
|
29 $(CC) $(CFLAGS) -o $@ $^ |
23 | 30 |
31 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
|
32 $(CC) $(CFLAGS) -o $@ $^ |
23 | 33 |
34 | |
35 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
|
36 rm -rf *.o *.s quicksort_c quicksort_cbc quicksort_cbc2 |