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
7fda910b
Commit
7fda910b
authored
Nov 14, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
9bb82966
0494c4eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
scripts/Makefile.build
scripts/Makefile.build
+14
-6
No files found.
scripts/Makefile.build
View file @
7fda910b
...
@@ -53,12 +53,20 @@ __build: $(if $(KBUILD_BUILTIN),$(O_TARGET) $(L_TARGET) $(EXTRA_TARGETS)) \
...
@@ -53,12 +53,20 @@ __build: $(if $(KBUILD_BUILTIN),$(O_TARGET) $(L_TARGET) $(EXTRA_TARGETS)) \
# Default is built-in, unless we know otherwise
# Default is built-in, unless we know otherwise
modkern_cflags
:=
$(CFLAGS_KERNEL)
modkern_cflags
:=
$(CFLAGS_KERNEL)
quiet_modtag
:=
$(empty)
$(empty)
$(real-objs-m)
:
modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m)
:
modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m
:
.o=.i) : modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m
:
.o=.i) : modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m
:
.o=.s) : modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m
:
.o=.s) : modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m
:
.o=.lst): modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m
:
.o=.lst): modkern_cflags := $(CFLAGS_MODULE)
$(real-objs-m)
:
quiet_modtag := [M]
$(real-objs-m
:
.o=.i) : quiet_modtag := [M]
$(real-objs-m
:
.o=.s) : quiet_modtag := [M]
$(real-objs-m
:
.o=.lst): quiet_modtag := [M]
$(obj-m)
:
quiet_modtag := [M]
$(export-objs)
:
export_flags := $(EXPORT_FLAGS)
$(export-objs)
:
export_flags := $(EXPORT_FLAGS)
$(export-objs
:
.o=.i) : export_flags := $(EXPORT_FLAGS)
$(export-objs
:
.o=.i) : export_flags := $(EXPORT_FLAGS)
$(export-objs
:
.o=.s) : export_flags := $(EXPORT_FLAGS)
$(export-objs
:
.o=.s) : export_flags := $(EXPORT_FLAGS)
...
@@ -76,19 +84,19 @@ $(multi-objs-y:.o=.i) : modname = $(modname-multi)
...
@@ -76,19 +84,19 @@ $(multi-objs-y:.o=.i) : modname = $(modname-multi)
$(multi-objs-y
:
.o=.s) : modname = $(modname-multi)
$(multi-objs-y
:
.o=.s) : modname = $(modname-multi)
$(multi-objs-y
:
.o=.lst) : modname = $(modname-multi)
$(multi-objs-y
:
.o=.lst) : modname = $(modname-multi)
quiet_cmd_cc_s_c
=
CC
$@
quiet_cmd_cc_s_c
=
CC
$(quiet_modtag)
$@
cmd_cc_s_c
=
$(CC)
$(c_flags)
-S
-o
$@
$<
cmd_cc_s_c
=
$(CC)
$(c_flags)
-S
-o
$@
$<
%.s
:
%.c FORCE
%.s
:
%.c FORCE
$(
call
if_changed_dep,cc_s_c
)
$(
call
if_changed_dep,cc_s_c
)
quiet_cmd_cc_i_c
=
CPP
$@
quiet_cmd_cc_i_c
=
CPP
$(quiet_modtag)
$@
cmd_cc_i_c
=
$(CPP)
$(c_flags)
-o
$@
$<
cmd_cc_i_c
=
$(CPP)
$(c_flags)
-o
$@
$<
%.i
:
%.c FORCE
%.i
:
%.c FORCE
$(
call
if_changed_dep,cc_i_c
)
$(
call
if_changed_dep,cc_i_c
)
quiet_cmd_cc_o_c
=
CC
$@
quiet_cmd_cc_o_c
=
CC
$(quiet_modtag)
$@
cmd_cc_o_c
=
$(CC)
$(c_flags)
-c
-o
$@
$<
cmd_cc_o_c
=
$(CC)
$(c_flags)
-c
-o
$@
$<
%.o
:
%.c FORCE
%.o
:
%.c FORCE
...
@@ -111,13 +119,13 @@ $(real-objs-m:.o=.s): modkern_aflags := $(AFLAGS_MODULE)
...
@@ -111,13 +119,13 @@ $(real-objs-m:.o=.s): modkern_aflags := $(AFLAGS_MODULE)
a_flags
=
-Wp
,-MD,
$(depfile)
$(AFLAGS)
$(NOSTDINC_FLAGS)
\
a_flags
=
-Wp
,-MD,
$(depfile)
$(AFLAGS)
$(NOSTDINC_FLAGS)
\
$(modkern_aflags)
$(EXTRA_AFLAGS)
$
(
AFLAGS_
$
(
*
F
)
.o
)
$(modkern_aflags)
$(EXTRA_AFLAGS)
$
(
AFLAGS_
$
(
*
F
)
.o
)
quiet_cmd_as_s_S
=
CPP
$@
quiet_cmd_as_s_S
=
CPP
$(quiet_modtag)
$@
cmd_as_s_S
=
$(CPP)
$(a_flags)
-o
$@
$<
cmd_as_s_S
=
$(CPP)
$(a_flags)
-o
$@
$<
%.s
:
%.S FORCE
%.s
:
%.S FORCE
$(
call
if_changed_dep,as_s_S
)
$(
call
if_changed_dep,as_s_S
)
quiet_cmd_as_o_S
=
AS
$@
quiet_cmd_as_o_S
=
AS
$(quiet_modtag)
$@
cmd_as_o_S
=
$(CC)
$(a_flags)
-c
-o
$@
$<
cmd_as_o_S
=
$(CC)
$(a_flags)
-c
-o
$@
$<
%.o
:
%.S FORCE
%.o
:
%.S FORCE
...
@@ -164,7 +172,7 @@ endif
...
@@ -164,7 +172,7 @@ endif
# Rule to link composite objects
# Rule to link composite objects
#
#
quiet_cmd_link_multi
=
LD
$@
quiet_cmd_link_multi
=
LD
$(quiet_modtag)
$@
cmd_link_multi
=
$(LD)
$(LDFLAGS)
$(EXTRA_LDFLAGS)
-r
-o
$@
$(
filter
$(
addprefix
$(obj)
/,
$
(
$(
subst
$(obj)
/,,
$
(
@:.o
=
-objs
)))
$
(
$(
subst
$(obj)
/,,
$
(
@:.o
=
-y
))))
,
$^
)
cmd_link_multi
=
$(LD)
$(LDFLAGS)
$(EXTRA_LDFLAGS)
-r
-o
$@
$(
filter
$(
addprefix
$(obj)
/,
$
(
$(
subst
$(obj)
/,,
$
(
@:.o
=
-objs
)))
$
(
$(
subst
$(obj)
/,,
$
(
@:.o
=
-y
))))
,
$^
)
# We would rather have a list of rules like
# We would rather have a list of rules like
...
...
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