annotate CbC-examples/code_segment_pointer_check/Makefile @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents cc07adb17855
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1
29
cc07adb17855 deleting old commented out code.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 28
diff changeset
2 CbCC=../../../build_cbc44/INSTALL_DIR/bin/gcc
28
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #CC=gcc
29
cc07adb17855 deleting old commented out code.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 28
diff changeset
5 CC=../../../build_cbc44/INSTALL_DIR/bin/gcc
28
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 # fastcall版では-O0,-O2は動作確認、-O3以上はだめ
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 CFLAGS=-g -O2 -fomit-frame-pointer
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 #CFLAGS=-g -O0
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 .SUFFIXES: .cbc .o
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
13
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
14 all: code_segment_pointer_check2
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
15
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
16 .cbc.o:
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
17 $(CbCC) $(CFLAGS) -c -o $@ $<
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
18
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
19 code_segment_pointer_check2: code_segment_pointer_check2.o
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
20 $(CC) $(CFLAGS) -o $@ $^
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
21
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
22
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
23 clean:
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
24 rm -rf *.o *.s code_segment_pointer_check2
f2ea7e07d030 bit modify.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
25