[PATCH kvm-unit-tests 1/4] Makefile: add support for C++

Avi Kivity
2010-11-24T10:52:29Z

Signed-off-by: Avi Kivity <avi@redhat.com>
---
Makefile | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index d25e6f2..9b0256d 100644
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,13 @@ CFLAGS += -O1
CFLAGS += $(autodepend-flags) -g -fomit-frame-pointer -Wall
CFLAGS += $(call cc-option, -fno-stack-protector, "")
CFLAGS += $(call cc-option, -fno-stack-protector-all, "")
+CFLAGS += -I.

-CXXFLAGS = $(autodepend-flags)
+CXXFLAGS += $(CFLAGS)

autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d

+LDFLAGS += $(CFLAGS)
LDFLAGS += -pthread -lrt

kvmtrace_objs= kvmtrace.o
--
1.7.1