summaryrefslogtreecommitdiff
path: root/Examples/ocaml/simple/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ocaml/simple/Makefile')
-rw-r--r--Examples/ocaml/simple/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Examples/ocaml/simple/Makefile b/Examples/ocaml/simple/Makefile
new file mode 100644
index 000000000..bac7edf47
--- /dev/null
+++ b/Examples/ocaml/simple/Makefile
@@ -0,0 +1,21 @@
+TOP = ../..
+SWIG = $(TOP)/../swig
+SRCS = example.c
+TARGET = example
+INTERFACE = example.i
+MLFILE = example.ml
+PROGFILE = example_prog.ml
+OBJS = example.o
+
+all:: static
+
+static::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
+ PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
+ ocaml_static
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile MLFILE='$(MLFILE)' ocaml_clean
+
+check: all