Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
54092d0a
Commit
54092d0a
authored
Dec 20, 2012
by
Davide D'Agostino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettify Rakefile
parent
e48ed9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Rakefile
Rakefile
+7
-8
No files found.
Rakefile
View file @
54092d0a
...
...
@@ -2,9 +2,9 @@
# basic build file for mruby
# compiler, linker (gcc), archiver, parser generator
CC
=
ENV
[
'CC'
]
||
'gcc'
LL
=
ENV
[
'LL'
]
||
'gcc'
AR
=
ENV
[
'AR'
]
||
'ar'
CC
=
ENV
[
'CC'
]
||
'gcc'
LL
=
ENV
[
'LL'
]
||
'gcc'
AR
=
ENV
[
'AR'
]
||
'ar'
YACC
=
ENV
[
'YACC'
]
||
'bison'
MAKE
=
ENV
[
'MAKE'
]
||
'make'
...
...
@@ -34,13 +34,12 @@ else # including 'debug'
CFLAGS
=
if
e
then
[
e
]
else
[
'-g'
,
'-O3'
]
end
end
LDFLAGS
=
[
ENV
[
'LDFLAGS'
]]
LIBS
=
[
ENV
[
'LIBS'
]
||
'-lm'
]
LIBS
=
[
ENV
[
'LIBS'
]
||
'-lm'
]
if
!
ENABLE_GEMS
CFLAGS
<<
"-DDISABLE_GEMS"
end
CFLAGS
<<
"-DDISABLE_GEMS"
unless
ENABLE_GEMS
CFLAGS
<<
"-Wall"
<<
"-Werror-implicit-function-declaration"
<<
"-I
#{
MRUBY_ROOT
}
/include"
if
ENV
[
'OS'
]
==
'Windows_NT'
MAKE_FLAGS
=
"--no-print-directory CC=
#{
CC
}
LL=
#{
LL
}
AR=
#{
AR
}
YACC=
#{
YACC
}
CFLAGS=
\"
#{
CFLAGS
.
join
(
' '
)
}
\"
LDFLAGS=
\"
#{
LDFLAGS
.
join
(
' '
)
}
\"
LIBS=
\"
#{
LIBS
.
join
(
' '
)
}
\"
ENABLE_GEMS=
\"
#{
ENABLE_GEMS
}
\"
MRUBY_ROOT=
\"
#{
MRUBY_ROOT
}
\"
"
else
...
...
@@ -48,7 +47,6 @@ else
end
##############################
# internal variables
...
...
@@ -59,6 +57,7 @@ CAT = ENV['CAT'] ||= 'cat'
##############################
# generic build targets, rules
if
ENABLE_GEMS
require
'./mrbgems/build_tasks'
end
...
...
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