|
1438
|
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@
|
|
1450
|
12 DEFS= @DEFS@
|
|
|
13 LIBOBJS= @LIBOBJS@
|
|
|
14 LIBS= @LIBS@
|
|
1438
|
15
|
|
|
16
|
|
|
17 # === Other things that are customizable but not by configure ===
|
|
|
18
|
|
1450
|
19 TOP= ..
|
|
|
20 INCLDIR= $(TOP)/Py
|
|
|
21 OPT= -g
|
|
|
22 CFLAGS= $(OPT) -I$(INCLDIR) $(DEFS)
|
|
|
23
|
|
1438
|
24 AR= ar
|
|
|
25 MKDEP= mkdep
|
|
|
26 SHELL= /bin/sh
|
|
|
27
|
|
|
28
|
|
|
29 # === Fixed definitions ===
|
|
|
30
|
|
1450
|
31 OBJS= \
|
|
|
32 arraymodule.o \
|
|
|
33 bltinmodule.o \
|
|
|
34 ceval.o cgensupport.o compile.o \
|
|
|
35 errors.o \
|
|
|
36 frozenmain.o \
|
|
|
37 getmtime.o graminit.o \
|
|
|
38 import.o \
|
|
|
39 marshal.o mathmodule.o modsupport.o \
|
|
|
40 parsermodule.o posixmodule.o pythonmain.o pythonrun.o \
|
|
|
41 regexmodule.o regexpr.o \
|
|
|
42 stropmodule.o structmember.o structmodule.o sysmodule.o \
|
|
|
43 timemodule.o traceback.o \
|
|
|
44 version.o \
|
|
|
45 $(LIBOBJS)
|
|
1438
|
46
|
|
1450
|
47 LIB= libPython.a
|
|
1438
|
48
|
|
|
49 MYLIBS= $(LIB) ../Objects/libObjects.a ../Parser/libParser.a
|
|
|
50
|
|
|
51 SYSLIBS= -lm
|
|
|
52
|
|
|
53
|
|
|
54 # === Rules ===
|
|
|
55
|
|
|
56 all: $(LIB) python
|
|
|
57
|
|
|
58 $(LIB): $(OBJS)
|
|
|
59 $(AR) cr $(LIB) $(OBJS)
|
|
1450
|
60 $(RANLIB) $(LIB)
|
|
1438
|
61
|
|
1450
|
62 python: config.o $(MYLIBS)
|
|
|
63 $(CC) config.o $(MYLIBS) $(LIBS) $(SYSLIBS) -o python
|
|
|
64
|
|
|
65 config.o: Makefile
|
|
1438
|
66
|
|
|
67 clean:
|
|
1450
|
68 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
|
|
1438
|
69
|
|
|
70 clobber: clean
|
|
1450
|
71 -rm -f *.a python tags TAGS
|
|
1438
|
72
|
|
1450
|
73 Makefile: Makefile.in $(TOP)/config.status
|
|
|
74 CONFIG_FILES=Makefile $(SHELL) $(TOP)/config.status
|
|
1438
|
75
|
|
|
76 depend: $(SRCS)
|
|
|
77 $(MKDEP) $(CFLAGS) $(SRCS) $(PGENSRCS)
|
|
|
78
|
|
|
79 # DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
|
80 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
|
|
81 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|