##########################################################
# Compile environ.c into a shareable object file on 
# Linux, to be loaded dynamically when first imported,
# whether from interactive, stand-alone, or embedded code.
# To use, type make -f makefile.environ, at your shell
#
# To link statically with Python instead, add line like:
# environ ~/examples/Part1/Preview/Integrate/environ.c
# to Modules/Setup (or add a link to environ.c in Modules,
# and add a line like environ environ.c) and re-make 
# python itself; this works on any platform, and no extra 
# makefile like this one is needed;
#
# To make a shareable on Solaris, you might instead say:
#	cc xxx.c -c -KPIC -o xxx.o
#	ld -G xxx.o -o xxx.so
#     rm xxx.o
# On other platforms, it's more different still; see
# your c or c++ compiler's documentation for details
##########################################################

PY = /home/mark/python1.5.2-ddjcd/Python-1.5.2

environ.so: environ.c
	gcc environ.c -g -I$(PY)/Include -I$(PY) -fpic -shared -o environ.so

clean:
	rm -f environ.so

#or-- environ.so: environ.c
#	gcc environ.c -c -g -fpic -I$(PY)/Include -I$(PY) -o environ.o
#	gcc -shared environ.o -o environ.so
#	rm -f environ.o
