From: James S. <jsi...@us...> - 2002-07-10 18:08:33
|
Update of /cvsroot/linuxconsole/ruby/linux In directory usw-pr-cvs1:/tmp/cvs-serv10580/linux Modified Files: Makefile Log Message: Syned to 2.5.25 Index: Makefile =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/Makefile,v retrieving revision 1.65 retrieving revision 1.66 diff -u -d -r1.65 -r1.66 --- Makefile 22 Jun 2002 17:50:57 -0000 1.65 +++ Makefile 10 Jul 2002 18:08:01 -0000 1.66 @@ -1,8 +1,14 @@ VERSION = 2 PATCHLEVEL = 5 -SUBLEVEL = 24 +SUBLEVEL = 25 EXTRAVERSION = -ruby +# *DOCUMENTATION* +# Too see a list of typical targets execute "make help" +# More info can be located in ./Documentation/kbuild +# Comments in this file is targeted only to the developer, do not +# expect to learn how to build the kernel reading this file. + # We are using a recursive build, so we need to do a little thinking # to get the ordering right. # @@ -140,16 +146,23 @@ CONFIG_SHELL TOPDIR HPATH HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \ CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS PERL -export CPPFLAGS EXPORT_FLAGS NOSTDINC_FLAGS +export CPPFLAGS EXPORT_FLAGS NOSTDINC_FLAGS OBJCOPYFLAGS export CFLAGS CFLAGS_KERNEL CFLAGS_MODULE export AFLAGS AFLAGS_KERNEL AFLAGS_MODULE +src := . +obj := . +srctree := $(TOPDIR) +objtree := $(TOPDIR) + +export srctree objtree + SUBDIRS := init kernel mm fs ipc lib drivers sound net noconfig_targets := xconfig menuconfig config oldconfig randconfig \ defconfig allyesconfig allnoconfig allmodconfig \ clean mrproper distclean \ - tags TAGS sgmldocs psdocs pdfdocs htmldocs \ + help tags TAGS sgmldocs psdocs pdfdocs htmldocs \ checkconfig checkhelp checkincludes ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) @@ -217,7 +230,7 @@ include arch/$(ARCH)/Makefile -export NETWORKS DRIVERS LIBS HEAD LDFLAGS LINKFLAGS MAKEBOOT ASFLAGS +export NETWORKS DRIVERS LIBS HEAD LDFLAGS MAKEBOOT ASFLAGS # boot target # --------------------------------------------------------------------------- @@ -238,7 +251,7 @@ vmlinux-objs := $(HEAD) $(INIT) $(CORE_FILES) $(LIBS) $(DRIVERS) $(NETWORKS) quiet_cmd_link_vmlinux = LD $@ -cmd_link_vmlinux = $(LD) $(LINKFLAGS) $(HEAD) $(INIT) \ +cmd_link_vmlinux = $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $(HEAD) $(INIT) \ --start-group \ $(CORE_FILES) \ $(LIBS) \ @@ -255,7 +268,7 @@ . scripts/mkversion > .tmpversion mv -f .tmpversion .version +$(MAKE) -C init - $(call cmd,cmd_link_vmlinux) + $(call cmd,link_vmlinux) $(cmd_link_vmlinux) echo 'cmd_$@ := $(cmd_link_vmlinux)' > $(@D)/.$(@F).cmd $(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map @@ -679,6 +692,43 @@ find $(SUBDIRS) init -name SCCS -prune -o -name BitKeeper -prune -o \ -name '*.[ch]' -print | xargs ctags $$CTAGSF -a +# Brief documentation of the typical targets used +# --------------------------------------------------------------------------- + +help: + @echo 'Cleaning targets:' + @echo ' clean - remove most generated files but keep the config' + @echo ' mrproper - remove all generated files including the config' + @echo ' distclean - mrproper + remove files generated by editors and patch' + @echo '' + @echo 'Configuration targets:' + @echo ' oldconfig - Update current config utilising a line-oriented program' + @echo ' menuconfig - Update current config utilising a menu based program' + @echo ' xconfig - Update current config utilising a X-based program' + @echo ' defconfig - New config with default answer to all options' + @echo ' allmodconfig - New config selecting modules when possible' + @echo ' allyesconfig - New config where all options are accepted with yes' + @echo ' allnoconfig - New minimal config' + @echo '' + @echo 'Other generic targets:' + @echo ' all - Build all targets marked with [*]' + @echo ' dep - Create module version information' + @echo '* vmlinux - Build the bare kernel' + @echo '* modules - Build all modules' + @echo ' dir/file.[ois]- Build specified target only' + @echo ' rpm - Build a kernel as an RPM package' + @echo ' tags/TAGS - Generate tags file for editors' + @echo '' + @echo 'Documentation targets:' + @$(MAKE) --no-print-directory -f Documentation/DocBook/Makefile dochelp + @echo '' + @echo 'Architecture specific targets ($(ARCH)):' + @$(MAKE) --no-print-directory -f arch/$(ARCH)/boot/Makefile archhelp + @echo '' + @echo 'Execute "make" or "make all" to build all targets marked with [*] ' + @echo 'For further info browse Documentation/kbuild/*' + + # Documentation targets # --------------------------------------------------------------------------- @@ -735,9 +785,9 @@ $(filter-out $(cmd_$(@F)),$(cmd_$(1)))),\ @$(rule_$(1))) -# If quiet is set, only print short version of rule +# If quiet is set, only print short version of command -cmd = @$(if $($(quiet)$(1)),echo ' $($(quiet)$(1))' &&) $($(1)) +cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1)) define update-if-changed if [ -r $@ ] && cmp -s $@ $@.tmp; then \ |