I want to distribute my make environment into several sub-dirs. These are modules to the kernel, but all the sub-dirs will be out-of-stream builds. I was attempting to mimic the way the Linux kernel build works, but something is seriously missing from these files. The main directory make file looks something like this:One of the sub-dir Makefiles looks like this:Code:ifeq ($(KERNELRELEASE), ) KERNELDIR ?= ../../../kernel/linux-2.6.24.5/linux-2.6.24.5 ARCH ?= arm CROSS_COMPILE ?= arm-unknown-linux-gnueabi- PWD := $(shell pwd) modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules else EXTRA_CFLAGS += -I$(PWD)/include obj-y += common/ obj-y += convert/ obj-y += drivers/ endifSo, what am I doing wrong? Any ideas?Code:obj-y += safe_inc.o obj-y += callback.o safe_inc.o