blob: 1888609e50fb838b7fc9873a9b773c122eb5e4ec [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 Rossum2a570041998-10-07 22:51:56 +000037AROBJS= \
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 Rossum2a570041998-10-07 22:51:56 +000047 structmember.o sysmodule.o \
Guido van Rossumb6775db1994-08-01 11:34:53 +000048 traceback.o \
Guido van Rossum8e454f31993-12-24 10:32:14 +000049 $(LIBOBJS)
Guido van Rossum2a570041998-10-07 22:51:56 +000050OBJS= $(AROBJS) sigcheck.o
Guido van Rossumb898bd21993-12-20 10:43:53 +000051
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000052LIBRARY= ../libpython$(VERSION).a
Guido van Rossumb898bd21993-12-20 10:43:53 +000053
54
55# === Rules ===
56
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000057all: $(OBJS)
Guido van Rossumb898bd21993-12-20 10:43:53 +000058
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000059# This target is used by the master Makefile to add the objects to the library
60add2lib: $(OBJS)
Guido van Rossum2a570041998-10-07 22:51:56 +000061 $(AR) cr $(LIBRARY) $(AROBJS)
62 if test ! -f ../Modules/hassignal; \
63 then echo adding sigcheck.o; $(AR) r $(LIBRARY) sigcheck.o; \
64 else echo leaving sigcheck.o out; fi
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000065 touch add2lib
Guido van Rossumb898bd21993-12-20 10:43:53 +000066
Guido van Rossumb898bd21993-12-20 10:43:53 +000067clean:
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000068 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
Guido van Rossumb898bd21993-12-20 10:43:53 +000069
70clobber: clean
Guido van Rossumb6775db1994-08-01 11:34:53 +000071 -rm -f *.a tags TAGS
Guido van Rossumb898bd21993-12-20 10:43:53 +000072
Guido van Rossumb6775db1994-08-01 11:34:53 +000073Makefile: $(srcdir)/Makefile.in ../config.status
74 (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \
75 $(SHELL) config.status)
Guido van Rossumb898bd21993-12-20 10:43:53 +000076
Guido van Rossuma1633cd1995-08-04 04:13:00 +000077getplatform.o: getplatform.c Makefile
78 $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \
79 $(srcdir)/getplatform.c
80
Guido van Rossum1ae940a1995-01-02 19:04:15 +000081importdl.o: importdl.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000082 $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000083
84depend:
85 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
86 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
87
88.PRECIOUS: Makefile
89
90bltinmodule.o: bltinmodule.c
91ceval.o: ceval.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000092compile.o: compile.c
93dup2.o: dup2.c
94errors.o: errors.c
95fmod.o: fmod.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000096frozen.o: frozen.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000097frozenmain.o: frozenmain.c
Guido van Rossum42a24ef1994-10-11 15:08:39 +000098getargs.o: getargs.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000099getcompiler.o: getcompiler.c
100getcopyright.o: getcopyright.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000101getcwd.o: getcwd.c
102getmtime.o: getmtime.c
Guido van Rossum97d68c01995-01-17 16:51:35 +0000103getopt.o: getopt.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +0000104getplatform.o: getplatform.c
Fred Draked8078791998-08-05 21:33:54 +0000105getversion.o: getversion.c ../Include/patchlevel.h
Guido van Rossumb6775db1994-08-01 11:34:53 +0000106graminit.o: graminit.c
107import.o: import.c
Guido van Rossum1ae940a1995-01-02 19:04:15 +0000108importdl.o: importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000109marshal.o: marshal.c
110memmove.o: memmove.c
111modsupport.o: modsupport.c
112mystrtoul.o: mystrtoul.c
Guido van Rossum0ae748d1997-02-14 22:58:07 +0000113pyfpe.o: pyfpe.c
Guido van Rossuma027efa1997-05-05 20:56:21 +0000114pystate.o: pystate.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000115pythonrun.o: pythonrun.c
116sigcheck.o: sigcheck.c
117strerror.o: strerror.c
118strtod.o: strtod.c
119structmember.o: structmember.c
120sysmodule.o: sysmodule.c
121thread.o: thread.c
122traceback.o: traceback.c
123version.o: version.c
Guido van Rossumb898bd21993-12-20 10:43:53 +0000124
125# DO NOT DELETE THIS LINE -- mkdep uses it.
126# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
127# IF YOU PUT ANYTHING HERE IT WILL GO AWAY