1994-08-01 11:34:53 +00:00
|
|
|
# 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.)
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1995-01-10 17:43:33 +00:00
|
|
|
LINKCC = $(CC)
|
1994-08-01 11:34:53 +00:00
|
|
|
# === Variables set by makesetup ===
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1995-01-02 19:30:30 +00:00
|
|
|
MODOBJS= _MODOBJS_
|
|
|
|
MODLIBS= _MODLIBS_
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
# === Definitions added by makesetup ===
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
# === Variables set by configure ===
|
1994-01-02 00:26:09 +00:00
|
|
|
|
|
|
|
srcdir= @srcdir@
|
|
|
|
VPATH= @srcdir@
|
|
|
|
|
|
|
|
CC= @CC@
|
|
|
|
RANLIB= @RANLIB@
|
1994-08-01 11:34:53 +00:00
|
|
|
AR= @AR@
|
|
|
|
|
1994-01-02 00:26:09 +00:00
|
|
|
DEFS= @DEFS@
|
|
|
|
LIBS= @LIBS@
|
1994-08-01 11:34:53 +00:00
|
|
|
LIBM= @LIBM@
|
|
|
|
LIBC= @LIBC@
|
|
|
|
|
1994-09-12 10:42:20 +00:00
|
|
|
# Machine-dependent subdirectories
|
|
|
|
MACHDEP= @MACHDEP@
|
|
|
|
|
1995-01-02 19:30:30 +00:00
|
|
|
# Install prefix for architecture-independent files
|
|
|
|
prefix= @prefix@
|
|
|
|
|
|
|
|
# Install prefix for architecture-dependent files
|
|
|
|
exec_prefix= @exec_prefix@
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-09-12 10:42:20 +00:00
|
|
|
# Symbols used for using shared libraries
|
|
|
|
SO= @SO@
|
|
|
|
LDSHARED= @LDSHARED@
|
|
|
|
CCSHARED= @CCSHARED@
|
|
|
|
LINKFORSHARED= @LINKFORSHARED@
|
1995-01-02 19:30:30 +00:00
|
|
|
DESTSHARED= $(exec_prefix)/lib/python/$(MACHDEP)
|
1994-09-12 10:42:20 +00:00
|
|
|
|
1994-01-02 00:26:09 +00:00
|
|
|
|
|
|
|
# === Variables that are customizable by hand ===
|
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
INCLDIR= $(srcdir)/../Include
|
1994-08-23 13:51:25 +00:00
|
|
|
OPT= @OPT@
|
1994-08-01 11:34:53 +00:00
|
|
|
CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
|
1994-01-02 00:26:09 +00:00
|
|
|
|
|
|
|
MKDEP= mkdep
|
|
|
|
SHELL= /bin/sh
|
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
MAKESETUP= $(srcdir)/makesetup
|
1994-01-02 00:26:09 +00:00
|
|
|
|
|
|
|
# === Fixed definitions ===
|
|
|
|
|
|
|
|
OBJS= $(MODOBJS)
|
|
|
|
|
|
|
|
LIB= libModules.a
|
|
|
|
|
|
|
|
MYLIBS= $(LIB) \
|
|
|
|
../Python/libPython.a \
|
|
|
|
../Objects/libObjects.a \
|
|
|
|
../Parser/libParser.a
|
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
SYSLIBS= $(LIBM) $(LIBC)
|
1994-01-02 00:26:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
# === Rules ===
|
|
|
|
|
1994-10-20 21:59:38 +00:00
|
|
|
all: $(LIB) ../python sharedmods
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1995-01-17 16:11:29 +00:00
|
|
|
$(LIB): $& $(OBJS) Makefile
|
1994-08-23 13:51:25 +00:00
|
|
|
-rm -f $(LIB)
|
1994-01-02 00:26:09 +00:00
|
|
|
$(AR) cr $(LIB) $(OBJS)
|
|
|
|
$(RANLIB) $(LIB)
|
|
|
|
|
1994-09-12 10:42:20 +00:00
|
|
|
../python: config.o $(MYLIBS) Makefile
|
1995-01-10 17:43:33 +00:00
|
|
|
$(LINKCC) $(OPT) config.o $(LINKFORSHARED) \
|
1994-08-19 12:03:04 +00:00
|
|
|
$(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
|
1994-08-01 11:34:53 +00:00
|
|
|
mv python ../python
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-08-19 12:03:04 +00:00
|
|
|
config.o: config.c Makefile $(MYLIBS)
|
1995-01-10 17:43:33 +00:00
|
|
|
$(LINKCC) $(CFLAGS) -DPYTHONPATH=\"$(PYTHONPATH)\" -c config.c
|
1994-01-02 00:26:09 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
|
|
|
|
|
|
|
|
clobber: clean
|
1994-08-01 11:34:53 +00:00
|
|
|
-rm -f *.a tags TAGS config.c glmodule.c Makefile.pre
|
1994-09-12 15:35:36 +00:00
|
|
|
-rm -f *.so so_locations
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup
|
|
|
|
$(SHELL) $(MAKESETUP) Setup
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
Setup:
|
|
|
|
cp $(srcdir)/Setup.in Setup
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
Makefile.pre: Makefile.pre.in ../config.status
|
|
|
|
(cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
|
|
|
|
$(SHELL) config.status)
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1994-08-01 11:34:53 +00:00
|
|
|
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
|
1994-08-05 13:44:50 +00:00
|
|
|
audioop.o: audioop.c
|
1994-08-01 11:34:53 +00:00
|
|
|
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
|
1994-08-05 13:44:50 +00:00
|
|
|
imageop.o: imageop.c
|
|
|
|
imgfile.o: imgfile.c
|
1994-08-01 11:34:53 +00:00
|
|
|
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
|
1994-08-05 13:44:50 +00:00
|
|
|
sunaudiodev.o: sunaudiodev.c
|
1994-08-01 11:34:53 +00:00
|
|
|
svmodule.o: svmodule.c
|
|
|
|
threadmodule.o: threadmodule.c
|
|
|
|
timemodule.o: timemodule.c
|
|
|
|
timingmodule.o: timingmodule.c
|
|
|
|
xxmodule.o: xxmodule.c
|
|
|
|
yuvconvert.o: yuvconvert.c
|
|
|
|
|
1994-09-12 10:42:20 +00:00
|
|
|
# Rules to build and install all shared modules
|
|
|
|
sharedmods: $(SHAREDMODS)
|
1995-01-22 00:47:59 +00:00
|
|
|
sharedinstall: $(DESTSHARED) $(SHAREDMODS)
|
1995-02-17 15:12:13 +00:00
|
|
|
-for i in dummy $(SHAREDMODS); do \
|
1995-01-02 19:30:30 +00:00
|
|
|
if test -f $$i; then mv $$i $(DESTSHARED)/$$i; fi; done
|
1994-01-02 00:26:09 +00:00
|
|
|
|
1995-01-22 00:47:59 +00:00
|
|
|
$(DESTSHARED):
|
|
|
|
mkdir $(DESTSHARED)
|
|
|
|
|
1994-09-12 10:42:20 +00:00
|
|
|
# Stuff is appended here by makesetup and make depend
|