File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
67CC =gcc
8+ # #PURIFY=/usr/local/pure/purify
9+ LINKCC =$(PURIFY ) $(CC )
710
811# Optimization preferences
912OPT =-g
@@ -14,9 +17,13 @@ VER=1.5
1417
1518# Expressions using the above definitions -- no need to change
1619PYVER =python$(VER )
20+ # Use these defs when compiling against installed Python
1721PYC =$(INST ) /lib/$(PYVER ) /config
1822PYINCL =-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
3441all : 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
4148run : pysvr
You can’t perform that action at this time.
0 commit comments