Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
49106794
Commit
49106794
authored
Apr 03, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge linux-isdn@linux-isdn.bkbits.net:linux-2.5.make
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make
parents
5e4b5079
c5825457
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
Rules.make
Rules.make
+18
-6
No files found.
Rules.make
View file @
49106794
...
...
@@ -126,11 +126,23 @@ endif
# for make >= 3.78 the following is cleaner:
# multi-used := $(foreach m,$(obj-y) $(obj-m), $(if $($(basename $(m))-objs), $(m)))
multi-used
:=
$(
sort
$(
foreach
m,
$
(
obj-y
)
$
(
obj-m
)
,
$(
patsubst
%,
$(m)
,
$
(
$(
basename
$(m)
)
-objs
))))
ld-multi-used
:=
$(
filter-out
$
(
list-multi
)
,
$
(
multi-used
))
ld-multi-objs
:=
$(
foreach
m,
$
(
ld-multi-used
)
,
$
(
$(
basename
$(m)
)
-objs
))
multi-used-y
:=
$(
sort
$(
foreach
m,
$
(
obj-y
)
,
$(
patsubst
%,
$(m)
,
$
(
$(
basename
$(m)
)
-objs
))))
multi-used-m
:=
$(
sort
$(
foreach
m,
$
(
obj-m
)
,
$(
patsubst
%,
$(m)
,
$
(
$(
basename
$(m)
)
-objs
))))
ld-multi-used-y
:=
$(
filter-out
$
(
list-multi
)
,
$
(
multi-used-y
))
ld-multi-used-m
:=
$(
filter-out
$
(
list-multi
)
,
$
(
multi-used-m
))
ld-multi-objs-y
:=
$(
foreach
m,
$
(
ld-multi-used-y
)
,
$
(
$(
basename
$(m)
)
-objs
))
ld-multi-objs-m
:=
$(
foreach
m,
$
(
ld-multi-used-m
)
,
$
(
$(
basename
$(m)
)
-objs
))
$(ld-multi-used-y)
:
%.o: $(ld-multi-objs-y)
rm
-f
$@
$(LD)
$(EXTRA_LDFLAGS)
-r
-o
$@
$(
filter
$
(
$(
basename
$@
)
-objs
)
,
$^
)
@
(
\
echo
'ifeq (
$(
strip
$(
subst
$(comma)
,:,
$(LD)
$(EXTRA_LDFLAGS)
$(
$(
basename
$@
)
-objs
))
,$
$(
strip
$
$(
subst
$
$(comma)
,:,$
$(LD)
$
$(EXTRA_LDFLAGS)
$$(
$(
basename
$@
)
-objs
))))
)'
;
\
echo
'FILES_FLAGS_UP_TO_DATE += $@'
;
\
echo
'endif'
\
)
>
$(
dir
$@
)
/.
$(
notdir
$@
)
.flags
$(ld-multi-used
)
:
%.o: $(ld-multi-objs
)
$(ld-multi-used
-m)
:
%.o: $(ld-multi-objs-m
)
rm
-f
$@
$(LD)
$(EXTRA_LDFLAGS)
-r
-o
$@
$(
filter
$
(
$(
basename
$@
)
-objs
)
,
$^
)
@
(
\
...
...
@@ -153,7 +165,7 @@ $(patsubst %,_sfdep_%,$(_FASTDEP_ALL_SUB_DIRS)):
$(MAKE)
-C
$(
patsubst
_sfdep_%,%,
$@
)
fastdep
endif
#
# A rule to make subdirectories
#
...
...
@@ -250,7 +262,7 @@ $(MODINCL)/$(MODPREFIX)%.ver: %.c
if
[
-r
$@
]
&&
cmp
-s
$@
$@
.tmp
;
then
echo
$@
is unchanged
;
rm
-f
$@
.tmp
;
\
else
echo mv
$@
.tmp
$@
;
mv
-f
$@
.tmp
$@
;
fi
;
\
fi
;
touch
$(MODINCL)
/
$(MODPREFIX)$*
.stamp
$(addprefix $(MODINCL)/$(MODPREFIX),$(export-objs
:
.o=.ver)): $(TOPDIR)/include/linux/autoconf.h
# updates .ver files but not modversions.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment