[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional include directories
From: |
Basile Starynkevitch |
Subject: |
Re: Conditional include directories |
Date: |
Mon, 3 Aug 2015 18:56:38 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Aug 03, 2015 at 04:38:37PM +0000, Mike Gran wrote:
>
> Hello all,
>
> In a standalone project makefile I want to add a -I directory
> parameter to a CFLAGS variable.
>
> On a 32-bit box, I need to add it as
> -I/stage2/lib/dbus-1.0/include
>
> One a 64-bit box, I need to add it as
> -I/stage2/lib64/dbus-1.0/include
>
> There are a bunch of ways to do this, I guess.
A possible way might be to use pkg-config. Your Dbus library might be
registered in some pkg-config *.pc file.
http://www.freedesktop.org/wiki/Software/pkg-config/
A way of using it in your Makefile:
http://stackoverflow.com/questions/20145132/makefiles-how-can-i-use-them/20146082#20146082
Regards
--
Basile Starynkevitch http://starynkevitch.net/Basile/
France basile at starynkevitch dot net