Ming Zhang wrote: > use single KERNELSRC from one makefile. Nice thanks! > > > Ming > > > > ------------------------------------------------------------------------ > > Index: kernel/Makefile > =================================================================== > --- kernel/Makefile (revision 76) > +++ kernel/Makefile (working copy) > @@ -11,10 +11,6 @@ > obj-m += tgt_vsd.o tgt_scsi.o > else > > -ifeq ($(KERNELSRC),) > - KERNELSRC ?= /lib/modules/$(shell uname -r)/build > -endif > - > PWD := $(shell pwd) > > default: > Index: iscsi/Makefile > =================================================================== > --- iscsi/Makefile (revision 76) > +++ iscsi/Makefile (working copy) > @@ -7,14 +7,8 @@ > # > # Note 2! The CFLAGS definitions are now in the main makefile. > > -#export KERNELSRC := /usr/src/linux > - > SUBDIRS := $(shell pwd) > > -ifeq ($(KERNELSRC),) > - KERNELSRC ?= /lib/modules/$(shell uname -r)/build > -endif > - > all: progs mods > > mods: > Index: Makefile > =================================================================== > --- Makefile (revision 76) > +++ Makefile (working copy) > @@ -1,3 +1,11 @@ > +#KERNELSRC := /usr/src/linux > + > +ifeq ($(KERNELSRC),) > + KERNELSRC ?= /lib/modules/$(shell uname -r)/build > +endif > + > +export KERNELSRC > + > all: > make -C usr > make -C kernel |