Whamcloud - gitweb
LU-6142 tests: Fix style issues for mkdirmany.c
[fs/lustre-release.git] / build / Makefile
1 #
2 # There are four ways this Makefile can be called:
3 #
4 #
5 # 1.  As a subdirectory from the toplevel, for automake
6 #
7 # 2.  A wrapper around the kernel's makefile when building modules, to
8 #     possibly override the .config file
9 #
10 # 3.  At configure time, as the toplevel module dir for building
11 #     kernel tests
12 #
13
14 ifeq ($(PATCHLEVEL),)
15
16 ifeq ($(LUSTRE_LINUX_CONFIG),)
17
18 # case #1
19 include autoMakefile
20
21 else
22
23 # case #2
24 # Note that this comes from make -C $LINUX -f $LUSTRE/build/Makefile
25 # so "include Makefile" below includes $LINUX/Makefile, not this file
26 include $(LUSTRE_LINUX_CONFIG)
27 include Makefile
28
29 endif # LUSTRE_LINUX_CONFIG
30
31 else # PATCHLEVEL
32
33 # case #3
34 ifneq ($(LUSTRE_KERNEL_TEST),)
35 extra-y = $(LUSTRE_KERNEL_TEST)
36 endif
37
38 obj-m := conftest.o
39
40 endif # PATCHLEVEL