Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
llvm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
llvm-watermarker
Commits
0e179726
Commit
0e179726
authored
Nov 18, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8ccのMakefileを修正
parent
743e6b62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
Makefile
example/8cc/Makefile
+10
-8
Makefile
example/Makefile
+3
-0
No files found.
example/8cc/Makefile
View file @
0e179726
WATERMARK
:=
3
WATERMARK
:=
77
CC
:=
clang
...
...
@@ -43,15 +43,15 @@ stage1-wm: 8cc-stage1-wm
test/stage1/%.o
:
8cc/%.c
@
mkdir
-p
${
@D
}
${
CC
}
-DBUILD_DIR
=
'"${PWD}/8cc"'
-O2
-o
$@
-c
$<
${
CC
}
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
-O2
-o
$@
-c
$<
test/stage2/%.o
:
8cc/%.c 8cc-stage1
@
mkdir
-p
${
@D
}
./8cc-stage1
-DBUILD_DIR
=
'"${PWD}/8cc"'
-w
-o
$@
-c
$<
./8cc-stage1
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
-w
-o
$@
-c
$<
test/stage3/%.o
:
8cc/%.c 8cc-stage2
@
mkdir
-p
${
@D
}
./8cc-stage2
-DBUILD_DIR
=
'"${PWD}/8cc"'
-w
-o
$@
-c
$<
./8cc-stage2
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
-w
-o
$@
-c
$<
# Watermarked 8cc
8cc-stage1-wm
:
${SRCS:8cc/%.c=test/stage1-wm/%.o}
...
...
@@ -67,19 +67,19 @@ test/stage1-wm/%.o: test/stage1-wm/%-wm.ll
clang
-o
$@
-c
$<
test/stage1-wm/%-wm.ll
:
test/stage1-wm/%.ll
opt-6.0
-load
../../nykk.so
-
block-wm
-watermark
=
${
WATERMARK
}
-o
$@
$<
2>
${
@
:%.ll
=%-stderr.txt
}
opt-6.0
-load
../../nykk.so
-
O2
-block-wm
-watermark
=
${
WATERMARK
}
-S
-o
$@
$<
2>
${
@
:%.ll
=%-stderr.txt
}
test/stage1-wm/%.ll
:
8cc/%.c
@
mkdir
-p
${
@D
}
clang
-DBUILD_DIR
=
'"${PWD}/8cc"'
-O2
-o
$@
-emit-llvm
-S
$<
clang
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
-O2
-o
$@
-emit-llvm
-S
$<
test/stage2-wm/%.o
:
8cc/%.c 8cc-stage1-wm
@
mkdir
-p
${
@D
}
./8cc-stage1-wm
-DBUILD_DIR
=
'"${PWD}/8cc"'
-w
-o
$@
-c
$<
./8cc-stage1-wm
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
-w
-o
$@
-c
$<
test/stage3-wm/%.o
:
8cc/%.c 8cc-stage2-wm
@
mkdir
-p
${
@D
}
./8cc-stage2-wm
-DBUILD_DIR
=
'"${PWD}/8cc"'
-w
-o
$@
-c
$<
./8cc-stage2-wm
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
-w
-o
$@
-c
$<
test
:
stage3 stage3-wm
objdump
-D
8cc-stage1
>
stage1.s
...
...
@@ -89,5 +89,7 @@ test: stage3 stage3-wm
objdump
-D
8cc-stage2-wm
>
stage2-wm.s
objdump
-D
8cc-stage3-wm
>
stage3-wm.s
.PRECIOUS
:
test/stage1-wm/%.ll test/stage1-wm/%-wm.ll
clean
:
${
RM
}
-r
8cc-
*
test
*
.s
example/Makefile
View file @
0e179726
...
...
@@ -2,9 +2,12 @@
all
:
${
MAKE
}
-C
fizzbuzz
${
MAKE
}
-C
8cc
test
:
${
MAKE
}
-C
fizzbuzz
test
${
MAKE
}
-C
8cc
test
clean
:
${
MAKE
}
-C
fizzbuzz clean
${
MAKE
}
-C
8cc clean
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment