Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20abb4e

Browse files
committed
Added (commented-out) defs for use with the build tree instead of the
installed version.
1 parent 40d6358 commit 20abb4e

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Demo/pysvr/Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Makefile for 'pysvr' application embedding Python.
22
# Tailored for Python 1.5a3 or later.
33
# Some details are specific for Solaris or CNRI.
4+
# Also see ## comments for tailoring.
45

56
# Which C compiler
67
CC=gcc
8+
##PURIFY=/usr/local/pure/purify
9+
LINKCC=$(PURIFY) $(CC)
710

811
# Optimization preferences
912
OPT=-g
@@ -14,9 +17,13 @@ VER=1.5
1417

1518
# Expressions using the above definitions -- no need to change
1619
PYVER=python$(VER)
20+
# Use these defs when compiling against installed Python
1721
PYC=$(INST)/lib/$(PYVER)/config
1822
PYINCL=-I$(INST)/include/$(PYVER) -I$(PYC)
19-
PYLIBS=$(PYC)/libpython1.5.a
23+
PYLIBS=$(PYC)/lib$(PYVER).a
24+
# Use these defs when compiling against built Python
25+
##PYINCL=-I../../Include -I../../sparc
26+
##PYLIBS=../../sparc/lib$(PYVER).a
2027

2128
# Libraries to link with -- very installation dependent
2229
# (See LIBS= in Modules/Makefile in build tree)
@@ -34,8 +41,8 @@ PORT=4000
3441
all: pysvr
3542

3643
# Target to build pysvr
37-
pysvr: pysvr.o $(PYOBJS)
38-
$(CC) pysvr.o $(LIBS) -o pysvr
44+
pysvr: pysvr.o $(PYOBJS) $(PYLIBS)
45+
$(LINKCC) pysvr.o $(LIBS) -o pysvr
3946

4047
# Target to build and run pysvr
4148
run: pysvr

0 commit comments

Comments
 (0)