aboutsummaryrefslogtreecommitdiff
path: root/Examples/ocaml/simple
diff options
context:
space:
mode:
authorArt Yerkes <ayerkes@speakeasy.net>2003-02-27 09:25:00 +0000
committerArt Yerkes <ayerkes@speakeasy.net>2003-02-27 09:25:00 +0000
commita1fa5ec2c17792b3105aa05f1967359bd3116a6d (patch)
treeae57ccb0943c7526b3fd3642d6df151d5dd1b09a /Examples/ocaml/simple
parentb8490f9c18903ee5c07b76aa1e12fc0812aaf0f9 (diff)
downloadswig-a1fa5ec2c17792b3105aa05f1967359bd3116a6d.tar.gz
Added info about dynamic linking to doc
Added dynamic targets to example makefiles Added ocaml_dynamic and ocaml_dynamic_cpp targets to Examples/Makefile.in Added OCAMLFIND and OCAMLDLGEN AC_SUBST lines in configure.in Currently, dynamic linking relies on ocamlfind and Gerd Stolpmann's Dl package, as well as some tricky elf linking. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/ocaml/simple')
-rw-r--r--Examples/ocaml/simple/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Examples/ocaml/simple/Makefile b/Examples/ocaml/simple/Makefile
index bac7edf47..e16df0113 100644
--- a/Examples/ocaml/simple/Makefile
+++ b/Examples/ocaml/simple/Makefile
@@ -9,6 +9,12 @@ OBJS = example.o
all:: static
+dynamic::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
+ PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
+ ocaml_dynamic
+
static::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \