kvm: qemu: add missing declaration for bdrv_flush_all
[kvm-userspace.git] / libkvm / Makefile
blob65efb3a24de3ee82e64935a6dc33570485f41e94
1 include ../config.mak
2 include ../user/config.mak
3 include config-$(ARCH).mak
5 # cc-option
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
15 LDFLAGS += $(CFLAGS)
17 CXXFLAGS = $(autodepend-flags)
19 autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d
22 all: libkvm.a
24 libkvm.a: libkvm.o $(libkvm-$(ARCH)-objs)
25 $(AR) rcs $@ $^
27 install:
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
35 -include .*.d
37 clean:
38 $(RM) *.o *.a .*.d