The way we do things is to actually make the pro file using QT creator and then use qmake in scratchbox/esbox to generate a makefile. We do it even for non-QT projects.<br><br>Much easier to manage in my opinion.<br><br>Even if you manually need to edit the pro file, it is much easier than doing it in a Makefile. You still need to configure your packages though -<br>
CONFIG+=link_pkgconfig <br>PKGCONFIG+=libhal libhal-storage<br><br>-Saurabh<br><br><div class="gmail_quote">On Fri, May 14, 2010 at 3:19 PM, Dave Neary <span dir="ltr">&lt;<a href="mailto:dneary@maemo.org">dneary@maemo.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<div class="im"><br>
David King wrote:<br>
&gt; On 2010-05-14 11:13, David King &lt;<a href="mailto:davidk@openismus.com">davidk@openismus.com</a>&gt; wrote:<br>
&gt;&gt; Yes, if you are using libhal and libhal-storage through pkg-config with<br>
&gt;&gt; autotools, then I guess that you have:<br>
&gt;&gt;<br>
&gt;&gt; PKG_CHECK_MODULES([HAL], [libhal libhal-storage])<br>
&gt;&gt;<br>
&gt;&gt; or similar in your <a href="http://configure.ac" target="_blank">configure.ac</a>. If not, then you should add it.<br>
&gt;<br>
&gt; Sorry, the line above should be:<br>
&gt;<br>
&gt; PKG_CHECK_MODULES([HAL], [hal hal-storage])<br>
<br>
</div>Ah, the joys of package names vs pkgconfig modules...<br>
<br>
The other way to do it with &quot;normal&quot; Makefileness is to get the CFLAGS<br>
for HAL and HAL Storage with:<br>
<br>
  pkg-config --cflags hal<br>
  pkg-config --cflags hal-storage<br>
<br>
<br>
and the LDFLAGS with<br>
<br>
  pkg-config --libs hal<br>
  pkg-config --libs hal-storage<br>
<br>
In practice, in the Makefile, it&#39;d probably look like this:<br>
<br>
CFLAGS  = $(shell pkg-config --cflags hal hal-storage)<br>
LDFLAGS = $(shell pkg-config --libs hal hal-storage)<br>
OBJECTS = main.o<br>
<br>
myprog: $(OBJECTS)<br>
        cc $(CFLAGS) -o $(output) $(inputs) $(LDFLAGS)<br>
<br>
%.o: %.c<br>
        cc $(CFLAGS) -c $(input) -o $(output)<br>
<div class="im"><br>
Cheers,<br>
Dave.<br>
<br>
--<br>
<a href="http://maemo.org" target="_blank">maemo.org</a> docsmaster<br>
Email: <a href="mailto:dneary@maemo.org">dneary@maemo.org</a><br>
Jabber: <a href="mailto:bolsh@jabber.org">bolsh@jabber.org</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</div></div></blockquote></div><br>