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