blob: 4a8361cbf0ab8e73c1e1f298950ab1a5908b4f34 [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 Rossumb898bd21993-12-20 10:43:53 +000020
Guido van Rossuma1633cd1995-08-04 04:13:00 +000021# Machine-dependent subdirectories
22MACHDEP= @MACHDEP@
23
Guido van Rossumb898bd21993-12-20 10:43:53 +000024
25# === Other things that are customizable but not by configure ===
26
Guido van Rossumb6775db1994-08-01 11:34:53 +000027INCLDIR= $(srcdir)/../Include
Guido van Rossum24f48501994-08-19 15:37:11 +000028OPT= @OPT@
Guido van Rossumb6775db1994-08-01 11:34:53 +000029CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
Guido van Rossum8e454f31993-12-24 10:32:14 +000030
Guido van Rossumb898bd21993-12-20 10:43:53 +000031MKDEP= mkdep
32SHELL= /bin/sh
33
Guido van Rossumb898bd21993-12-20 10:43:53 +000034
35# === Fixed definitions ===
36
Guido van Rossumb898bd21993-12-20 10:43:53 +000037OBJS= \
Guido van Rossum8e454f31993-12-24 10:32:14 +000038 bltinmodule.o \
Guido van Rossum58a6ac51997-04-29 15:42:53 +000039 ceval.o compile.o \
Guido van Rossum8e454f31993-12-24 10:32:14 +000040 errors.o \
Guido van Rossuma9414511997-07-19 21:59:47 +000041 frozen.o frozenmain.o \
Guido van Rossuma1633cd1995-08-04 04:13:00 +000042 getargs.o getcompiler.o getcopyright.o getmtime.o \
43 getplatform.o getversion.o graminit.o \
Guido van Rossum1ae940a1995-01-02 19:04:15 +000044 import.o importdl.o \
Guido van Rossumb6775db1994-08-01 11:34:53 +000045 marshal.o modsupport.o mystrtoul.o \
Guido van Rossuma027efa1997-05-05 20:56:21 +000046 pyfpe.o pystate.o pythonrun.o \
Guido van Rossumb6775db1994-08-01 11:34:53 +000047 sigcheck.o structmember.o sysmodule.o \
48 traceback.o \
Guido van Rossum8e454f31993-12-24 10:32:14 +000049 $(LIBOBJS)
Guido van Rossumb898bd21993-12-20 10:43:53 +000050
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000051LIBRARY= ../libpython$(VERSION).a
Guido van Rossumb898bd21993-12-20 10:43:53 +000052
53
54# === Rules ===
55
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000056all: $(OBJS)
Guido van Rossumb898bd21993-12-20 10:43:53 +000057
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000058# This target is used by the master Makefile to add the objects to the library
59add2lib: $(OBJS)
60 $(AR) cr $(LIBRARY) $(OBJS)
61 touch add2lib
Guido van Rossumb898bd21993-12-20 10:43:53 +000062
Guido van Rossumb898bd21993-12-20 10:43:53 +000063clean:
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000064 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
Guido van Rossumb898bd21993-12-20 10:43:53 +000065
66clobber: clean
Guido van Rossumb6775db1994-08-01 11:34:53 +000067 -rm -f *.a tags TAGS
Guido van Rossumb898bd21993-12-20 10:43:53 +000068
Guido van Rossumb6775db1994-08-01 11:34:53 +000069Makefile: $(srcdir)/Makefile.in ../config.status
70 (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \
71 $(SHELL) config.status)
Guido van Rossumb898bd21993-12-20 10:43:53 +000072
Guido van Rossuma1633cd1995-08-04 04:13:00 +000073getplatform.o: getplatform.c Makefile
74 $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \
75 $(srcdir)/getplatform.c
76
Guido van Rossum1ae940a1995-01-02 19:04:15 +000077importdl.o: importdl.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000078 $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000079
80depend:
81 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
82 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
83
84.PRECIOUS: Makefile
85
86bltinmodule.o: bltinmodule.c
87ceval.o: ceval.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000088compile.o: compile.c
89dup2.o: dup2.c
90errors.o: errors.c
91fmod.o: fmod.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000092frozen.o: frozen.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000093frozenmain.o: frozenmain.c
Guido van Rossum42a24ef1994-10-11 15:08:39 +000094getargs.o: getargs.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000095getcompiler.o: getcompiler.c
96getcopyright.o: getcopyright.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000097getcwd.o: getcwd.c
98getmtime.o: getmtime.c
Guido van Rossum97d68c01995-01-17 16:51:35 +000099getopt.o: getopt.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +0000100getplatform.o: getplatform.c
101getversion.o: getversion.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000102graminit.o: graminit.c
103import.o: import.c
Guido van Rossum1ae940a1995-01-02 19:04:15 +0000104importdl.o: importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000105marshal.o: marshal.c
106memmove.o: memmove.c
107modsupport.o: modsupport.c
108mystrtoul.o: mystrtoul.c
Guido van Rossum0ae748d1997-02-14 22:58:07 +0000109pyfpe.o: pyfpe.c
Guido van Rossuma027efa1997-05-05 20:56:21 +0000110pystate.o: pystate.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000111pythonrun.o: pythonrun.c
112sigcheck.o: sigcheck.c
113strerror.o: strerror.c
114strtod.o: strtod.c
115structmember.o: structmember.c
116sysmodule.o: sysmodule.c
117thread.o: thread.c
118traceback.o: traceback.c
119version.o: version.c
Guido van Rossumb898bd21993-12-20 10:43:53 +0000120
121# DO NOT DELETE THIS LINE -- mkdep uses it.
122# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
123# IF YOU PUT ANYTHING HERE IT WILL GO AWAY