head	1.1;
branch	1.1.1;
access;
symbols
	initial_release:1.1.1.1
	JK:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2000.08.01.17.40.06;	author jkybic;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.08.01.17.40.06;	author jkybic;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@# 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

# Where Python is installed, and which version
INST=/usr/local
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)/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)
RLLIBS=-lreadline -ltermcap
OTHERLIBS=-lsocket -lnsl -lpthread -ldl -lm

# Compilation and link flags -- no need to change normally
CFLAGS=$(PYINCL) $(OPT)
LIBS=$(PYLIBS) $(RLLIBS) $(OTHERLIBS)

# Default port for the pysvr application
PORT=4000

# Default target
all: pysvr

# Target to build pysvr
pysvr: pysvr.o $(PYOBJS) $(PYLIBS)
	$(LINKCC) pysvr.o $(LIBS) -o pysvr

# Target to build and run pysvr
run: pysvr
	pysvr $(PORT)

# Target to clean up the directory
clean:
	-rm -f pysvr *.o *~ core
@


1.1.1.1
log
@
Python-1.5.2 compiled for Linux on Psion. Imported by Jan.Kybic@@epfl.ch
@
text
@@
