summaryrefslogtreecommitdiffstats
path: root/Demo/pysvr/Makefile
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-14 19:48:42 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-14 19:48:42 (GMT)
commit20abb4e6b46873e19ff945763374af653f0f9192 (patch)
treeccddacc3cffc573c74a1ada0b0cf8aa7a1b8b297 /Demo/pysvr/Makefile
parent40d635848da8ad65ada236d015abf5e3c1365258 (diff)
downloadcpython-20abb4e6b46873e19ff945763374af653f0f9192.zip
cpython-20abb4e6b46873e19ff945763374af653f0f9192.tar.gz
cpython-20abb4e6b46873e19ff945763374af653f0f9192.tar.bz2
Added (commented-out) defs for use with the build tree instead of the
installed version.
Diffstat (limited to 'Demo/pysvr/Makefile')
-rw-r--r--Demo/pysvr/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Demo/pysvr/Makefile b/Demo/pysvr/Makefile
index d0aa769..073cda5 100644
--- a/Demo/pysvr/Makefile
+++ b/Demo/pysvr/Makefile
@@ -1,9 +1,12 @@
# Makefile for 'pysvr' application embedding Python.
# Tailored for Python 1.5a3 or later.
# Some details are specific for Solaris or CNRI.
+# Also see ## comments for tailoring.
# Which C compiler
CC=gcc
+##PURIFY=/usr/local/pure/purify
+LINKCC=$(PURIFY) $(CC)
# Optimization preferences
OPT=-g
@@ -14,9 +17,13 @@ VER=1.5
# Expressions using the above definitions -- no need to change
PYVER=python$(VER)
+# Use these defs when compiling against installed Python
PYC=$(INST)/lib/$(PYVER)/config
PYINCL=-I$(INST)/include/$(PYVER) -I$(PYC)
-PYLIBS=$(PYC)/libpython1.5.a
+PYLIBS=$(PYC)/lib$(PYVER).a
+# Use these defs when compiling against built Python
+##PYINCL=-I../../Include -I../../sparc
+##PYLIBS=../../sparc/lib$(PYVER).a
# Libraries to link with -- very installation dependent
# (See LIBS= in Modules/Makefile in build tree)
@@ -34,8 +41,8 @@ PORT=4000
all: pysvr
# Target to build pysvr
-pysvr: pysvr.o $(PYOBJS)
- $(CC) pysvr.o $(LIBS) -o pysvr
+pysvr: pysvr.o $(PYOBJS) $(PYLIBS)
+ $(LINKCC) pysvr.o $(LIBS) -o pysvr
# Target to build and run pysvr
run: pysvr