blob: 5be2532c4d6d9728d05950774324acaa3f0e09ab [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
7srcdir= @srcdir@
8VPATH= @srcdir@
9
10CC= @CC@
11RANLIB= @RANLIB@
Guido van Rossumb6775db1994-08-01 11:34:53 +000012AR= @AR@
13
Guido van Rossum8e454f31993-12-24 10:32:14 +000014DEFS= @DEFS@
15LIBOBJS= @LIBOBJS@
16LIBS= @LIBS@
Guido van Rossumb6775db1994-08-01 11:34:53 +000017DLINCLDIR= @DLINCLDIR@
Guido van Rossumb898bd21993-12-20 10:43:53 +000018
Guido van Rossuma1633cd1995-08-04 04:13:00 +000019# Machine-dependent subdirectories
20MACHDEP= @MACHDEP@
21
Guido van Rossumb898bd21993-12-20 10:43:53 +000022
23# === Other things that are customizable but not by configure ===
24
Guido van Rossumb6775db1994-08-01 11:34:53 +000025INCLDIR= $(srcdir)/../Include
Guido van Rossum24f48501994-08-19 15:37:11 +000026OPT= @OPT@
Guido van Rossumb6775db1994-08-01 11:34:53 +000027CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
Guido van Rossum8e454f31993-12-24 10:32:14 +000028
Guido van Rossumb898bd21993-12-20 10:43:53 +000029MKDEP= mkdep
30SHELL= /bin/sh
31
Guido van Rossumb898bd21993-12-20 10:43:53 +000032
33# === Fixed definitions ===
34
Guido van Rossumb898bd21993-12-20 10:43:53 +000035OBJS= \
Guido van Rossum8e454f31993-12-24 10:32:14 +000036 bltinmodule.o \
37 ceval.o cgensupport.o compile.o \
38 errors.o \
Guido van Rossuma1633cd1995-08-04 04:13:00 +000039 frozen.o \
40 getargs.o getcompiler.o getcopyright.o getmtime.o \
41 getplatform.o getversion.o graminit.o \
Guido van Rossum1ae940a1995-01-02 19:04:15 +000042 import.o importdl.o \
Guido van Rossumb6775db1994-08-01 11:34:53 +000043 marshal.o modsupport.o mystrtoul.o \
Guido van Rossuma1633cd1995-08-04 04:13:00 +000044 pythonrun.o \
Guido van Rossumb6775db1994-08-01 11:34:53 +000045 sigcheck.o structmember.o sysmodule.o \
46 traceback.o \
Guido van Rossum8e454f31993-12-24 10:32:14 +000047 $(LIBOBJS)
Guido van Rossumb898bd21993-12-20 10:43:53 +000048
Guido van Rossum8e454f31993-12-24 10:32:14 +000049LIB= libPython.a
Guido van Rossumb898bd21993-12-20 10:43:53 +000050
Guido van Rossumb898bd21993-12-20 10:43:53 +000051SYSLIBS= -lm
52
53
54# === Rules ===
55
Guido van Rossum0b344901995-02-07 15:35:27 +000056all: $(LIB)
Guido van Rossumb898bd21993-12-20 10:43:53 +000057
Guido van Rossum087579e1995-01-17 16:11:29 +000058$(LIB): $& $(OBJS)
Guido van Rossum24f48501994-08-19 15:37:11 +000059 -rm -f $(LIB)
Guido van Rossumb898bd21993-12-20 10:43:53 +000060 $(AR) cr $(LIB) $(OBJS)
Guido van Rossum8e454f31993-12-24 10:32:14 +000061 $(RANLIB) $(LIB)
Guido van Rossumb898bd21993-12-20 10:43:53 +000062
Guido van Rossumb898bd21993-12-20 10:43:53 +000063clean:
Guido van Rossum8e454f31993-12-24 10:32:14 +000064 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
Guido van Rossumb898bd21993-12-20 10:43:53 +000065
66clobber: clean
Guido van Rossumb6775db1994-08-01 11:34:53 +000067 -rm -f *.a tags TAGS
Guido van Rossumb898bd21993-12-20 10:43:53 +000068
Guido van Rossumb6775db1994-08-01 11:34:53 +000069Makefile: $(srcdir)/Makefile.in ../config.status
70 (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \
71 $(SHELL) config.status)
Guido van Rossumb898bd21993-12-20 10:43:53 +000072
Guido van Rossuma1633cd1995-08-04 04:13:00 +000073getplatform.o: getplatform.c Makefile
74 $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \
75 $(srcdir)/getplatform.c
76
Guido van Rossum1ae940a1995-01-02 19:04:15 +000077importdl.o: importdl.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000078 $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000079
80depend:
81 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
82 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
83
84.PRECIOUS: Makefile
85
86bltinmodule.o: bltinmodule.c
87ceval.o: ceval.c
88cgensupport.o: cgensupport.c
89compile.o: compile.c
90dup2.o: dup2.c
91errors.o: errors.c
92fmod.o: fmod.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000093frozen.o: frozen.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000094frozenmain.o: frozenmain.c
Guido van Rossum42a24ef1994-10-11 15:08:39 +000095getargs.o: getargs.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +000096getcompiler.o: getcompiler.c
97getcopyright.o: getcopyright.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000098getcwd.o: getcwd.c
99getmtime.o: getmtime.c
Guido van Rossum97d68c01995-01-17 16:51:35 +0000100getopt.o: getopt.c
Guido van Rossuma1633cd1995-08-04 04:13:00 +0000101getplatform.o: getplatform.c
102getversion.o: getversion.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000103graminit.o: graminit.c
104import.o: import.c
Guido van Rossum1ae940a1995-01-02 19:04:15 +0000105importdl.o: importdl.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000106marshal.o: marshal.c
107memmove.o: memmove.c
108modsupport.o: modsupport.c
109mystrtoul.o: mystrtoul.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000110pythonrun.o: pythonrun.c
111sigcheck.o: sigcheck.c
112strerror.o: strerror.c
113strtod.o: strtod.c
114structmember.o: structmember.c
115sysmodule.o: sysmodule.c
116thread.o: thread.c
117traceback.o: traceback.c
118version.o: version.c
Guido van Rossumb898bd21993-12-20 10:43:53 +0000119
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