Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Development
openfoam
Commits
b46992f6
Commit
b46992f6
authored
6 years ago
by
Mark OLESEN
Committed by
Andrew Heather
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
COMP: compile wmake toolchain for host when cross-compiling
parent
137130e4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wmake/src/Allmake
+11
-1
11 additions, 1 deletion
wmake/src/Allmake
wmake/src/Makefile
+13
-5
13 additions, 5 deletions
wmake/src/Makefile
with
24 additions
and
6 deletions
wmake/src/Allmake
+
11
−
1
View file @
b46992f6
...
...
@@ -7,6 +7,16 @@ then
export
WM_DIR
fi
make
# Compile tools for wmake
# Compile wmake toolchain
make
case
"
$WM_COMPILER
"
in
Mingw
*
)
# Host wmake toolchain with system gcc (when cross-compiling)
make
\
WM_COMPILER
=
Gcc
WM_COMPILER_TYPE
=
system
\
WMAKE_BIN
=
"
${
WM_DIR
}
/platforms/
${
WM_ARCH
}${
WM_COMPILER
}
"
;;
esac
#------------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
wmake/src/Makefile
+
13
−
5
View file @
b46992f6
...
...
@@ -54,19 +54,27 @@ WM_COMPILE_OPTION = Opt
GENERAL_RULES
=
$(
WM_DIR
)
/rules/General
include
$(GENERAL_RULES)/general
archHost
:=
$(
WM_ARCH
)$(
WM_COMPILER
)
archTarget
:=
$(
shell
basename
$(
WMAKE_BIN
))
#------------------------------------------------------------------------------
# Targets
#------------------------------------------------------------------------------
.PHONY
:
all clean
.PHONY
:
all clean message
all
:
$(WMAKE_BIN)/wmkdepend$(EXT_EXE) message
all
:
\
$(WMAKE_BIN)/wmkdepend$(EXT_EXE)
@
echo
"built wmake-bin for
$(
WM_ARCH
)$(
WM_COMPILER
)
"
message
:
ifneq
($(archHost),$(archTarget))
@
echo
"built wmake-bin (
$(
archTarget
)
) for
$(
archHost
)
host"
else
@
echo
"built wmake-bin (
$(
archTarget
)
)"
endif
clean
:
@
echo
"clean wmake-bin
for
$(
WM_ARCH
)$(
WM_COMPILER
)
"
@
echo
"clean wmake-bin
(
$(
archTarget
)
)"
@
rm
-rf
$(
WMAKE_BIN
)
2>/dev/null
@
rmdir
$(
shell
dirname
$(
WMAKE_BIN
))
2>/dev/null
||
true
...
...
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