This is the Makefile used by CPSA. It requires GNU make.
John
# Haskell/Cabal Makefile
# Requires GNU Make
# The all target creates a default configuration if need be.
PACKAGE := $(wildcard *.cabal)
CONFIG = dist/setup-config
SETUP = runhaskell Setup.hs
all:$(CONFIG)
$(SETUP) bu
On 13-01-02 01:01 AM, xuan bach wrote:
=
BASEDIR=/usr/local
INCS= -I$(BASEDIR)/include/omega -I.
LIBS= -L$(BASEDIR)/lib
LIB= -lcode_gen -lomega -lm
GHC=ghc
#
CFILES=$(CURDIR)/cfile
HSFILES=$(CURDIR)/hsfile
COBJFILES=$(C
Dear all,
Thank you for your kind replies.
I tried to used ghc --make as Mr. Scott suggested.
It is fine if in the C stub I do not call to a non-standard library of C
language.
The problem is that if I call to a non-standard C library installed (omega)
in my system,
I cannot compile it. Here is m
Quoting xuan bach :
Hi everyone,
I'm a newbie in Haskell.
I'm wondering that if there is any tool support
creating Makefile for Haskell project like Ocamlbuild
for Ocaml project?
I'v just started learning how to use Neil Mitchell's Shake described at:
http://neilmitchell.blogspot.co.uk/2012/
On Fri, 28 Dec 2012, xuan bach wrote:
Hi Scott,
Thanks for your kind comment.
By the way, is it possible to use ghc --make for my
project including some external libraries and tools
such as happy, Parsec and haskell stub calling C
library?
I'm not sure about happy and foreign interfaces - as
Hi Scott,
Thanks for your kind comment.
By the way, is it possible to use ghc --make for my
project including some external libraries and tools
such as happy, Parsec and haskell stub calling C
library?
I also tried out cabal to build my project but it seems
quite complicated to use.
Best Regard
On Fri, 28 Dec 2012, xuan bach wrote:
Hi everyone,
I'm a newbie in Haskell.
I'm wondering that if there is any tool support
creating Makefile for Haskell project like Ocamlbuild
for Ocaml project?
Since ghc handles dependencies automatically, I usually just do,
all:
g