Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 1 | # 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 Rossum | f6ca6aa | 1997-07-19 19:39:57 +0000 | [diff] [blame] | 7 | VERSION= @VERSION@ |
| 8 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 9 | srcdir= @srcdir@ |
| 10 | VPATH= @srcdir@ |
| 11 | |
| 12 | CC= @CC@ |
| 13 | RANLIB= @RANLIB@ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 14 | AR= @AR@ |
| 15 | |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 16 | DEFS= @DEFS@ |
| 17 | LIBOBJS= @LIBOBJS@ |
| 18 | LIBS= @LIBS@ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 19 | DLINCLDIR= @DLINCLDIR@ |
Guido van Rossum | db3ec1b | 1999-12-20 21:24:09 +0000 | [diff] [blame] | 20 | DYNLOADFILE= @DYNLOADFILE@ |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 21 | |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 22 | # Machine-dependent subdirectories |
| 23 | MACHDEP= @MACHDEP@ |
| 24 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 25 | |
| 26 | # === Other things that are customizable but not by configure === |
| 27 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 28 | INCLDIR= $(srcdir)/../Include |
Guido van Rossum | 24f4850 | 1994-08-19 15:37:11 +0000 | [diff] [blame] | 29 | OPT= @OPT@ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 30 | CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS) |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 31 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 32 | MKDEP= mkdep |
| 33 | SHELL= /bin/sh |
| 34 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 35 | |
| 36 | # === Fixed definitions === |
| 37 | |
Guido van Rossum | 2a57004 | 1998-10-07 22:51:56 +0000 | [diff] [blame] | 38 | AROBJS= \ |
Barry Warsaw | f17861b | 2000-05-26 19:04:27 +0000 | [diff] [blame] | 39 | bltinmodule.o exceptions.o \ |
Guido van Rossum | 2d0f5f9 | 2000-03-10 23:04:14 +0000 | [diff] [blame] | 40 | ceval.o compile.o codecs.o \ |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 41 | errors.o \ |
Guido van Rossum | a941451 | 1997-07-19 21:59:47 +0000 | [diff] [blame] | 42 | frozen.o frozenmain.o \ |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 43 | getargs.o getcompiler.o getcopyright.o getmtime.o \ |
| 44 | getplatform.o getversion.o graminit.o \ |
Guido van Rossum | 1ae940a | 1995-01-02 19:04:15 +0000 | [diff] [blame] | 45 | import.o importdl.o \ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 46 | marshal.o modsupport.o mystrtoul.o \ |
Guido van Rossum | a027efa | 1997-05-05 20:56:21 +0000 | [diff] [blame] | 47 | pyfpe.o pystate.o pythonrun.o \ |
Guido van Rossum | 2a57004 | 1998-10-07 22:51:56 +0000 | [diff] [blame] | 48 | structmember.o sysmodule.o \ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 49 | traceback.o \ |
Guido van Rossum | db3ec1b | 1999-12-20 21:24:09 +0000 | [diff] [blame] | 50 | $(DYNLOADFILE) \ |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 51 | $(LIBOBJS) |
Guido van Rossum | 2a57004 | 1998-10-07 22:51:56 +0000 | [diff] [blame] | 52 | OBJS= $(AROBJS) sigcheck.o |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 53 | |
Guido van Rossum | f6ca6aa | 1997-07-19 19:39:57 +0000 | [diff] [blame] | 54 | LIBRARY= ../libpython$(VERSION).a |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 55 | |
| 56 | |
| 57 | # === Rules === |
| 58 | |
Guido van Rossum | f6ca6aa | 1997-07-19 19:39:57 +0000 | [diff] [blame] | 59 | all: $(OBJS) |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 60 | |
Guido van Rossum | f6ca6aa | 1997-07-19 19:39:57 +0000 | [diff] [blame] | 61 | # This target is used by the master Makefile to add the objects to the library |
| 62 | add2lib: $(OBJS) |
Guido van Rossum | 2a57004 | 1998-10-07 22:51:56 +0000 | [diff] [blame] | 63 | $(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 Rossum | f6ca6aa | 1997-07-19 19:39:57 +0000 | [diff] [blame] | 67 | touch add2lib |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 68 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 69 | clean: |
Guido van Rossum | f6ca6aa | 1997-07-19 19:39:57 +0000 | [diff] [blame] | 70 | -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 71 | |
| 72 | clobber: clean |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 73 | -rm -f *.a tags TAGS |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 74 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 75 | Makefile: $(srcdir)/Makefile.in ../config.status |
| 76 | (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \ |
| 77 | $(SHELL) config.status) |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 78 | |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 79 | getplatform.o: getplatform.c Makefile |
| 80 | $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \ |
| 81 | $(srcdir)/getplatform.c |
| 82 | |
Guido van Rossum | 1ae940a | 1995-01-02 19:04:15 +0000 | [diff] [blame] | 83 | importdl.o: importdl.c |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 84 | $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 85 | |
| 86 | depend: |
| 87 | $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \ |
| 88 | sed 's|\(.*\)\.o|$(srcdir)/\1.c|'` |
| 89 | |
| 90 | .PRECIOUS: Makefile |
| 91 | |
| 92 | bltinmodule.o: bltinmodule.c |
| 93 | ceval.o: ceval.c |
Guido van Rossum | 2d0f5f9 | 2000-03-10 23:04:14 +0000 | [diff] [blame] | 94 | codecs.o: codecs.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 95 | compile.o: compile.c |
| 96 | dup2.o: dup2.c |
Guido van Rossum | db3ec1b | 1999-12-20 21:24:09 +0000 | [diff] [blame] | 97 | dynload_aix.o: dynload_aix.c |
| 98 | dynload_beos.o: dynload_beos.c |
| 99 | dynload_dl.o: dynload_dl.c |
| 100 | dynload_hpux.o: dynload_hpux.c |
| 101 | dynload_mac.o: dynload_mac.c |
| 102 | dynload_next.o: dynload_next.c |
| 103 | dynload_os2.o: dynload_os2.c |
| 104 | dynload_shlib.o: dynload_shlib.c |
| 105 | dynload_stub.o: dynload_stub.c |
| 106 | dynload_win.o: dynload_win.c |
Barry Warsaw | f17861b | 2000-05-26 19:04:27 +0000 | [diff] [blame] | 107 | exceptions.o: exceptions.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 108 | errors.o: errors.c |
| 109 | fmod.o: fmod.c |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 110 | frozen.o: frozen.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 111 | frozenmain.o: frozenmain.c |
Guido van Rossum | 42a24ef | 1994-10-11 15:08:39 +0000 | [diff] [blame] | 112 | getargs.o: getargs.c |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 113 | getcompiler.o: getcompiler.c |
| 114 | getcopyright.o: getcopyright.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 115 | getcwd.o: getcwd.c |
| 116 | getmtime.o: getmtime.c |
Guido van Rossum | 97d68c0 | 1995-01-17 16:51:35 +0000 | [diff] [blame] | 117 | getopt.o: getopt.c |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 118 | getplatform.o: getplatform.c |
Fred Drake | d807879 | 1998-08-05 21:33:54 +0000 | [diff] [blame] | 119 | getversion.o: getversion.c ../Include/patchlevel.h |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 120 | graminit.o: graminit.c |
| 121 | import.o: import.c |
Guido van Rossum | 1ae940a | 1995-01-02 19:04:15 +0000 | [diff] [blame] | 122 | importdl.o: importdl.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 123 | marshal.o: marshal.c |
| 124 | memmove.o: memmove.c |
| 125 | modsupport.o: modsupport.c |
| 126 | mystrtoul.o: mystrtoul.c |
Guido van Rossum | 0ae748d | 1997-02-14 22:58:07 +0000 | [diff] [blame] | 127 | pyfpe.o: pyfpe.c |
Guido van Rossum | a027efa | 1997-05-05 20:56:21 +0000 | [diff] [blame] | 128 | pystate.o: pystate.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 129 | pythonrun.o: pythonrun.c |
| 130 | sigcheck.o: sigcheck.c |
| 131 | strerror.o: strerror.c |
| 132 | strtod.o: strtod.c |
| 133 | structmember.o: structmember.c |
Fred Drake | 19c6afb | 2000-08-01 17:46:22 +0000 | [diff] [blame^] | 134 | sysmodule.o: sysmodule.c ../Include/patchlevel.h |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 135 | thread.o: thread.c |
| 136 | traceback.o: traceback.c |
| 137 | version.o: version.c |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 138 | |
| 139 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 140 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 141 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |