| 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.
|
|---|
| 5 |
|
|---|
| 6 | # Which C compiler
|
|---|
| 7 | CC=gcc
|
|---|
| 8 | ##PURIFY=/usr/local/pure/purify
|
|---|
| 9 | LINKCC=$(PURIFY) $(CC)
|
|---|
| 10 |
|
|---|
| 11 | # Optimization preferences
|
|---|
| 12 | OPT=-g
|
|---|
| 13 |
|
|---|
| 14 | # Which Python version we're using
|
|---|
| 15 | VER=2.2
|
|---|
| 16 |
|
|---|
| 17 | # Expressions using the above definitions
|
|---|
| 18 | PYVER=python$(VER)
|
|---|
| 19 |
|
|---|
| 20 | # Use these defs when compiling against installed Python
|
|---|
| 21 | ##INST=/usr/local
|
|---|
| 22 | ##PYC=$(INST)/lib/$(PYVER)/config
|
|---|
| 23 | ##PYINCL=-I$(INST)/include/$(PYVER) -I$(PYC)
|
|---|
| 24 | ##PYLIBS=$(PYC)/lib$(PYVER).a
|
|---|
| 25 |
|
|---|
| 26 | # Use these defs when compiling against built Python
|
|---|
| 27 | PLAT=linux
|
|---|
| 28 | PYINCL=-I../../Include -I../../$(PLAT)
|
|---|
| 29 | PYLIBS=../../$(PLAT)/lib$(PYVER).a
|
|---|
| 30 |
|
|---|
| 31 | # Libraries to link with -- very installation dependent
|
|---|
| 32 | # (See LIBS= in Modules/Makefile in build tree)
|
|---|
| 33 | RLLIBS=-lreadline -ltermcap
|
|---|
| 34 | OTHERLIBS=-lnsl -lpthread -ldl -lm -ldb -lutil
|
|---|
| 35 |
|
|---|
| 36 | # Compilation and link flags -- no need to change normally
|
|---|
| 37 | CFLAGS=$(OPT)
|
|---|
| 38 | CPPFLAGS=$(PYINCL)
|
|---|
|
|---|