[ovs-dev] [PATCH] Makefiles: Fix invocation of dot2pic when builddir != srcdir.
azhou at nicira.com
Fri May 9 06:31:18 UTC 2014
This is great and I was not aware of this. Although I knew GCC and GDB
builds support build directories.
IMHO, It will be helpful to other developers as well.
On Thu, May 8, 2014 at 9:42 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Fri, May 09, 2014 at 01:37:19PM +0900, YAMAMOTO Takashi wrote:
>> > On Fri, May 09, 2014 at 01:26:03PM +0900, YAMAMOTO Takashi wrote:
>> >> sorry, i didn't know builddir can be different from srcdir.
>> > I guess not everyone builds that way but I like to have multiple
>> > builddirs so that I can easily do both Clang and GCC builds off a single
>> > source tree.
>> sounds useful. can you share a recipe in INSTALL?
> It is the same form as with every project built with Autoconf and
> # Basic setup.
> cd ovs
> # First build dir.
> # I name my builddirs beginning with "_". It is only a
> # personal convention, although I think I got it from Paul Smith (see
> # http://mad-scientist.net/make/).
> mkdir _build
> (cd _build && ../configure && make)
> # Second build dir.
> mkdir _clang
> (cd _clang && ../configure CC=clang && make)
> # And then after that you can just run "make" in both directories. I
> # use a simple script.
> I am not sure that it is worth describing in INSTALL, because I am not
> sure that most developers want to do it.
> dev mailing list
> dev at openvswitch.org
More information about the dev