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
9d8f731d
Commit
9d8f731d
authored
Oct 03, 2003
by
Sam Ravnborg
Browse files
Options
Browse Files
Download
Plain Diff
Merge mars.ravnborg.org:/home/sam/bk/linux-2.6
into mars.ravnborg.org:/home/sam/bk/kbuild
parents
d302b497
236eb452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
Makefile
Makefile
+22
-15
No files found.
Makefile
View file @
9d8f731d
...
@@ -37,7 +37,7 @@ ifdef V
...
@@ -37,7 +37,7 @@ ifdef V
endif
endif
endif
endif
ifndef
KBUILD_VERBOSE
ifndef
KBUILD_VERBOSE
KBUILD_VERBOSE
=
0
KBUILD_VERBOSE
=
0
endif
endif
# Call sparse as part of compilation of C files
# Call sparse as part of compilation of C files
...
@@ -79,16 +79,24 @@ ifdef O
...
@@ -79,16 +79,24 @@ ifdef O
endif
endif
endif
endif
# That's our default target when none is given on the command line
.PHONY
:
all
all
:
ifneq
($(KBUILD_OUTPUT),)
ifneq
($(KBUILD_OUTPUT),)
# Invoke a second make in the output directory, passing relevant variables
# Invoke a second make in the output directory, passing relevant variables
KBUILD_OUTPUT
:=
$(
shell
cd
$(KBUILD_OUTPUT)
;
/bin/pwd
)
# check that the output directory actually exists
saved-output
:=
$(KBUILD_OUTPUT)
KBUILD_OUTPUT
:=
$(
shell
cd
$(KBUILD_OUTPUT)
&&
/bin/pwd
)
$(if
$(wildcard
$(KBUILD_OUTPUT)),,
\
$(error
output
directory
"$(saved-output)"
does
not
exist))
.PHONY
:
$(MAKECMDGOALS)
all
.PHONY
:
$(MAKECMDGOALS)
$(
MAKECMDGOALS
) all
:
$(
filter-out all,$(MAKECMDGOALS)
) all
:
$(
if
$(KBUILD_VERBOSE:1=)
,@
)
$(MAKE)
-C
$(KBUILD_OUTPUT)
\
$(
if
$(KBUILD_VERBOSE:1=)
,@
)
$(MAKE)
-C
$(KBUILD_OUTPUT)
\
KBUILD_SRC
=
$(CURDIR)
KBUILD_VERBOSE
=
$(KBUILD_VERBOSE)
\
KBUILD_SRC
=
$(CURDIR)
KBUILD_VERBOSE
=
$(KBUILD_VERBOSE)
\
KBUILD_CHECK
=
$(KBUILD_CHECK)
-f
$(CURDIR)
/Makefile
$
(MAKECMDGOALS)
KBUILD_CHECK
=
$(KBUILD_CHECK)
-f
$(CURDIR)
/Makefile
$
@
# Leave processing to above invocation of make
# Leave processing to above invocation of make
skip-makefile
:=
1
skip-makefile
:=
1
...
@@ -156,13 +164,6 @@ HOSTCXX = g++
...
@@ -156,13 +164,6 @@ HOSTCXX = g++
HOSTCFLAGS
=
-Wall
-Wstrict-prototypes
-O2
-fomit-frame-pointer
HOSTCFLAGS
=
-Wall
-Wstrict-prototypes
-O2
-fomit-frame-pointer
HOSTCXXFLAGS
=
-O2
HOSTCXXFLAGS
=
-O2
# That's our default target when none is given on the command line
# Note that 'modules' will be added as a prerequisite as well,
# in the CONFIG_MODULES part below
all
:
vmlinux
# Decide whether to build built-in, modular, or both.
# Decide whether to build built-in, modular, or both.
# Normally, just do built-in.
# Normally, just do built-in.
...
@@ -366,6 +367,12 @@ else
...
@@ -366,6 +367,12 @@ else
# Build targets only - this includes vmlinux, arch specific targets, clean
# Build targets only - this includes vmlinux, arch specific targets, clean
# targets and others. In general all targets except *config targets.
# targets and others. In general all targets except *config targets.
# That's our default target when none is given on the command line
# Note that 'modules' will be added as a prerequisite as well,
# in the CONFIG_MODULES part below
all
:
vmlinux
# Objects we will link into vmlinux / subdirs we need to visit
# Objects we will link into vmlinux / subdirs we need to visit
init-y
:=
init/
init-y
:=
init/
drivers-y
:=
drivers/ sound/
drivers-y
:=
drivers/ sound/
...
@@ -753,7 +760,7 @@ MRPROPER_FILES += \
...
@@ -753,7 +760,7 @@ MRPROPER_FILES += \
.menuconfig.log
\
.menuconfig.log
\
include/asm
\
include/asm
\
.hdepend include/linux/modversions.h
\
.hdepend include/linux/modversions.h
\
tags TAGS cscope
.out
kernel.spec
\
tags TAGS cscope
*
kernel.spec
\
.tmp
*
.tmp
*
# Directories removed with 'make mrproper'
# Directories removed with 'make mrproper'
...
@@ -877,7 +884,7 @@ help:
...
@@ -877,7 +884,7 @@ help:
@
echo
' mrproper - remove all generated files + config + various backup files'
@
echo
' mrproper - remove all generated files + config + various backup files'
@
echo
''
@
echo
''
@
echo
'Configuration targets:'
@
echo
'Configuration targets:'
@
$(MAKE)
-f
scripts/kconfig/Makefile
help
@
$(MAKE)
-f
$(srctree)
/
scripts/kconfig/Makefile
help
@
echo
''
@
echo
''
@
echo
'Other generic targets:'
@
echo
'Other generic targets:'
@
echo
' all - Build all targets marked with [*]'
@
echo
' all - Build all targets marked with [*]'
...
@@ -890,7 +897,7 @@ help:
...
@@ -890,7 +897,7 @@ help:
@
echo
' tags/TAGS - Generate tags file for editors'
@
echo
' tags/TAGS - Generate tags file for editors'
@
echo
''
@
echo
''
@
echo
'Documentation targets:'
@
echo
'Documentation targets:'
@
$(MAKE)
-f
Documentation/DocBook/Makefile dochelp
@
$(MAKE)
-f
$(srctree)
/
Documentation/DocBook/Makefile dochelp
@
echo
''
@
echo
''
@
echo
'Architecture specific targets (
$(ARCH)
):'
@
echo
'Architecture specific targets (
$(ARCH)
):'
@
$(
if
$(archhelp)
,
$(archhelp)
,
\
@
$(
if
$(archhelp)
,
$(archhelp)
,
\
...
...
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