annotate CbC-examples/quicksort/Makefile @ 25:2476ed92181e

modified machine description of i386 for support indirect sibcall attributed fastcall.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Tue, 27 Oct 2009 16:04:06 +0900
parents 775dfe898662
children f9b1a53df341
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
2476ed92181e modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
2 #CbCC=../../../build_cbc44/INSTALL_DIR/bin/gcc
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 CbCC=../../../build_cbc44_fast/INSTALL_DIR/bin/gcc
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
2476ed92181e modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
5 #CC=gcc
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 #CC=../../../build_cbc44/INSTALL_DIR/bin/gcc
2476ed92181e modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
7 CC=../../../build_cbc44_fast/INSTALL_DIR/bin/gcc
2476ed92181e modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
8
23
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 HEADERMAKER=../../CbC-scripts/make_headers.py
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
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
11 # 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
12 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
13 #CFLAGS=-g -O0
23
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 .SUFFIXES: .cbc .o
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 all: quicksort_cbc quicksort_c quicksort_cbc2
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 .cbc.o:
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 $(CbCC) $(CFLAGS) -c -o $@ $<
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 .cbc.h:
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 $(HEADERMAKER) $^ > $@
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 quicksort_cbc.o: quicksort_cbc.h
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 quicksort_cbc2.o: quicksort_cbc2.h
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 quicksort_test.o: quicksort_test.h
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 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
29 $(CC) $(CFLAGS) -o $@ $^
23
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 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
31 $(CC) $(CFLAGS) -o $@ $^
23
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 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
34 $(CC) $(CFLAGS) -o $@ $^
23
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
775dfe898662 add quicksort version 2.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 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
38 rm -rf *.o *.s quicksort_c quicksort_cbc quicksort_cbc2