summaryrefslogtreecommitdiffstats
path: root/Demo/extend/make_shared
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/extend/make_shared')
-rwxr-xr-xDemo/extend/make_shared16
1 files changed, 16 insertions, 0 deletions
diff --git a/Demo/extend/make_shared b/Demo/extend/make_shared
new file mode 100755
index 0000000..b5fbe24
--- /dev/null
+++ b/Demo/extend/make_shared
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+# This script tests and demonstrates the mechanism for building a
+# shared library for an additional extension module using the
+# generic Makefile.pre.in from the Misc directory.
+
+./make_clean
+
+cp ../../Misc/Makefile.pre.in .
+cp ../../Modules/xxmodule.c .
+echo '*shared*' >Setup.in
+echo xx xxmodule.c >>Setup.in
+
+make -f Makefile.pre.in boot
+make Makefile
+make