Received: from eggs.gnu.org ([208.118.235.92]:41921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjYvL-0001za-Eo for qemu-devel@nongnu.org; Fri, 14 Dec 2012 12:19:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjYvK-0003uP-7L for qemu-devel@nongnu.org; Fri, 14 Dec 2012 12:19:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjYvJ-0003u8-VW for qemu-devel@nongnu.org; Fri, 14 Dec 2012 12:19:46 -0500 Date: Fri, 14 Dec 2012 15:21:18 -0200 From: Eduardo Habkost Message-ID: <20121214172118.GC17653@otherpad.lan.raisama.net> References: <1354726153-30264-1-git-send-email-ehabkost@redhat.com> <1354726153-30264-2-git-send-email-ehabkost@redhat.com> <50CB4705.80609@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50CB4705.80609@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [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: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Paolo Bonzini , Don Slutz , qemu-devel@nongnu.org, Igor Mammedov On Fri, Dec 14, 2012 at 04:34:29PM +0100, Andreas F=E4rber wrote: > Am 05.12.2012 17:49, schrieb Eduardo Habkost: > > The flag is necessary for code that doesn't use the variables from > > Makefile (but use Makefile.objs), like libcacard/ and stubs/. > >=20 > > This also moves the existing CFLAGS lines from Makefile.objs at the > > beginning of the file, to keep them all in the same place. > >=20 > > Signed-off-by: Eduardo Habkost >=20 > Waiting for ack or nack from Paolo here. I am expecting some overlap > with his header file reorganization series. >=20 > My previous (unanswered?) question was why you are moving vl.o lines in > addition to the QEMU_CFLAGS lines that you mention in the commit messag= e. I thought this note in the commit message would answer the question: > > This also moves the existing CFLAGS lines from Makefile.objs at the > > beginning of the file, to keep them all in the same place. In other words: it's cosmetic, just to keep all the QEMU_CLFAGS lines inside Makefile.objs grouped in a visible place at the beginning of the file. (You noticed that I am moving the vl.o lines _inside_ Makefile.obj, right? They are not being moved between different files.) >=20 > Andreas >=20 > > --- > > Makefile | 1 - > > Makefile.objs | 15 +++++++++------ > > 2 files changed, 9 insertions(+), 7 deletions(-) > >=20 > > 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 +=3D= $(FMOD_CFLAGS) > > =20 > > QEMU_CFLAGS+=3D$(CURL_CFLAGS) > > =20 > > -QEMU_CFLAGS +=3D -I$(SRC_PATH)/include > > =20 > > ui/cocoa.o: ui/cocoa.m > > =20 > > 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 +=3D $(GLIB_CFLAGS) > > +QEMU_CFLAGS +=3D -I$(SRC_PATH)/include > > + > > +vl.o: QEMU_CFLAGS+=3D$(GPROF_CFLAGS) > > +vl.o: QEMU_CFLAGS+=3D$(SDL_CFLAGS) > > + > > +####################################################################= ### > > # Stub library, linked in tools > > stub-obj-y =3D stubs/ > > =20 > > @@ -236,12 +245,6 @@ universal-obj-y +=3D $(qapi-obj-y) > > qga-obj-y =3D qga/ qemu-ga.o module.o qemu-tool.o > > qga-obj-$(CONFIG_POSIX) +=3D qemu-sockets.o qemu-option.o > > =20 > > -vl.o: QEMU_CFLAGS+=3D$(GPROF_CFLAGS) > > - > > -vl.o: QEMU_CFLAGS+=3D$(SDL_CFLAGS) > > - > > -QEMU_CFLAGS+=3D$(GLIB_CFLAGS) > > - > > nested-vars +=3D \ > > stub-obj-y \ > > qga-obj-y \ > >=20 >=20 >=20 > --=20 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrn= berg --=20 Eduardo