2 include ..
/user
/config.mak
3 include config-
$(ARCH
).mak
6 # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
7 cc-option
= $(shell if
$(CC
) $(1) -S
-o
/dev
/null
-xc
/dev
/null \
8 > /dev
/null
2>&1; then echo
"$(1)"; else echo
"$(2)"; fi
;)
10 CFLAGS
+= $(autodepend-flags
) -g
-fomit-frame-pointer
-Wall
11 CFLAGS
+= $(call cc-option
, -fno-stack-protector
, "")
12 CFLAGS
+= $(call cc-option
, -fno-stack-protector-all
, "")
13 CFLAGS
+= -I
$(KERNELDIR
)/include
17 CXXFLAGS
= $(autodepend-flags
)
19 autodepend-flags
= -MMD
-MF
$(dir $*).
$(notdir $*).d
24 libkvm.a
: libkvm.o
$(libkvm-
$(ARCH
)-objs
)
28 install -D libkvm.h
$(DESTDIR
)/$(PREFIX
)/include/libkvm.h
29 install -D
$(KERNELDIR
)/include/linux
/kvm.h \
30 $(DESTDIR
)/$(PREFIX
)/include/linux
/kvm.h
31 install -D
$(KERNELDIR
)/include/linux
/kvm_para.h \
32 $(DESTDIR
)/$(PREFIX
)/include/linux
/kvm_para.h
33 install -D libkvm.a
$(DESTDIR
)/$(PREFIX
)/$(LIBDIR
)/libkvm.a