dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
From: Hamid Ramazani <mrramazani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Thomas Monjalon
	<thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: Any benefit of using DPDK's makefiles instead of using your own and linking against DPDK library
Date: Tue, 14 Jan 2014 18:36:46 +0330	[thread overview]
Message-ID: <CACu58pDJ3buex_thRwP_9-0WYEyYF1v=JsBMk+A8wa7XNsV58Q@mail.gmail.com> (raw)
In-Reply-To: <201401141455.57994.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>

Hi,

Considering the fact that there are many developers using c++, I
totally persuade/agree with the addition of c++ functionality, and
thanks to Thomas's guidelines it won't create any overhead in usage.

All the Best,
--Hamid

On 1/14/14, Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> wrote:
> Hello Venky,
>
> 14/01/2014 14:22, Venkatesan, Venky:
>> From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Thomas Monjalon
>> > 14/01/2014 08:02, Daniel Kan:
>> > > I already have existing makefiles for my current application. I would
>> > > like to integrate dpdk into the application.  ’m wondering if there
>> > > is
>> > > any benefit to use dpdk’s makefiles instead of using your own
>> > > makefile
>> > > and linking against the library (e.g. libintel_dpdk.a). Thanks.
>> >
>> > DPDK makefiles have 2 benefits:
>> > - provide a framework
>> > - automatically set CFLAGS and LDFLAGS according to your configuration
>> >
>> > If you don't need a framework, I think it's better to extract
>> > compilation
>> > flags with something like pkg-config.
>> > http://freedesktop.org/wiki/Software/pkg-config
>> > A patch for a such feature would be welcome :)
>>
>> One other thing to think about - as we add more functionality into DPDK
>> (e.g. new libraries for other packet functions), we integrate them into
>> the DPDK framework. If you extract compilation flags and setup your own
>> makefile, you would have to do this re-integration every time you want to
>> pick up a new release. The same applies to newer files added etc. etc.
>> That is the downside.
>
> I disagree.
> If the Makefile of the application, use a DPDK script or pkg-config to read
>
> the flags from a generated file, the integration is done only once.
> This guide explains the logic and how to implement it:
> 	http://people.freedesktop.org/~dbn/pkg-config-guide.html
>
> --
> Thomas
>

  parent reply	other threads:[~2014-01-14 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14  7:02 Any benefit of using DPDK's makefiles instead of using your own and linking against DPDK library Daniel Kan
     [not found] ` <8A452F53-AD44-4C3C-8AB0-AD3342206D46-nm7580oGLDTQT0dZR+AlfA@public.gmane.org>
2014-01-14 11:38   ` Thomas Monjalon
     [not found]     ` <201401141238.30056.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-14 13:22       ` Venkatesan, Venky
     [not found]         ` <1FD9B82B8BF2CF418D9A1000154491D973FC5A42-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-01-14 13:55           ` Thomas Monjalon
     [not found]             ` <201401141455.57994.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-14 15:06               ` Hamid Ramazani [this message]
2014-01-14 20:40               ` Daniel Kan
     [not found]                 ` <BF63A365-B8BD-49CD-9DCE-09D7A47DED02-nm7580oGLDTQT0dZR+AlfA@public.gmane.org>
2014-01-16 14:02                   ` Olivier MATZ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACu58pDJ3buex_thRwP_9-0WYEyYF1v=JsBMk+A8wa7XNsV58Q@mail.gmail.com' \
    --to=mrramazani-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).