Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
124e118f
Commit
124e118f
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Fix makefile
parent
ed00ddfb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+9
-8
9 additions, 8 deletions
Makefile
include.sh
+2
-2
2 additions, 2 deletions
include.sh
with
11 additions
and
10 deletions
Makefile
+
9
−
8
View file @
124e118f
...
...
@@ -20,7 +20,7 @@ SRC=\
src/
*
/
*
/
*
\
src/
*
/
*
/
*
/
*
.PHONY
:
all clean fmt install libc libm test
.PHONY
:
all clean fmt
include
install libc libm test
all
:
| libc libm
...
...
@@ -45,18 +45,19 @@ install: all
cp
-rv
"openlibm/src"
/
*
.h
"
$(
DESTDIR
)
/include"
cp
-v
"
$(
BUILD
)
/openlibm/libopenlibm.a"
"
$(
DESTDIR
)
/lib/libm.a"
header
:
mkdir
-p
header
./header.sh
touch
header
libc
:
$(BUILD)/release/libc.a $(BUILD)/release/crt0.o
libc
:
$(BUILD)/include $(BUILD)/release/libc.a $(BUILD)/release/crt0.o
libm
:
$(BUILD)/openlibm/libopenlibm.a
test
:
all
make
-C
tests run
$(BUILD)/include
:
$(SRC)
rm
-rf
$@
$@
.partial
mkdir
-p
$@
.partial
./include.sh
$@
.partial
mv
$@
.partial
$@
$(BUILD)/debug/libc.a
:
$(SRC)
cargo build
$(
CARGOFLAGS
)
touch
$@
...
...
@@ -80,5 +81,5 @@ $(BUILD)/openlibm: openlibm
mv
$@
.partial
$@
touch
$@
$(BUILD)/openlibm/libopenlibm.a
:
$(BUILD)/openlibm
$(BUILD)/openlibm/libopenlibm.a
:
$(BUILD)/openlibm
$(BUILD)/include
make
CC
=
$(
CC
)
CPPFLAGS
=
"-fno-stack-protector -I
$(
shell pwd
)
/include -I
$(
shell pwd
)
/target/include"
-C
$<
libopenlibm.a
This diff is collapsed.
Click to expand it.
hea
de
r
.sh
→
inclu
de.sh
+
2
−
2
View file @
124e118f
...
...
@@ -2,7 +2,7 @@
set
-ex
hea
de
r
=
"
$(
realpath
header
)
"
inclu
de
=
"
$(
realpath
"
$1
"
)
"
cbindgen
=
"
$(
realpath
cbindgen
)
"
for
config
in
src/header/
*
/cbindgen.toml
...
...
@@ -11,6 +11,6 @@ do
name
=
"
$(
basename
"
$dir
"
)
"
pushd
"
$dir
"
cargo run
--release
--manifest-path
"
$cbindgen
/Cargo.toml"
--
\
-c
cbindgen.toml
-o
"
$
hea
de
r
/
$name
.h"
mod.rs
-c
cbindgen.toml
-o
"
$
inclu
de
/
$name
.h"
mod.rs
popd
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment