diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-08 08:17:37 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-08 08:17:37 -0500 |
| commit | 82ef5e24a19b2ea3906fa6846f5f51672e1d44c2 (patch) | |
| tree | c9e8924c1e892f4e908f23d80f52bf8064887e44 | |
| parent | 1b5dd0c2d0bd49b66c99cadac69ed50fbf85492e (diff) | |
| parent | ead51f68255aec615e8bc572f1588d38d38a1750 (diff) | |
Hand merged.
| -rw-r--r-- | Documentation/DocBook/Makefile | 1 | ||||
| -rw-r--r-- | Makefile | 20 | ||||
| -rw-r--r-- | Rules.make | 8 | ||||
| -rw-r--r-- | drivers/scsi/aacraid/Makefile | 5 | ||||
| -rw-r--r-- | init/Makefile | 2 | ||||
| -rw-r--r-- | scripts/fixdep.c | 10 |
6 files changed, 21 insertions, 25 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile index d871474cb04e..b55dd490332b 100644 --- a/Documentation/DocBook/Makefile +++ b/Documentation/DocBook/Makefile @@ -162,7 +162,6 @@ LOG := $(patsubst %.sgml, %.log, $(BOOKS)) OUT := $(patsubst %.sgml, %.out, $(BOOKS)) clean: - @rm -f core *~ @rm -f $(BOOKS) @rm -f $(DVI) $(AUX) $(TEX) $(LOG) $(OUT) @rm -f $(PNG-parportbook) $(EPS-parportbook) @@ -4,9 +4,9 @@ SUBLEVEL = 41 EXTRAVERSION = # *DOCUMENTATION* -# Too see a list of typical targets execute "make help" +# To 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 +# Comments in this file are 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 @@ -142,7 +142,7 @@ NM = $(CROSS_COMPILE)nm STRIP = $(CROSS_COMPILE)strip OBJCOPY = $(CROSS_COMPILE)objcopy OBJDUMP = $(CROSS_COMPILE)objdump -MAKEFILES = $(TOPDIR)/.config +MAKEFILES = .config GENKSYMS = /sbin/genksyms DEPMOD = /sbin/depmod KALLSYMS = /sbin/kallsyms @@ -387,17 +387,17 @@ targets += arch/$(ARCH)/vmlinux.lds.s # Single targets # --------------------------------------------------------------------------- -%.s: %.c FORCE +%.s: %.c scripts FORCE +@$(call descend,$(@D),$@) -%.i: %.c FORCE +%.i: %.c scripts FORCE +@$(call descend,$(@D),$@) -%.o: %.c FORCE +%.o: %.c scripts FORCE +@$(call descend,$(@D),$@) -%.lst: %.c FORCE +%.lst: %.c scripts FORCE +@$(call descend,$(@D),$@) -%.s: %.S FORCE +%.s: %.S scripts FORCE +@$(call descend,$(@D),$@) -%.o: %.S FORCE +%.o: %.S scripts FORCE +@$(call descend,$(@D),$@) # FIXME: The asm symlink changes when $(ARCH) changes. That's @@ -883,7 +883,7 @@ if_changed_dep = $(if $(strip $? $(filter-out FORCE $(wildcard $^),$^)\ @set -e; \ $(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))';) \ $(cmd_$(1)); \ - $(TOPDIR)/scripts/fixdep $(depfile) $@ $(TOPDIR) '$(cmd_$(1))' > $(@D)/.$(@F).tmp; \ + scripts/fixdep $(depfile) $@ '$(cmd_$(1))' > $(@D)/.$(@F).tmp; \ rm -f $(depfile); \ mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd) diff --git a/Rules.make b/Rules.make index 1b06db4c2b91..affdf72286ae 100644 --- a/Rules.make +++ b/Rules.make @@ -209,10 +209,10 @@ define rule_cc_ver_c $(if $($(quiet)cmd_cc_ver_c),echo ' $($(quiet)cmd_cc_ver_c)';) \ $(cmd_cc_ver_c); \ if [ ! -r $(depfile) ]; then exit 1; fi; \ - $(TOPDIR)/scripts/fixdep $(depfile) $@ $(TOPDIR) '$(cmd_cc_ver_c)' > $(@D)/.$(@F).tmp; \ + scripts/fixdep $(depfile) $@ '$(cmd_cc_ver_c)' > $(@D)/.$(@F).tmp; \ rm -f $(depfile); \ if [ ! -r $@ ] || cmp -s $@ $@.tmp; then \ - touch $(TOPDIR)/include/linux/modversions.h; \ + touch include/linux/modversions.h; \ fi; \ mv -f $@.tmp $@ mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd @@ -312,7 +312,7 @@ cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $< $(call if_changed_dep,cc_o_c) quiet_cmd_cc_lst_c = MKLST $(echo_target) -cmd_cc_lst_c = $(CC) $(c_flags) -g -c -o $*.o $< && $(TOPDIR)/scripts/makelst $*.o $(TOPDIR)/System.map $(OBJDUMP) > $@ +cmd_cc_lst_c = $(CC) $(c_flags) -g -c -o $*.o $< && sh scripts/makelst $*.o System.map $(OBJDUMP) > $@ %.lst: %.c FORCE $(call if_changed_dep,cc_lst_c) @@ -561,7 +561,7 @@ if_changed_dep = $(if $(strip $? $(filter-out FORCE $(wildcard $^),$^)\ @set -e; \ $(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))';) \ $(cmd_$(1)); \ - $(TOPDIR)/scripts/fixdep $(depfile) $@ $(TOPDIR) '$(cmd_$(1))' > $(@D)/.$(@F).tmp; \ + scripts/fixdep $(depfile) $@ '$(cmd_$(1))' > $(@D)/.$(@F).tmp; \ rm -f $(depfile); \ mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd) diff --git a/drivers/scsi/aacraid/Makefile b/drivers/scsi/aacraid/Makefile index 48a6295f6d1b..8d7d07095923 100644 --- a/drivers/scsi/aacraid/Makefile +++ b/drivers/scsi/aacraid/Makefile @@ -1,6 +1,5 @@ - -EXTRA_CFLAGS += -I$(TOPDIR)/drivers/scsi - +# Adaptec aacraid + obj-$(CONFIG_SCSI_AACRAID) := aacraid.o aacraid-objs := linit.o aachba.o commctrl.o comminit.o commsup.o \ diff --git a/init/Makefile b/init/Makefile index 90b477436bfd..6dbffbfb4b70 100644 --- a/init/Makefile +++ b/init/Makefile @@ -17,4 +17,4 @@ $(obj)/version.o: $(objtree)/include/linux/compile.h $(objtree)/include/linux/compile.h: FORCE @echo -n ' Generating $@' - @$(srctree)/scripts/mkcompile_h $@ "$(ARCH)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)" + @sh $(srctree)/scripts/mkcompile_h $@ "$(ARCH)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)" diff --git a/scripts/fixdep.c b/scripts/fixdep.c index 76a392090115..a14e0bfd326a 100644 --- a/scripts/fixdep.c +++ b/scripts/fixdep.c @@ -61,7 +61,7 @@ * * It is invoked as * - * fixdep <depfile> <target> <topdir> <cmdline> + * fixdep <depfile> <target> <cmdline> * * and will read the dependency file <depfile> * @@ -111,7 +111,6 @@ #define INT_NFIG ntohl(0x4e464947) #define INT_FIG_ ntohl(0x4649475f) -char *topdir; char *target; char *depfile; char *cmdline; @@ -119,7 +118,7 @@ char *cmdline; void usage(void) { - fprintf(stderr, "Usage: fixdep <depfile> <target> <topdir> <cmdline>\n"); + fprintf(stderr, "Usage: fixdep <depfile> <target> <cmdline>\n"); exit(1); } @@ -364,13 +363,12 @@ int main(int argc, char *argv[]) { traps(); - if (argc != 5) + if (argc != 4) usage(); depfile = argv[1]; target = argv[2]; - topdir = argv[3]; - cmdline = argv[4]; + cmdline = argv[3]; print_cmdline(); print_deps(); |
