From 9b8dd757e065b883fb5869b4f19b770c03c4c73f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Llu=C3=ADs?= Date: Wed, 31 Aug 2011 20:30:50 +0200 Subject: [PATCH] trace: [make] replace 'ifeq' with values in CONFIG_TRACE_* MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Lluís Vilanova --- Makefile.objs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 44d7238..833158b 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -374,16 +374,14 @@ endif simpletrace.o: simpletrace.c $(GENERATED_HEADERS) -ifeq ($(TRACE_BACKEND),dtrace) -trace-obj-y = trace-dtrace.o -else +trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o +ifneq ($(TRACE_BACKEND),dtrace) trace-obj-y = trace.o -ifeq ($(TRACE_BACKEND),simple) -trace-obj-y += simpletrace.o -trace-obj-y += qemu-timer-common.o -endif endif +trace-obj-$(CONFIG_TRACE_SIMPLE) += simpletrace.o +trace-obj-$(CONFIG_TRACE_SIMPLE) += qemu-timer-common.o + ###################################################################### # smartcard -- 2.7.4