Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] New Makefile for building C client

Hi Roger,


In the light of your other examples I've updated the library names to

and so on. I figured we didn't need the v. I also made the install program name a variable according to the Makefile conventions.

Hopefully I'm pretty close to done now :-) unless I should "variable-ize" the remaining programs: ln, rm, cd and ldconfig...


On 31/10/13 15:55, Roger Light wrote:
Hi Ian,

This hardly seems worth a new bug being filed - when you are
installing in the install target, please prefix all destinations with
$DESTDIR like so:


The lack of a / separator is deliberate.

DESTDIR is undefined normally, so everything should install to
/usr/local/... as you'd expect. Setting DESTDIR allows the files to be
installed to the correct location within a tree, but not within the
actual OS files. Doing this makes packaging much much more
straightforward. See e.g.



On Wed, Oct 30, 2013 at 2:18 PM, Ian Craggs
<icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
I've created a new Makefile for building the C client, in the root directory
of the C project on Linux.  I've attempted to conform to as many standards
as I could find, like:

It adds library versioning, targets for install/uninstall, clean and doc.

I intend to do the same for MacOS.  For Windows, I'm planning a Visual
Studio project and Ant for automated builds.

I think that will cover the major platforms of interest for now.


paho-dev mailing list

paho-dev mailing list

Back to the top