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