1 uname_M
:= $(shell uname
-m
2>/dev
/null || echo not
)
2 ARCH ?
= $(shell echo
$(uname_M
) | sed
-e s
/i
.86/i386
/)
5 CFLAGS
:= -DCONFIG_X86_32
-D__i386__
9 CFLAGS
:= -DCONFIG_X86_64
-D__x86_64__
12 CFLAGS
+= -I..
/..
/..
/..
/arch
/x86
/include/generated
/
13 CFLAGS
+= -I..
/..
/..
/..
/include/
14 CFLAGS
+= -I..
/..
/..
/..
/usr
/include/
15 CFLAGS
+= -I..
/..
/..
/..
/arch
/x86
/include/
19 gcc
$(CFLAGS
) kcmp_test.c
-o kcmp_test
21 echo
"Not an x86 target, can't build kcmp selftest"
25 @.
/kcmp_test || echo
"kcmp_test: [FAIL]"
28 $(RM
) kcmp_test kcmp-test-file