summaryrefslogtreecommitdiff
path: root/ffi/Makefile
diff options
context:
space:
mode:
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