summaryrefslogtreecommitdiff
path: root/trunk/Examples/ocaml/argout_ref/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/ocaml/argout_ref/Makefile')
-rw-r--r--trunk/Examples/ocaml/argout_ref/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/trunk/Examples/ocaml/argout_ref/Makefile b/trunk/Examples/ocaml/argout_ref/Makefile
new file mode 100644
index 000000000..8a260fe30
--- /dev/null
+++ b/trunk/Examples/ocaml/argout_ref/Makefile
@@ -0,0 +1,27 @@
+TOP = ../..
+SWIG = $(TOP)/../preinst-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_cpp
+
+dynamic::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
+ PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
+ ocaml_dynamic_cpp
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile MLFILE='$(MLFILE)' ocaml_clean
+
+check: all