home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pyth_os2.zip
/
python-1.0.2
/
OS2
/
Modules
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-06-02
|
6KB
|
169 lines
# Generated automatically from Makefile.pre by makesetup.
# Generated automatically from Makefile.pre.in by configure.
# META-NOTE: this note is different from the note in the other Makefiles!
# NOTE: Makefile.pre.in is converted into Makefile.pre by the configure
# script in the toplevel directory or by ../config.status.
# Makefile.pre is converted into Makefile by running the makesetup
# script in the source directory. Once Makefile exists, it can be
# brought up to date by running "make Makefile". (The makesetup also
# creates config.c from config.c.in in the source directory.)
# === Variables set by makesetup ===
MODOBJS= arraymodule.o mathmodule.o parsermodule.o posixmodule.o regexmodule.o regexpr.o stropmodule.o structmodule.o timemodule.o fcntlmodule.o pwdmodule.o selectmodule.o socketmodule.o audioopmodule.o imageopmodule.o rgbimgmodule.o md5module.o md5c.o rotormodule.o
MODLIBS=
# === Definitions added by makesetup ===
PYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(ARCHPATH)$(STDWINPATH)
TESTPATH=:$(DESTLIB)/test
DESTLIB=$(prefix)/lib/python
# === Variables set by configure ===
srcdir= .
CC= gcc
RANLIB= ar -s
AR= ar
DEFS= -DHAVE_CONFIG_H
LIBS=
LIBM= -lm
LIBC=
# Install prefix, may be changed by configure
prefix= /usr/local
# === Variables that are customizable by hand ===
INCLDIR= $(srcdir)/../Include
OPT= -O
CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
MKDEP= mkdep
SHELL= /bin/sh
MAKESETUP= $(srcdir)/makesetup
# === Fixed definitions ===
OBJS= $(MODOBJS)
LIB= libModules.a
MYLIBS= $(LIB) \
../Python/libPython.a \
../Objects/libObjects.a \
../Parser/libParser.a
SYSLIBS= $(LIBM) $(LIBC)
# === Rules ===
all: $(LIB) ../python
$(LIB): $(OBJS)
$(AR) cr $(LIB) $(OBJS)
$(RANLIB) $(LIB)
../python.exe: config.o $(MYLIBS)
$(CC) config.o $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python.exe
mv python.exe ../python.exe
config.o: config.c Makefile
$(CC) $(CFLAGS) -DPYTHONPATH=\"$(PYTHONPATH)\" -c config.c
clean:
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
clobber: clean
-rm -f *.a tags TAGS
#config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup
# $(SHELL) $(MAKESETUP) Setup
#
#Setup:
# cp $(srcdir)/Setup.in Setup
#
#Makefile.pre: Makefile.pre.in ../config.status
# (cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
# $(SHELL) config.status)
depend:
$(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
.PRECIOUS: ../python
glmodule.c: $(srcdir)/cgen.py $(srcdir)/cstubs
python $(srcdir)/cgen.py <$(srcdir)/cstubs >glmodule.c
almodule.o: almodule.c
arraymodule.o: arraymodule.c
audioopmodule.o: audioopmodule.c
cdmodule.o: cdmodule.c
clmodule.o: clmodule.c
dbmmodule.o: dbmmodule.c
fcntlmodule.o: fcntlmodule.c
flmodule.o: flmodule.c
fmmodule.o: fmmodule.c
glmodule.o: glmodule.c
imageopmodule.o: imageopmodule.c
imgfilemodule.o: imgfilemodule.c
mathmodule.o: mathmodule.c
md5c.o: md5c.c
md5module.o: md5module.c
mpzmodule.o: mpzmodule.c
nismodule.o: nismodule.c
parsermodule.o: parsermodule.c
posixmodule.o: posixmodule.c
pwdmodule.o: pwdmodule.c
regexmodule.o: regexmodule.c
regexpr.o: regexpr.c
rgbimgmodule.o: rgbimgmodule.c
rotormodule.o: rotormodule.c
selectmodule.o: selectmodule.c
sgimodule.o: sgimodule.c
socketmodule.o: socketmodule.c
stdwinmodule.o: stdwinmodule.c
stropmodule.o: stropmodule.c
structmodule.o: structmodule.c
sunaudiodevmodule.o: sunaudiodevmodule.c
svmodule.o: svmodule.c
threadmodule.o: threadmodule.c
timemodule.o: timemodule.c
timingmodule.o: timingmodule.c
xxmodule.o: xxmodule.c
yuvconvert.o: yuvconvert.c
# === Rules added by makesetup ===
arraymodule.o: $(srcdir)/arraymodule.c; $(CC) $(CFLAGS) -c $(srcdir)/arraymodule.c
mathmodule.o: $(srcdir)/mathmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/mathmodule.c
parsermodule.o: $(srcdir)/parsermodule.c; $(CC) $(CFLAGS) -c $(srcdir)/parsermodule.c
posixmodule.o: $(srcdir)/posixmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/posixmodule.c
regexmodule.o: $(srcdir)/regexmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/regexmodule.c
regexpr.o: $(srcdir)/regexpr.c; $(CC) $(CFLAGS) -c $(srcdir)/regexpr.c
stropmodule.o: $(srcdir)/stropmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/stropmodule.c
structmodule.o: $(srcdir)/structmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/structmodule.c
timemodule.o: $(srcdir)/timemodule.c; $(CC) $(CFLAGS) -c $(srcdir)/timemodule.c
fcntlmodule.o: $(srcdir)/fcntlmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/fcntlmodule.c
pwdmodule.o: $(srcdir)/pwdmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/pwdmodule.c
selectmodule.o: $(srcdir)/selectmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/selectmodule.c
socketmodule.o: $(srcdir)/socketmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/socketmodule.c
audioopmodule.o: $(srcdir)/audioopmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/audioopmodule.c
imageopmodule.o: $(srcdir)/imageopmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/imageopmodule.c
rgbimgmodule.o: $(srcdir)/rgbimgmodule.c; $(CC) $(CFLAGS) -c $(srcdir)/rgbimgmodule.c
md5module.o: $(srcdir)/md5module.c; $(CC) $(CFLAGS) -c $(srcdir)/md5module.c
md5c.o: $(srcdir)/md5c.c; $(CC) $(CFLAGS) -c $(srcdir)/md5c.c
rotormodule.o: $(srcdir)/rotormodule.c; $(CC) $(CFLAGS) -c $(srcdir)/rotormodule.c
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY