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
ba6479bf
Commit
ba6479bf
authored
5 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
BACKPORT: relocate wmake binaries into project platforms/tools (
#1647
)
- can aid when creating source-only or binary-only packages
parent
00d50349
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
wmake/rules/General/general
+1
-1
1 addition, 1 deletion
wmake/rules/General/general
wmake/src/Allmake
+21
-6
21 additions, 6 deletions
wmake/src/Allmake
wmake/src/Makefile
+8
-5
8 additions, 5 deletions
wmake/src/Makefile
with
30 additions
and
12 deletions
wmake/rules/General/general
+
1
−
1
View file @
ba6479bf
...
@@ -17,7 +17,7 @@ GLIB_LIBS =
...
@@ -17,7 +17,7 @@ GLIB_LIBS =
COMPILER_TYPE
=
$(
shell
echo
"
$(
WM_COMPILER
)
"
|
sed
-e
's/[0-9].*//'
)
COMPILER_TYPE
=
$(
shell
echo
"
$(
WM_COMPILER
)
"
|
sed
-e
's/[0-9].*//'
)
DEFAULT_RULES
=
$(
WM_DIR
)
/rules/
$(
WM_ARCH
)$(
COMPILER_TYPE
)
DEFAULT_RULES
=
$(
WM_DIR
)
/rules/
$(
WM_ARCH
)$(
COMPILER_TYPE
)
RULES
=
$(
WM_DIR
)
/rules/
$(
WM_ARCH
)$(
WM_COMPILER
)
RULES
=
$(
WM_DIR
)
/rules/
$(
WM_ARCH
)$(
WM_COMPILER
)
WMAKE_BIN
=
$(
WM_DIR
)
/platforms/
$(
WM_ARCH
)$(
WM_COMPILER
)
WMAKE_BIN
=
$(
WM_
PROJECT_
DIR
)
/platforms/
tools/
$(
WM_ARCH
)$(
WM_COMPILER
)
ifeq
($(WM_SCHEDULER),)
ifeq
($(WM_SCHEDULER),)
AND
=
&&
AND
=
&&
...
...
This diff is collapsed.
Click to expand it.
wmake/src/Allmake
+
21
−
6
View file @
ba6479bf
#!/bin/sh
#!/bin/sh
cd
"
${
0
%/*
}
"
||
exit
1
#
Run from t
his directory
cd
"
${
0
%/*
}
"
||
exit
#
T
his directory
(/path/project/wmake/src)
if
[
-z
"
$WM_DIR
"
]
# Require WM_DIR
if
[
-z
"
$WM_DIR
"
]
# Require WM_DIR
(/path/project/wmake)
then
then
WM_DIR
=
"
$(
\c
d
$(
dirname
$0
)
/..
&&
\
p
wd
-L
)
"
WM_DIR
=
"
$(
dirname
"
$(
pwd
-L
)
"
)
"
export
WM_DIR
export
WM_DIR
fi
fi
if
[
-z
"
$WM_PROJECT_DIR
"
]
# Expect WM_PROJECT_DIR (/path/project)
then
echo
"Warning (
${
0
##*/
}
) : No WM_PROJECT_DIR set"
1>&2
WM_PROJECT_DIR
=
"
${
WM_DIR
%/*
}
"
export
WM_PROJECT_DIR
fi
if
[
-z
"
$WM_ARCH
"
]
||
[
-z
"
$WM_COMPILER
"
]
then
echo
"Error (
${
0
##*/
}
) : No WM_ARCH or WM_COMPILER set"
echo
" Check your OpenFOAM environment and installation"
exit
1
fi
case
"
$WM_COMPILER
"
in
case
"
$WM_COMPILER
"
in
Mingw
*
)
Mingw
*
)
# Host wmake toolchain with system gcc (when cross-compiling)
# Host wmake toolchain with system gcc (when cross-compiling)
make
\
make
\
WM_COMPILER
=
Gcc
WM_COMPILER_TYPE
=
system
\
WM_COMPILER
=
Gcc
WM_COMPILER_TYPE
=
system
\
WMAKE_BIN
=
"
${
WM_DIR
}
/platforms/
${
WM_ARCH
}${
WM_COMPILER
}
"
WMAKE_BIN
=
"
${
WM_PROJECT_DIR
}
/platforms/tools/
${
WM_ARCH
}${
WM_COMPILER
}
"
\
"
$@
"
;;
;;
*
)
*
)
#
Compile
wmake toolchain
#
Regular
wmake toolchain
make
make
"
$@
"
;;
;;
esac
esac
...
...
This diff is collapsed.
Click to expand it.
wmake/src/Makefile
+
8
−
5
View file @
ba6479bf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# \\/ M anipulation |
# \\/ M anipulation |
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Copyright (C) 2011-2016 OpenFOAM Foundation
# Copyright (C) 2011-2016 OpenFOAM Foundation
# Copyright (C) 2017-20
19
OpenCFD Ltd.
# Copyright (C) 2017-20
20
OpenCFD Ltd.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# License
# License
# This file is part of OpenFOAM.
# This file is part of OpenFOAM.
...
@@ -63,10 +63,13 @@ archTarget := $(shell basename $(WMAKE_BIN))
...
@@ -63,10 +63,13 @@ archTarget := $(shell basename $(WMAKE_BIN))
# Targets
# Targets
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
.PHONY
:
all clean message
.PHONY
:
all clean message
old
all
:
$(WMAKE_BIN)/wmkdepend$(EXT_EXE) message
all
:
$(WMAKE_BIN)/wmkdepend$(EXT_EXE) message
# Flex-based processing
old
:
$(WMAKE_BIN)/wmkdep$(EXT_EXE)
message
:
message
:
ifneq
($(archHost),$(archTarget))
ifneq
($(archHost),$(archTarget))
@
echo
"built wmake-bin (
$(
archTarget
)
) for
$(
archHost
)
host"
@
echo
"built wmake-bin (
$(
archTarget
)
) for
$(
archHost
)
host"
...
@@ -76,14 +79,14 @@ endif
...
@@ -76,14 +79,14 @@ endif
clean
:
clean
:
@
echo
"clean wmake-bin (
$(
archTarget
)
)"
@
echo
"clean wmake-bin (
$(
archTarget
)
)"
@
rm
-rf
$(
WMAKE_BIN
)
2>/dev/null
@
rm
-rf
$(
WMAKE_BIN
)
@
rmdir
$(
shell
dirname
$(
WMAKE_BIN
))
2>/dev/null
||
true
@
rmdir
$(
shell
dirname
$(
WMAKE_BIN
))
2>/dev/null
||
true
$(WMAKE_BIN)/wmkdep$(EXT_EXE)
:
wmkdep.l
$(WMAKE_BIN)/wmkdep$(EXT_EXE)
:
wmkdep.l
@
mkdir
-p
$(
WMAKE_BIN
)
@
mkdir
-p
$(
WMAKE_BIN
)
$(
call QUIET_MESSAGE,flex,
$(
<F
))
$(
call QUIET_MESSAGE,flex,
$(
<F
))
$E
flex
-o
$@
.c
$(
<F
)
&&
$(
cc
)
$(
cFLAGS
)
$@
.c
-o
$@
$E
flex
-o
$@
.c
$(
<F
)
&&
$(
cc
)
$(
cFLAGS
)
$@
.c
-o
$@
@
rm
-f
$@
.c
2>/dev/null
@
rm
-f
$@
.c
$(WMAKE_BIN)/wmkdepend$(EXT_EXE)
:
wmkdepend.cpp
$(WMAKE_BIN)/wmkdepend$(EXT_EXE)
:
wmkdepend.cpp
@
mkdir
-p
$(
WMAKE_BIN
)
@
mkdir
-p
$(
WMAKE_BIN
)
...
@@ -94,6 +97,6 @@ $(WMAKE_BIN)/wmkdepend$(EXT_EXE): wmkdepend.cpp
...
@@ -94,6 +97,6 @@ $(WMAKE_BIN)/wmkdepend$(EXT_EXE): wmkdepend.cpp
# @mkdir -p $(WMAKE_BIN)
# @mkdir -p $(WMAKE_BIN)
# $(call QUIET_MESSAGE,ragel,$(<F))
# $(call QUIET_MESSAGE,ragel,$(<F))
# $E ragel -G2 -o $@.cpp $(<F) && $(CC) $(c++FLAGS) $(c++LESSWARN) $@.cpp -o $@
# $E ragel -G2 -o $@.cpp $(<F) && $(CC) $(c++FLAGS) $(c++LESSWARN) $@.cpp -o $@
# @rm -f $@.cpp
2>/dev/null
# @rm -f $@.cpp
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
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