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
a891e6dd
Commit
a891e6dd
authored
Dec 09, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Makefiles.
parent
d33e3455
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
Makefile
Makefile
+2
-3
common.mk
common.mk
+5
-0
Makefile
example/8cc/Makefile
+4
-8
Makefile
example/Makefile
+2
-0
No files found.
Makefile
View file @
a891e6dd
include
common.mk
.PHONY
:
all test clean
all
:
...
...
@@ -9,6 +11,3 @@ test:
${
MAKE
}
-C
src
test
${
MAKE
}
-C
test test
${
MAKE
}
-C
example
test
clean
:
${
RM
}
-r
bin obj
common.mk
View file @
a891e6dd
...
...
@@ -5,3 +5,8 @@ BIN_DIR := ${ROOT}/bin/${CD:${ROOT}/%=%}
OBJ_DIR := ${ROOT}/obj/${CD:${ROOT}/%=%}
.PHONY: all test clean
all:
clean:
${RM} -r bin obj
example/8cc/Makefile
View file @
a891e6dd
...
...
@@ -32,7 +32,6 @@ SRCS := \
8cc/vector.c
.PHONY
:
all test clean
.PRECIOUS
:
${OBJ_DIR}/stage1-wm/%-wm.ll
all
:
stage3 stage3-wm
...
...
@@ -66,14 +65,11 @@ ${OBJ_DIR}/stage3/%.o: 8cc/%.c ${BIN_DIR}/stage2/8cc.out
${
BIN_DIR
}
/stage2/8cc.out
-w
${
8CCFLAGS
}
-o
$@
-c
$<
# Watermarked 8cc
${OBJ_DIR}/stage1-wm/%.o
:
${OBJ_DIR}/stage1-wm/%-wm.ll
${OBJ_DIR}/stage1-wm/%.o
:
8cc/%.c
@
mkdir
-p
${
@D
}
clang
${
CFLAGS
}
-o
$@
-c
$<
${OBJ_DIR}/stage1-wm/%-wm.ll
:
8cc/%.c
@
mkdir
-p
${
@D
}
clang
${
CFLAGS
}
-S
-emit-llvm
-o
${
@
:%-wm.ll
=%.ll
}
$<
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-block-wm
-watermark
=
${
WATERMARK
}
-S
-o
$@
${
@
:%-wm.ll
=%.ll
}
2>
${
@
:%-wm.ll
=%-log.txt
}
clang
${
CFLAGS
}
-S
-emit-llvm
-o
${
@
:%.o
=%.ll
}
$<
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-block-wm
-watermark
=
${
WATERMARK
}
-S
-o
${
@
:%.o
=%-wm.ll
}
${
@
:%.o
=%.ll
}
2>
${
@
:%.o
=%-log.txt
}
clang
${
CFLAGS
}
-o
$@
-c
${
@
:%.o
=%-wm.ll
}
${OBJ_DIR}/stage2-wm/%.o
:
8cc/%.c ${BIN_DIR}/stage1-wm/8cc.out
@
mkdir
-p
${
@D
}
...
...
example/Makefile
View file @
a891e6dd
include
../common.mk
.PHONY
:
all test clean
all
:
...
...
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