Dear all,<br><br>Thank you for your kind replies.<br><br>I tried to used ghc --make as Mr. Scott suggested.<br>It is fine if in the C stub I do not call to a non-standard library of C language.<br>The problem is that if I call to a non-standard C library installed (omega) in my system,<br>
I cannot compile it. Here is my make file using ghc make:<br><br>=========================<br>BASEDIR=/usr/local<br>INCS= -I$(BASEDIR)/include/omega -I.<br>LIBS= -L$(BASEDIR)/lib<br>LIB= -lcode_gen -lomega -lm<br><br>GHC=ghc<br>
<br>#----------------------------------------------------<br>CFILES=$(CURDIR)/cfile<br>HSFILES=$(CURDIR)/hsfile<br>COBJFILES=$(CFILES)/termops.o $(CFILES)/termops2.o<br>ALLCFILES=$(CFILES)/termops.c $(CFILES)/termops2.c<br>
#----------------------------------------------------<br><br>GHC_FLAGS= -O2 -fglasgow-exts -fallow-overlapping-instances <br><br>_ffi_ex: $(COBJFILES) <br>&nbsp;&nbsp;&nbsp; ghc $(GHC_FLAGS)&nbsp; -lstdc++ --make -main-is&nbsp; FfiEx -o ffi_ex FfiEx.hs $(HSFILES)/*.hs $(LIBS) $(LIB) $(COBJFILES) <br>
=========================<br>=&gt;&nbsp;<b> fatal error: omega.h: No such file or directory<br></b><br>Could you please give me suggestions to solve this?<br><br>Thank you.<br>Best Regards.<br>Bach.<br><br><div class="gmail_quote">
On Fri, Dec 28, 2012 at 5:20 PM,  <span dir="ltr">&lt;<a href="mailto:jims@stuttard.org" target="_blank">jims@stuttard.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">
<div class="im">Quoting xuan bach &lt;<a href="mailto:pig28789@gmail.com" target="_blank">pig28789@gmail.com</a>&gt;:<br>
<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi everyone,<br>
I&#39;m a newbie in Haskell.<br>
<br>
I&#39;m wondering that if there is any tool support<br>
creating Makefile for Haskell project like Ocamlbuild<br>
for Ocaml project?<br>
</blockquote>
<br></div>
I&#39;v just started learning how to use Neil Mitchell&#39;s Shake described at:<br>
<br>
<a href="http://neilmitchell.blogspot.co.uk/2012/02/shake-better-make.html" target="_blank">http://neilmitchell.blogspot.<u></u>co.uk/2012/02/shake-better-<u></u>make.html</a><br>
<br>
Its available on hackage.<br>
<br>
Hth<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
Thank you,<br>
Regards.<br>
<br>
--<br>
*Le Dinh Xuan Bach*<br>
*Tel: 01234711869 or <a href="tel:%2B65%2086967149" value="+6586967149" target="_blank">+65 86967149</a><br>
*<br></div>
*Email: <a href="mailto:pig28789@gmail.com" target="_blank">pig28789@gmail.com</a><div class="im"><br>
School of Information and Communication,<br></div>
*<br>
*Hanoi University of Science and Technology<br>
------------------------------<u></u>------------------------------<u></u>---------<br>
??????????????<br>
?????01234711869 or <a href="tel:%2B65%2086967149" value="+6586967149" target="_blank">+65 86967149</a><br>
???? &nbsp; &nbsp; &nbsp;<a href="mailto:pig28789@gmail.com" target="_blank">pig28789@gmail.com</a><br>
*<br>
<br>
</blockquote>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><b style="color:rgb(102,102,102)">Le Dinh Xuan Bach</b><div style="color:rgb(102,102,102)"><b>Tel: 01234711869 or +65 86967149<br></b></div><div style="color:rgb(102,102,102)">
<b>Email: <a href="mailto:pig28789@gmail.com" target="_blank">pig28789@gmail.com</a><br>School of Information and Communication,<br></b></div><div><b><span style="color:rgb(102,102,102)">Hanoi University of Science and Technology</span><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">---------------------------------------------------------------------</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">$B%l!#%G%#%s!#%9%"%s!#%P%$%C%/(B</span><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">$BEEOCHV9f!'(B01234711869 or +65 86967149</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">$B%a!<%k!'(B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><a style="color:rgb(102,102,102)" href="mailto:pig28789@gmail.com" target="_blank">pig28789@gmail.com</a><br style="color:rgb(204,204,204)">
</b><br></div>