Whamcloud - gitweb
- make HEAD from b_post_cmd3
[fs/lustre-release.git] / build / autoMakefile.am.toplevel
index d1030ff..f272ed8 100644 (file)
@@ -29,7 +29,7 @@ sources: all-sources
 
 all-sources:
        for dir in $(SOURCES_SUBDIRS) ; do \
-               $(MAKE) sources -C $$dir ; \
+               $(MAKE) sources -C $$dir || exit $$? ; \
        done
 
 if LINUX
@@ -51,6 +51,9 @@ endif # !LINUX25
 modules: $(DEP) all-sources
        $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ)                \
        -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
+        LINUXINCLUDE='$(EXTRA_LNET_INCLUDE) -Iinclude               \
+        $$(if $$(KBUILD_SRC),-Iinclude2 -I$$(srctree)/include)              \
+        -include include/linux/autoconf.h'                          \
        $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \
        include/config/MARKER $@
 endif # LINUX