Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
caesr-pub
systemc-clang
Commits
3e32ffbc
Commit
3e32ffbc
authored
Aug 07, 2019
by
rmrf
Browse files
Update Makefile.systemc build
parent
971e3ded
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Makefile.systemc
Makefile.systemc
+4
-2
driver-tooling.cpp
driver-tooling.cpp
+4
-0
No files found.
Makefile.systemc
View file @
3e32ffbc
...
...
@@ -9,7 +9,9 @@ SYSTEMC ?=
SYSTEMC_HOME
?=
$(SYSTEMC)
TARGET_ARCH
?=
linux64
SYSTEMC_INC_DIR
=
$(SYSTEMC_HOME)
/include
LLVM_BUILD_DIR
?=
SYSTEMC_CLANG_SRC
?=
/home/twiga/code/systemc-clang
SYSTEMC_INC_DIR
=
$(SYSTEMC_HOME)
/include
SYSTEMC_LIB_DIR
=
$(SYSTEMC_HOME)
/lib-
$(TARGET_ARCH)
# LIBTOOL Setting
...
...
@@ -23,7 +25,7 @@ LD = g++
FLAGS
=
-g
-Wall
-pedantic
-Wno-long-long
\
-DSC_INCLUDE_DYNAMIC_PROCESSES
-fpermissive
\
-I
$(SYSTEMC_INC_DIR)
-I
$(SYSTEMC_INC_DIR)
-I
$(SYSTEMC_CLANG_SRC)
/src
-I
$(LLVM_BUILD_DIR)
/include
LDFLAGS
=
-L
$(SYSTEMC_LIB_DIR)
-lsystemc
-lm
############################################################################
...
...
driver-tooling.cpp
View file @
3e32ffbc
...
...
@@ -9,6 +9,10 @@ using namespace std;
//using namespace clang::tooling;
int
main
(
int
argc
,
const
char
**
argv
)
{
cout
<<
"args: "
<<
argc
<<
endl
;
for
(
int
i
=
0
;
i
<
argc
-
1
;
i
++
)
{
cout
<<
"argv["
<<
i
<<
"]: "
<<
argv
[
i
]
<<
endl
;
}
PluginAction
<
SystemCClang
>
scc
(
argc
,
argv
);
return
0
;
}
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