--- Makefile.orig 2003-01-11 02:29:07.000000000 +0100 +++ Makefile 2003-01-11 02:31:17.000000000 +0100 @@ -22,10 +22,8 @@ # this is slightly more brain-dead, but works.. ifeq ($(shell if test -d $(KERNDIR)/build; then echo yes; fi),yes) KERNINC=$(KERNDIR)/build/include -MACHINC=$(KERNDIR)/build/arch/i386/mach-generic else KERNINC=/usr/src/linux/include -MACHINC=/usr/src/linux/arch/i386/mach-generic endif ifeq ($(shell if test -d $(KERNDIR)/kernel; then echo yes; fi),yes) @@ -60,9 +58,10 @@ # allow specification of alternate include file tree on command line and extra defines ifdef SYSINCLUDE INCLUDES += -I$(SYSINCLUDE) +INCLUDES += -I$(SYSINCLUDE)/asm/mach-default else INCLUDES += -I$(KERNINC) -INCLUDES += -I$(MACHINC) +INCLUDES += -I$(KERNINC)/asm/mach-default endif DEFINES+=$(EXTRA_DEFINES) @@ -138,7 +137,7 @@ fi nvidia.o: gcc-check $(LINUX_MODULE) $(RESMAN_KERNEL_MODULE) - ld -r -o $@ $(LINUX_MODULE) $(RESMAN_KERNEL_MODULE) + ld -d -r -o $@ $(LINUX_MODULE) $(RESMAN_KERNEL_MODULE) size $@ $(VERSION_HDR):