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 | |
| 7 | srcdir= @srcdir@ |
| 8 | VPATH= @srcdir@ |
| 9 | |
| 10 | CC= @CC@ |
| 11 | RANLIB= @RANLIB@ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 12 | AR= @AR@ |
| 13 | |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 14 | DEFS= @DEFS@ |
| 15 | LIBOBJS= @LIBOBJS@ |
| 16 | LIBS= @LIBS@ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 17 | DLINCLDIR= @DLINCLDIR@ |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 18 | |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 19 | # Machine-dependent subdirectories |
| 20 | MACHDEP= @MACHDEP@ |
| 21 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 22 | |
| 23 | # === Other things that are customizable but not by configure === |
| 24 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 25 | INCLDIR= $(srcdir)/../Include |
Guido van Rossum | 24f4850 | 1994-08-19 15:37:11 +0000 | [diff] [blame] | 26 | OPT= @OPT@ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 27 | CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS) |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 28 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 29 | MKDEP= mkdep |
| 30 | SHELL= /bin/sh |
| 31 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 32 | |
| 33 | # === Fixed definitions === |
| 34 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 35 | OBJS= \ |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 36 | bltinmodule.o \ |
| 37 | ceval.o cgensupport.o compile.o \ |
| 38 | errors.o \ |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 39 | frozen.o \ |
| 40 | getargs.o getcompiler.o getcopyright.o getmtime.o \ |
| 41 | getplatform.o getversion.o graminit.o \ |
Guido van Rossum | 1ae940a | 1995-01-02 19:04:15 +0000 | [diff] [blame] | 42 | import.o importdl.o \ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 43 | marshal.o modsupport.o mystrtoul.o \ |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 44 | pythonrun.o \ |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 45 | sigcheck.o structmember.o sysmodule.o \ |
| 46 | traceback.o \ |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 47 | $(LIBOBJS) |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 48 | |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 49 | LIB= libPython.a |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 50 | |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 51 | SYSLIBS= -lm |
| 52 | |
| 53 | |
| 54 | # === Rules === |
| 55 | |
Guido van Rossum | 0b34490 | 1995-02-07 15:35:27 +0000 | [diff] [blame] | 56 | all: $(LIB) |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 57 | |
Guido van Rossum | 087579e | 1995-01-17 16:11:29 +0000 | [diff] [blame] | 58 | $(LIB): $& $(OBJS) |
Guido van Rossum | 24f4850 | 1994-08-19 15:37:11 +0000 | [diff] [blame] | 59 | -rm -f $(LIB) |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 60 | $(AR) cr $(LIB) $(OBJS) |
Guido van Rossum | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 61 | $(RANLIB) $(LIB) |
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 | 8e454f3 | 1993-12-24 10:32:14 +0000 | [diff] [blame] | 64 | -rm -f *.o core *~ [@,#]* *.old *.orig *.rej |
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 |
| 88 | cgensupport.o: cgensupport.c |
| 89 | compile.o: compile.c |
| 90 | dup2.o: dup2.c |
| 91 | errors.o: errors.c |
| 92 | fmod.o: fmod.c |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 93 | frozen.o: frozen.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 94 | frozenmain.o: frozenmain.c |
Guido van Rossum | 42a24ef | 1994-10-11 15:08:39 +0000 | [diff] [blame] | 95 | getargs.o: getargs.c |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 96 | getcompiler.o: getcompiler.c |
| 97 | getcopyright.o: getcopyright.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 98 | getcwd.o: getcwd.c |
| 99 | getmtime.o: getmtime.c |
Guido van Rossum | 97d68c0 | 1995-01-17 16:51:35 +0000 | [diff] [blame] | 100 | getopt.o: getopt.c |
Guido van Rossum | a1633cd | 1995-08-04 04:13:00 +0000 | [diff] [blame] | 101 | getplatform.o: getplatform.c |
| 102 | getversion.o: getversion.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 103 | graminit.o: graminit.c |
| 104 | import.o: import.c |
Guido van Rossum | 1ae940a | 1995-01-02 19:04:15 +0000 | [diff] [blame] | 105 | importdl.o: importdl.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 106 | marshal.o: marshal.c |
| 107 | memmove.o: memmove.c |
| 108 | modsupport.o: modsupport.c |
| 109 | mystrtoul.o: mystrtoul.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 110 | pythonrun.o: pythonrun.c |
| 111 | sigcheck.o: sigcheck.c |
| 112 | strerror.o: strerror.c |
| 113 | strtod.o: strtod.c |
| 114 | structmember.o: structmember.c |
| 115 | sysmodule.o: sysmodule.c |
| 116 | thread.o: thread.c |
| 117 | traceback.o: traceback.c |
| 118 | version.o: version.c |
Guido van Rossum | b898bd2 | 1993-12-20 10:43:53 +0000 | [diff] [blame] | 119 | |
| 120 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 121 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 122 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |