1 include ..
/..
/scripts
/Makefile.
include
2 include ..
/..
/perf
/config
/utilities.mak
# QUIET_CLEAN
5 srctree
:= $(patsubst %/,%,$(dir $(shell pwd
)))
6 srctree
:= $(patsubst %/,%,$(dir $(srctree
)))
7 srctree
:= $(patsubst %/,%,$(dir $(srctree
)))
8 #$(info Determined 'srctree' to be $(srctree))
11 CC
= $(CROSS_COMPILE
)gcc
12 AR
= $(CROSS_COMPILE
)ar
15 MAKEFLAGS
+= --no-print-directory
17 LIBFILE
= $(OUTPUT
)libsubcmd.a
19 CFLAGS
:= $(EXTRA_WARNINGS
) $(EXTRA_CFLAGS
)
20 CFLAGS
+= -ggdb3
-Wall
-Wextra
-std
=gnu99
-Werror
-O6
-U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE
=2 -fPIC
21 CFLAGS
+= -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS
=64 -D_GNU_SOURCE
23 CFLAGS
+= -I
$(srctree
)/tools
/include/
24 CFLAGS
+= -I
$(srctree
)/include/uapi
25 CFLAGS
+= -I
$(srctree
)/include
27 SUBCMD_IN
:= $(OUTPUT
)libsubcmd-in.o
31 export srctree OUTPUT CC LD CFLAGS V
32 include $(srctree
)/tools
/build
/Makefile.
include
34 all: fixdep
$(LIBFILE
)
37 @
$(MAKE
) $(build
)=libsubcmd
39 $(LIBFILE
): $(SUBCMD_IN
)
40 $(QUIET_AR
)$(RM
) $@
&& $(AR
) rcs
$@
$(SUBCMD_IN
)
43 $(call QUIET_CLEAN
, libsubcmd
) $(RM
) $(LIBFILE
); \
44 find
$(if
$(OUTPUT
),$(OUTPUT
),.
) -name \
*.o
-or
-name \
*.o.cmd
-or
-name \
*.o.d | xargs
$(RM
)