summaryrefslogtreecommitdiff
path: root/ffi/Makefile
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2019-03-30 16:23:07 +0100
committerMiguel <m.i@gmx.at>2019-03-30 16:23:07 +0100
commit0b63a8e4950e4628c36f812210cfdf40a28be034 (patch)
tree1b1b7914f56752379310781ea01dc9c1192e946f /ffi/Makefile
parentb45e37124d855bdf3365e8202559c45cf28e9d88 (diff)
added simple ffi example calling c from hask
Diffstat (limited to 'ffi/Makefile')
-rw-r--r--ffi/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffi/Makefile b/ffi/Makefile
index 6f098a6..849a8de 100644
--- a/ffi/Makefile
+++ b/ffi/Makefile
@@ -1,9 +1,11 @@
hask_from_c: Foo.hs foomain.c
stack ghc -- Foo.hs
stack ghc -- -no-hs-main Foo.o foomain.c -o hask_from_c
-
+c_from_hask: Bar.c barmain.hs
+ stack ghc -- barmain.hs Bar.c -o c_from_hask
clean:
- rm *.o
- rm *.hi
- rm Foo_stub.h
- rm hask_from_c
+ - rm c_from_hask