1 # Makefile for 'pysvr' application embedding Python.
2 # Tailored for Python 1.5a3 or later.
3 # Some details are specific for Solaris or CNRI.
4 # Also see ## comments for tailoring.
8 ##PURIFY=/usr/local/pure/purify
11 # Optimization preferences
14 # Where Python is installed, and which version
18 # Expressions using the above definitions -- no need to change
20 # Use these defs when compiling against installed Python
21 PYC
=$(INST
)/lib
/$(PYVER
)/config
22 PYINCL
=-I
$(INST
)/include/$(PYVER
) -I
$(PYC
)
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
28 # Libraries to link with -- very installation dependent
29 # (See LIBS= in Modules/Makefile in build tree)
30 RLLIBS
=-lreadline
-ltermcap
31 OTHERLIBS
=-lsocket
-lnsl
-lpthread
-ldl
-lm
33 # Compilation and link flags -- no need to change normally
34 CFLAGS
=$(PYINCL
) $(OPT
)
35 LIBS
=$(PYLIBS
) $(RLLIBS
) $(OTHERLIBS
)
37 # Default port for the pysvr application
43 # Target to build pysvr
44 pysvr
: pysvr.o
$(PYOBJS
) $(PYLIBS
)
45 $(LINKCC
) pysvr.o
$(LIBS
) -o pysvr
47 # Target to build and run pysvr
51 # Target to clean up the directory
53 -rm -f pysvr
*.o
*~ core