summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-19 23:14:13 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-19 23:14:13 (GMT)
commit661aebcbde12a6138e6b0d0ef63fa3645dcb5ee4 (patch)
treedf8003cdd6867632cdec3f2d585e576bdd3a19b5
parenta955967a5b7cefef5ee0d633b267c1ec1359992d (diff)
downloadcpython-661aebcbde12a6138e6b0d0ef63fa3645dcb5ee4.zip
cpython-661aebcbde12a6138e6b0d0ef63fa3645dcb5ee4.tar.gz
cpython-661aebcbde12a6138e6b0d0ef63fa3645dcb5ee4.tar.bz2
New test for generic Makefile.pre.in
-rw-r--r--Demo/extend/README16
-rwxr-xr-xDemo/extend/make_clean5
-rwxr-xr-xDemo/extend/make_shared16
-rwxr-xr-xDemo/extend/make_static15
4 files changed, 52 insertions, 0 deletions
diff --git a/Demo/extend/README b/Demo/extend/README
new file mode 100644
index 0000000..26daf14
--- /dev/null
+++ b/Demo/extend/README
@@ -0,0 +1,16 @@
+This directory contains a test and demonstration of the power of the
+generic Makefile.pre.in from the Misc directory. There are three
+shell scripts. Study the source of the scripts to find out how they
+work (it's really easy).
+
+./make_static Make a static python binary with the xx module
+ linked in. To test this, run ./python and try to
+ import xx.
+
+./make_shared Make a shared module xx. To test this, run the
+ standard python interpreter in this directory and try
+ to import xx.
+
+./make_clean Clean up after either of the above. Note that each
+ scripts starts by calling this script, to begin with a
+ clean slate.
diff --git a/Demo/extend/make_clean b/Demo/extend/make_clean
new file mode 100755
index 0000000..13203cd
--- /dev/null
+++ b/Demo/extend/make_clean
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+# Reset the directory contents.
+
+rm -f Setup* Makefile* *.c *.o *.a *.so *~ python sedscript
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
diff --git a/Demo/extend/make_static b/Demo/extend/make_static
new file mode 100755
index 0000000..cfa48fe
--- /dev/null
+++ b/Demo/extend/make_static
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+# This script tests and demonstrates the mechanism for building a
+# static Python binary with 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 xx xxmodule.c >Setup.in
+
+make -f Makefile.pre.in boot
+make Makefile
+make static