blob: d819e3516c83ad73c6438c857bf4bad3cd4d2a0a [file] [log] [blame]
Guido van Rossum455b87d1993-12-20 11:43:21 +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
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +00007VERSION= @VERSION@
8
Guido van Rossum455b87d1993-12-20 11:43:21 +00009srcdir= @srcdir@
10VPATH= @srcdir@
11
12CC= @CC@
13RANLIB= @RANLIB@
Guido van Rossumb6775db1994-08-01 11:34:53 +000014AR= @AR@
15
Guido van Rossum2e1d4331993-12-24 10:22:45 +000016DEFS= @DEFS@
Guido van Rossum455b87d1993-12-20 11:43:21 +000017
18
19# === Other things that are customizable but not by configure ===
20
Guido van Rossumb6775db1994-08-01 11:34:53 +000021INCLDIR= $(srcdir)/../Include
Guido van Rossumf0171a11994-08-23 14:06:18 +000022OPT= @OPT@
Guido van Rossumb6775db1994-08-01 11:34:53 +000023CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS)
Guido van Rossum2e1d4331993-12-24 10:22:45 +000024
Guido van Rossum455b87d1993-12-20 11:43:21 +000025MKDEP= mkdep
26SHELL= /bin/sh
27
Guido van Rossum455b87d1993-12-20 11:43:21 +000028
29# === Fixed definitions ===
30
Guido van Rossum06c18081998-10-07 14:41:13 +000031OBJS= abstract.o bufferobject.o \
Guido van Rossumd8b49251996-01-12 01:26:05 +000032 classobject.o cobject.o complexobject.o \
33 fileobject.o floatobject.o \
Guido van Rossum455b87d1993-12-20 11:43:21 +000034 frameobject.o funcobject.o intobject.o listobject.o \
Guido van Rossum96374321997-05-13 21:05:38 +000035 longobject.o dictobject.o methodobject.o \
Guido van Rossumf2d125b1996-07-30 16:45:48 +000036 moduleobject.o object.o rangeobject.o \
37 sliceobject.o stringobject.o \
Guido van Rossum4aa1e632000-03-10 22:55:40 +000038 tupleobject.o typeobject.o \
39 unicodeobject.o unicodectype.o
Guido van Rossum455b87d1993-12-20 11:43:21 +000040
Guido van Rossum06c18081998-10-07 14:41:13 +000041SRCS= abstract.c bufferobject.c \
Guido van Rossumd8b49251996-01-12 01:26:05 +000042 classobject.c cobject.c complexobject.c \
43 fileobject.c floatobject.c \
Guido van Rossum455b87d1993-12-20 11:43:21 +000044 frameobject.c funcobject.c intobject.c listobject.c \
Guido van Rossum96374321997-05-13 21:05:38 +000045 longobject.c dictobject.c methodobject.c \
Guido van Rossumf2d125b1996-07-30 16:45:48 +000046 moduleobject.c object.c rangeobject.c \
47 sliceobject.c stringobject.c \
Guido van Rossum4aa1e632000-03-10 22:55:40 +000048 tupleobject.c typeobject.c \
49 unicodeobject.c unicodectype.c
Guido van Rossum455b87d1993-12-20 11:43:21 +000050
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000051LIBRARY= ../libpython$(VERSION).a
Guido van Rossum455b87d1993-12-20 11:43:21 +000052
53# === Rules ===
54
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000055all: $(OBJS)
Guido van Rossum455b87d1993-12-20 11:43:21 +000056
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000057# This target is used by the master Makefile to add the objects to the library
58add2lib: $(OBJS)
59 $(AR) cr $(LIBRARY) $(OBJS)
60 touch add2lib
Guido van Rossum455b87d1993-12-20 11:43:21 +000061
62clean:
Guido van Rossumf6ca6aa1997-07-19 19:39:57 +000063 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib
Guido van Rossum455b87d1993-12-20 11:43:21 +000064
65clobber: clean
Guido van Rossum2e1d4331993-12-24 10:22:45 +000066 -rm -f *.a tags TAGS
Guido van Rossum455b87d1993-12-20 11:43:21 +000067
Guido van Rossumb6775db1994-08-01 11:34:53 +000068Makefile: $(srcdir)/Makefile.in ../config.status
69 (cd ..; CONFIG_FILES=Objects/Makefile CONFIG_HEADERS= \
70 $(SHELL) config.status)
Guido van Rossum455b87d1993-12-20 11:43:21 +000071
Guido van Rossumb6775db1994-08-01 11:34:53 +000072depend:
73 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
74 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
75
76.PRECIOUS: Makefile
77
Guido van Rossum2271bf71995-07-18 14:30:34 +000078abstract.o: abstract.c
Guido van Rossum06c18081998-10-07 14:41:13 +000079bufferobject.o: bufferobject.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000080classobject.o: classobject.c
Guido van Rossumd8b49251996-01-12 01:26:05 +000081cobject.o: cobject.c
82complexobject.o: complexobject.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000083fileobject.o: fileobject.c
84floatobject.o: floatobject.c
85frameobject.o: frameobject.c
86funcobject.o: funcobject.c
87intobject.o: intobject.c
88listobject.o: listobject.c
89longobject.o: longobject.c
Guido van Rossum96374321997-05-13 21:05:38 +000090dictobject.o: dictobject.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000091methodobject.o: methodobject.c
92moduleobject.o: moduleobject.c
93object.o: object.c
94rangeobject.o: rangeobject.c
Guido van Rossumf2d125b1996-07-30 16:45:48 +000095sliceobject.o: sliceobject.c
Guido van Rossumb6775db1994-08-01 11:34:53 +000096stringobject.o: stringobject.c
97tupleobject.o: tupleobject.c
98typeobject.o: typeobject.c
Guido van Rossum4aa1e632000-03-10 22:55:40 +000099unicodeobject.o: unicodeobject.c
100unicodectype.o: unicodectype.c
Guido van Rossum455b87d1993-12-20 11:43:21 +0000101
102# DO NOT DELETE THIS LINE -- mkdep uses it.
103# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
104# IF YOU PUT ANYTHING HERE IT WILL GO AWAY