blob: 597cb208bf79b409c4bbdbde71631f5c4b531f7b [file] [log] [blame]
Guido van Rossumb898bd21993-12-20 10:43:53 +00001# NOTE: Makefile.in is converted into Makefile by the configure script
2# in the parent directory. Once configure has run, you can recreate
3# the Makefile by running just config.status.
4
5# === Variables set by config.stat ===
6
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +00007VERSION= @VERSION@
8
Guido van Rossumb898bd21993-12-20 10:43:53 +00009srcdir= @srcdir@
10VPATH= @srcdir@
11
12CC= @CC@
13RANLIB= @RANLIB@
Guido van Rossumb6775db1994-08-01 11:34:53 +000014AR= @AR@
15
Guido van Rossum8e454f31993-12-24 10:32:14 +000016DEFS= @DEFS@
17LIBOBJS= @LIBOBJS@
18LIBS= @LIBS@
Guido van Rossumb6775db1994-08-01 11:34:53 +000019DLINCLDIR= @DLINCLDIR@
Guido van Rossumdb3ec1b1999-12-20 21:24:09 +000020DYNLOADFILE= @DYNLOADFILE@
Guido van Rossumb898bd21993-12-20 10:43:53 +000021
Guido van Rossuma1633cd1995-08-04 04:13:00 +000022# Machine-dependent subdirectories
23MACHDEP= @MACHDEP@
24
Guido van Rossumb898bd21993-12-20 10:43:53 +000025
26# === Other things that are customizable but not by configure ===
27
Guido van Rossumb6775db1994-08-01 11:34:53 +000028INCLDIR= $(srcdir)/../Include
Guido van Rossum24f48501994-08-19 15:37:11 +000029OPT= @OPT@
Guido van Rossumb6775db1994-08-01 11:34:53 +000030CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
Guido van Rossum8e454f31993-12-24 10:32:14 +000031
Guido van Rossumb898bd21993-12-20 10:43:53 +000032MKDEP= mkdep
33SHELL= /bin/sh
34
Guido van Rossumb898bd21993-12-20 10:43:53 +000035
36# === Fixed definitions ===
37
Guido van Rossum2a570041998-10-07 22:51:56 +000038AROBJS= \
Barry Warsawf17861b2000-05-26 19:04:27 +000039 bltinmodule.o exceptions.o \
Guido van Rossum2d0f5f92000-03-10 23:04:14 +000040 ceval.o compile.o codecs.o \
Guido van Rossum8e454f31993-12-24 10:32:14 +000041 errors.o \
Guido van Rossuma9414511997-07-19 21:59:47 +000042 frozen.o frozenmain.o \
Guido van Rossuma1633cd1995-08-04 04:13:00 +000043 getargs.o getcompiler.o getcopyright.o getmtime.o \
44 getplatform.o getversion.o graminit.o \
Guido van Rossum1ae940a1995-01-02 19:04:15 +000045 import.o importdl.o \
Guido van Rossumb6775db1994-08-01 11:34:53 +000046 marshal.o modsupport.o mystrtoul.o \
Guido van Rossuma027efa1997-05-05 20:56:21 +000047 pyfpe.o pystate.o pythonrun.o \
Guido van Rossum2a570041998-10-07 22:51:56 +000048 structmember.o sysmodule.o \
Guido van Rossumb6775db1994-08-01 11:34:53 +000049 traceback.o \
Guido van Rossumdb3ec1b1999-12-20 21:24:09 +000050 $(DYNLOADFILE) \
Guido van Rossum8e454f31993-12-24 10:32:14 +000051 $(LIBOBJS)
Guido van Rossum2a570041998-10-07 22:51:56 +000052OBJS= $(AROBJS) sigcheck.o
Guido van Rossumb898bd21993-12-20 10:43:53 +000053
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000054LIBRARY= ../libpython$(VERSION).a
Guido van Rossumb898bd21993-12-20 10:43:53 +000055
56
57# === Rules ===
58
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000059all: $(OBJS)
Guido van Rossumb898bd21993-12-20 10:43:53 +000060
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000061# This target is used by the master Makefile to add the objects to the library
62add2lib: $(OBJS)
Guido van Rossum2a570041998-10-07 22:51:56 +000063 $(AR) cr $(LIBRARY) $(AROBJS)
64 if test ! -f ../Modules/hassignal; \
65 then echo adding sigcheck.o; $(AR) r $(LIBRARY) sigcheck.o; \
66 else echo leaving sigcheck.o out; fi
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000067 touch add2lib
Guido van Rossumb898bd21993-12-20 10:43:53 +000068
Guido van Rossumb898bd21993-12-20 10:43:53 +000069clean:
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000070 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
Guido van Rossumb898bd21993-12-20 10:43:53 +000071
72clobber: clean
Guido van Rossumb6775db1994-08-01 11:34:53 +000073 -rm -f *.a tags TAGS
Guido van Rossumb898bd21993-12-20 10:43:53 +000074
Guido van Rossumb6775db1994-08-01 11:34:53 +000075Makefile: $(srcdir)/Makefile.in ../config.status
76 (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \
77 $(SHELL) config.status)
Guido van Rossumb898bd21993-12-20 10:43:53 +000078
Guido van Rossuma1633cd1995-08-04 04:13:00 +000079getplatform.o: getplatform.c Makefile
80 $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \
81 $(srcdir)/getplatform.c
82
Guido van Rossum1ae940a1995-01-02 19:04:15 +000083importdl.o: importdl.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000084 $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000085
86depend:
87 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
88 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
89
90.PRECIOUS: Makefile
91
92bltinmodule.o: bltinmodule.c
93ceval.o: ceval.c
Guido van Rossum2d0f5f92000-03-10 23:04:14 +000094codecs.o: codecs.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000095compile.o: compile.c
96dup2.o: dup2.c
Guido van Rossumdb3ec1b1999-12-20 21:24:09 +000097dynload_aix.o: dynload_aix.c
98dynload_beos.o: dynload_beos.c
99dynload_dl.o: dynload_dl.c
100dynload_hpux.o: dynload_hpux.c
101dynload_mac.o: dynload_mac.c
102dynload_next.o: dynload_next.c
103dynload_os2.o: dynload_os2.c
104dynload_shlib.o: dynload_shlib.c
105dynload_stub.o: dynload_stub.c
106dynload_win.o: dynload_win.c
Barry Warsawf17861b2000-05-26 19:04:27 +0000107exceptions.o: exceptions.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000108errors.o: errors.c
109fmod.o: fmod.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +0000110frozen.o: frozen.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000111frozenmain.o: frozenmain.c
Guido van Rossum42a24ef1994-10-11 15:08:39 +0000112getargs.o: getargs.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +0000113getcompiler.o: getcompiler.c
114getcopyright.o: getcopyright.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000115getcwd.o: getcwd.c
116getmtime.o: getmtime.c
Guido van Rossum97d68c01995-01-17 16:51:35 +0000117getopt.o: getopt.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +0000118getplatform.o: getplatform.c
Fred Draked8078791998-08-05 21:33:54 +0000119getversion.o: getversion.c ../Include/patchlevel.h
Guido van Rossumb6775db1994-08-01 11:34:53 +0000120graminit.o: graminit.c
121import.o: import.c
Guido van Rossum1ae940a1995-01-02 19:04:15 +0000122importdl.o: importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000123marshal.o: marshal.c
124memmove.o: memmove.c
125modsupport.o: modsupport.c
126mystrtoul.o: mystrtoul.c
Guido van Rossum0ae748d1997-02-14 22:58:07 +0000127pyfpe.o: pyfpe.c
Guido van Rossuma027efa1997-05-05 20:56:21 +0000128pystate.o: pystate.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000129pythonrun.o: pythonrun.c
130sigcheck.o: sigcheck.c
131strerror.o: strerror.c
132strtod.o: strtod.c
133structmember.o: structmember.c
Fred Drake19c6afb2000-08-01 17:46:22 +0000134sysmodule.o: sysmodule.c ../Include/patchlevel.h
Guido van Rossumb6775db1994-08-01 11:34:53 +0000135thread.o: thread.c
136traceback.o: traceback.c
Guido van Rossumb898bd21993-12-20 10:43:53 +0000137
138# DO NOT DELETE THIS LINE -- mkdep uses it.
139# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
140# IF YOU PUT ANYTHING HERE IT WILL GO AWAY