summaryrefslogtreecommitdiff
path: root/ffi/Makefile
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2019-03-30 16:08:18 +0100
committerMiguel <m.i@gmx.at>2019-03-30 16:08:18 +0100
commitb45e37124d855bdf3365e8202559c45cf28e9d88 (patch)
tree1741d955c0c8e023a0c3bead76795bfbd895e7bb /ffi/Makefile
parent1ac8773f20c25b9ebbe559efe25591ba7a24acdb (diff)
first success with ffi (Call hask from c)
Diffstat (limited to 'ffi/Makefile')
-rw-r--r--ffi/Makefile9
1 files changed, 9 insertions, 0 deletions
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