Received: from eggs.gnu.org ([208.118.235.92]:51353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgI8p-0006aD-Oy for qemu-devel@nongnu.org; Wed, 05 Dec 2012 11:48:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgI8a-00060N-9h for qemu-devel@nongnu.org; Wed, 05 Dec 2012 11:48:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgI8a-0005zY-0D for qemu-devel@nongnu.org; Wed, 05 Dec 2012 11:47:56 -0500 From: Eduardo Habkost Date: Wed, 5 Dec 2012 14:49:06 -0200 Message-Id: <1354726153-30264-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1354726153-30264-1-git-send-email-ehabkost@redhat.com> References: <1354726153-30264-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 1/8] Move -I$(SRC_PATH)/include compiler flag to Makefile.objs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , Don Slutz , =?UTF-8?q?Andreas=20F=C3=A4rber?= The flag is necessary for code that doesn't use the variables from Makefile (but use Makefile.objs), like libcacard/ and stubs/. This also moves the existing CFLAGS lines from Makefile.objs at the beginning of the file, to keep them all in the same place. Signed-off-by: Eduardo Habkost --- Makefile | 1 - Makefile.objs | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 9ecbcbb..739d9cd 100644 --- a/Makefile +++ b/Makefile @@ -145,7 +145,6 @@ audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS) QEMU_CFLAGS+=$(CURL_CFLAGS) -QEMU_CFLAGS += -I$(SRC_PATH)/include ui/cocoa.o: ui/cocoa.m diff --git a/Makefile.objs b/Makefile.objs index 3c7abca..0a0a33a 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -1,4 +1,13 @@ ####################################################################### +# general compiler flags + +QEMU_CFLAGS += $(GLIB_CFLAGS) +QEMU_CFLAGS += -I$(SRC_PATH)/include + +vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) +vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) + +####################################################################### # Stub library, linked in tools stub-obj-y = stubs/ @@ -236,12 +245,6 @@ universal-obj-y += $(qapi-obj-y) qga-obj-y = qga/ qemu-ga.o module.o qemu-tool.o qga-obj-$(CONFIG_POSIX) += qemu-sockets.o qemu-option.o -vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) - -vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) - -QEMU_CFLAGS+=$(GLIB_CFLAGS) - nested-vars += \ stub-obj-y \ qga-obj-y \ -- 1.7.11.7