From b45e37124d855bdf3365e8202559c45cf28e9d88 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sat, 30 Mar 2019 16:08:18 +0100 Subject: first success with ffi (Call hask from c) --- ffi/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ffi/Makefile (limited to 'ffi/Makefile') diff --git a/ffi/Makefile b/ffi/Makefile new file mode 100644 index 0000000..6f098a6 --- /dev/null +++ b/ffi/Makefile @@ -0,0 +1,9 @@ +hask_from_c: Foo.hs foomain.c + stack ghc -- Foo.hs + stack ghc -- -no-hs-main Foo.o foomain.c -o hask_from_c + +clean: + - rm *.o + - rm *.hi + - rm Foo_stub.h + - rm hask_from_c -- cgit v1.2.3