annotate Makefile @ 9:34365a1eb6a3

output assembly file at making.
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 24 Feb 2015 23:15:57 +0900
parents e1e9a4eac42d
children ecf908a95702
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 CC=/Users/e105711/prog/seminar/CbC/llvmInst/Debug+Asserts/bin/clang
7
e1e9a4eac42d modify Makefile
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
2 TARGET=bug conv fact-a loto6 normal normal2 test01 test02 test04 test05 test_array test_call test_cs test_para test_para2 test_para4 test_return test_struct test_tailcall1 test_tree tmp1 tmp2 tmp4 test_csp1 test_func2code tmpa too-long-argument test1 stack1 test2 arg test_para3
1
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
9
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
4 CFLAGS= -D"CLANG"
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
5 .SUFFIXES: .c .s
1
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
9
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
7 .PHONY: all
1
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 all: $(TARGET)
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
9
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
10 .c.s:
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
11 $(CC) $(CFLAGS) -S $<
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
12
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
13 $(TARGET): $(TARGET:%=%.s)
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
14 $(CC) -o $@ $(@:%=%.s)
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
15
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
16 .PHONY: clean
1
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 clean:
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 rm -f $(TARGET)
9
34365a1eb6a3 output assembly file at making.
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 7
diff changeset
19 rm -f *.o *.s