-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.28 KB
/
Makefile
File metadata and controls
41 lines (32 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CC = g++
CPPFLAGS = -g -std=c++11 -lclang
LLVM_INCLUDE = `llvm-config --includedir`
LLVM_LIB = `llvm-config --libdir`
MESSAGE?=update
codesim: clean ast-parser
$(CC) -o codesim AST.o ASTParser.o src/main.cpp -I ./include -I ./lib/include -I $(LLVM_INCLUDE) -L $(LLVM_LIB) $(CPPFLAGS)
ast-parser:
$(CC) -c src/AST.cpp src/ASTParser.cpp -I ./include -I ./lib/include -I $(LLVM_INCLUDE) -L $(LLVM_LIB) $(CPPFLAGS)
.PHONY: clean test push
clean:
rm -f *.o
rm -f *~
rm -f codesim
test: codesim
./codesim ./testcase/1.cpp ./testcase/1.format.cpp
./codesim ./testcase/1.cpp ./testcase/2.format.cpp
./codesim ./testcase/1.cpp ./testcase/3.format.cpp
./codesim ./testcase/1.cpp ./testcase/4.format.cpp
./codesim ./testcase/2.format.cpp ./testcase/3.format.cpp
./codesim ./testcase/2.format.cpp ./testcase/4.format.cpp
./codesim ./testcase/3.format.cpp ./testcase/4.format.cpp
./codesim ./testcase/5.format.cpp ./testcase/6.format.cpp
./codesim ./testcase/5.format.cpp ./testcase/7.format.cpp
./codesim ./testcase/6.format.cpp ./testcase/7.format.cpp
./codesim ./testcase/1.cpp ./testcase/5.format.cpp
./codesim ./testcase/1.cpp ./testcase/6.format.cpp
./codesim ./testcase/1.cpp ./testcase/7.format.cpp
push:
git add .
git commit -m "$(MESSAGE)"
git push origin master