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
ae137dbc
Commit
ae137dbc
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for cross compiled openlibm
parent
d9e4622f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+22
-10
22 additions, 10 deletions
Makefile
with
22 additions
and
10 deletions
Makefile
+
22
−
10
View file @
ae137dbc
TARGET
?=
BUILD
=
target/debug
ifneq
($(TARGET),)
BUILD
=
target/
$(
TARGET
)
/debug
CARGOFLAGS
+=
"--target=
$(
TARGET
)
"
CC
=
$(
TARGET
)
-gcc
endif
.PHONY
:
all clean fmt test
.PHONY
:
all clean fmt test
all
:
openlibm/libopenlibm.a target/debug/libc.a target/debug/libcrt0.a
all
:
$(BUILD)/libc.a $(BUILD)/libcrt0.a $(BUILD)/openlibm/libopenlibm.a
cargo build
clean
:
clean
:
cargo clean
cargo clean
make
-C
openlibm clean
make
-C
tests clean
make
-C
tests clean
fmt
:
fmt
:
./fmt.sh
./fmt.sh
test
:
openlibm/libopenlibm.a
test
:
all
make
-C
tests run
make
-C
tests run
target/debug/libc.a
:
$(BUILD)/libc.a
:
cargo build
cargo build
$(
CARGOFLAGS
)
$(BUILD)/libcrt0.a
:
cargo build
--manifest-path
src/crt0/Cargo.toml
$(
CARGOFLAGS
)
target/debug/libcrt0.a
:
$(BUILD)/openlibm
:
openlibm
cargo build
--manifest-path
src/crt0/Cargo.toml
rm
-rf
$@
$@
.partial
cp
-r
$<
$@
.partial
mv
$@
.partial
$@
openlibm/libopenlibm.a
:
$(BUILD)/
openlibm/libopenlibm.a
:
$(BUILD)/openlibm
CFLAGS
=
-fno-stack-protector
make
-C
openlibm
libopenlibm.a
CC
=
$(
CC
)
CFLAGS
=
-fno-stack-protector
make
-C
$<
libopenlibm.a
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