Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Anders Lindh Olsson
e3-require
Commits
30c7c010
Commit
30c7c010
authored
9 years ago
by
Dirk Zimoch
Browse files
Options
Downloads
Patches
Plain Diff
support for manual dependencies
parent
9ffd34e9
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
App/tools/driver.makefile
+13
-3
13 additions, 3 deletions
App/tools/driver.makefile
with
13 additions
and
3 deletions
App/tools/driver.makefile
+
13
−
3
View file @
30c7c010
...
...
@@ -162,7 +162,7 @@ help:
clean
help
version
;
\
do
echo
" make
$$
target"
;
\
done
@
echo
"Makefile variables:
(defaults)"
@
echo
"Makefile variables:(defaults)
[comment]
"
@
echo
" EPICS_VERSIONS (
${
DEFAULT_EPICS_VERSIONS
}
)"
@
echo
" MODULE (
${
PRJ
}
) [from current directory name]"
@
echo
" PROJECT [older name for MODULE]"
...
...
@@ -174,7 +174,7 @@ help:
@
echo
" EXCLUDE_VERSIONS () [versions not to build, e.g. 3.14]"
@
echo
" EXCLUDE_ARCHS () [target architectures not to build]"
@
echo
" ARCH_FILTER () [target architectures to build, e.g. SL6%]"
@
echo
" BUILDCLASSES (vxWorks) [other choices: Linux]"
@
echo
" BUILDCLASSES (vxWorks) [other choices: Linux]"
# "make version" shows the version and why it is how it is.
version
:
${IGNOREFILES}
...
...
@@ -425,6 +425,9 @@ install build debug: O.${EPICSVERSION}_Common O.${EPICSVERSION}_${T_A}
endif
REQ
=
${
REQUIRED
}
${
REQUIRED_
${
OS_CLASS
}}
${
REQUIRED_
${
T_A
}}
${
REQUIRED_
${
EPICS_BASETYPE
}}
${
REQUIRED_
${
EPICSVERSION
}}
export
REQ
else
# in O.*
## RUN 4
# in O.* directory
...
...
@@ -456,6 +459,12 @@ endef
# The tricky part is to sort versions numerically. Make can't but ls -v can. Only accept numerical versions.
$(
eval
$(
foreach m,
$(
filter-out %/
$(
PRJ
)
,
$(
wildcard
${
EPICS_MODULES
}
/
*
))
,
$(
call ADD_FOREIGN_INCLUDES,
$m
)))
# manually required modules
define
ADD_MANUAL_DEPENDENCIES
$(eval $(notdir $(1))_VERSION
:
= $(or $(patsubst $(1)/%/R${EPICSVERSION}
,
%
,
$(lastword $(shell ls -dv $(1)/*.*.*/R${EPICSVERSION} 2>/dev/null)))
,
$(error Manually required module $(notdir $(1)) not found)))
endef
$(
eval
$(
foreach m,
${
REQ
}
,
$(
call ADD_MANUAL_DEPENDENCIES,
${
EPICS_MODULES
}
/
$m
)))
debug
:
@
echo
"BUILDCLASSES =
${
BUILDCLASSES
}
"
@
echo
"OS_CLASS =
${
OS_CLASS
}
"
...
...
@@ -848,11 +857,12 @@ ${EXPORTFILE}: $(filter-out $(basename ${EXPORTFILE})$(OBJ),${LIBOBJS})
$(
NM
)
$^
${
BASELIBS:%
=
${
EPICS_BASE
}
/lib/
${
T_A
}
/
${
LIB_PREFIX
}
%
$(
LSUFFIX
)}
${
CORELIB
}
|
awk
'
$(
makexportfile
)
'
>
$@
# Create dependency file for recursive requires
${DEPFILE}
:
${LIBOBJS}
${DEPFILE}
:
${LIBOBJS}
$(USERMAKEFILE)
@
echo
"Collecting dependencies"
$(
RM
)
$@
@
echo
"# Generated file. Do not edit."
>
$@
cat
*
.d |
sed
's/ /\n/g'
|
sed
-n
's%
$(
EPICS_MODULES
)
/*\([^/]*\)/\([^/]*\)/.*%\1 \2+%p'
|sort
-u
>>
$@
$(
foreach m,
${
REQ
}
,echo
"
$m
$(
basename
${
$m_VERSION
})
+"
>>
$@
;)
$(BUILDRULE)
$(RM)
MakefileInclude
...
...
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