annotate Makefile @ 2:35d6eabeadb0

modify Makefile. we can use makefile to compile outside CbC examples. (some examples are not compilable...)
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Wed, 22 Oct 2014 02:06:29 +0900
parents ba74047a4d78
children 175041088754
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
2
35d6eabeadb0 modify Makefile. we can use makefile to compile outside CbC examples. (some examples are not compilable...)
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
2 TARGET=bug conv fact-a loto6 normal normal2 test01 test02 test04 test05 test2 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
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 CFLAGS=-O2 -D"CLANG"
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 .SUFFIXES: .c .o
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
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 .c.o:
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 $(CC) $(CFLAGS) -o $<
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
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 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
11
ba74047a4d78 add Makefile for arg, bug, conv, normal and fix these .c file
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 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
13 rm -f $(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
14 rm -f *.o