Mercurial > cpython-lru_cache-weakref
annotate Python/Makefile.in @ 5758:bfe9ba74c19e legacy-trunk
Fix problem discovered by Greg McFarlane: when an imported module
replaces its own entry in sys.module, reference count errors ensue;
even if there is no reference count problem, it would be preferable
for the import to yield the new thing in sys.modules anyway (if only
because that's what later imports will yield). This opens the road to
an official hack to implement a __getattr__ like feature for modules:
stick an instance in sys.modules[__name__].
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 10 Jul 1997 18:00:45 +0000 |
| parents | b7871ca930ad |
| children | 64f9ce999437 |
| rev | line source |
|---|---|
| 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@ | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
12 AR= @AR@ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
13 |
| 1450 | 14 DEFS= @DEFS@ |
| 15 LIBOBJS= @LIBOBJS@ | |
| 16 LIBS= @LIBS@ | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
17 DLINCLDIR= @DLINCLDIR@ |
| 1438 | 18 |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
19 # Machine-dependent subdirectories |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
20 MACHDEP= @MACHDEP@ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
21 |
| 1438 | 22 |
| 23 # === Other things that are customizable but not by configure === | |
| 24 | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
25 INCLDIR= $(srcdir)/../Include |
|
1805
5b92a083934d
errors.c: clear traceback too.
Guido van Rossum <guido@python.org>
parents:
1793
diff
changeset
|
26 OPT= @OPT@ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
27 CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS) |
| 1450 | 28 |
| 1438 | 29 MKDEP= mkdep |
| 30 SHELL= /bin/sh | |
| 31 | |
| 32 | |
| 33 # === Fixed definitions === | |
| 34 | |
| 1450 | 35 OBJS= \ |
| 36 bltinmodule.o \ | |
|
5357
bc2e3334048e
Removed cgensupport.[co] (to ../Modules).
Guido van Rossum <guido@python.org>
parents:
5119
diff
changeset
|
37 ceval.o compile.o \ |
| 1450 | 38 errors.o \ |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
39 frozen.o \ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
40 getargs.o getcompiler.o getcopyright.o getmtime.o \ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
41 getplatform.o getversion.o graminit.o \ |
|
2052
d7e91437f0a2
Lots of changes, most minor (fatal() instead of abort(), use of
Guido van Rossum <guido@python.org>
parents:
1976
diff
changeset
|
42 import.o importdl.o \ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
43 marshal.o modsupport.o mystrtoul.o \ |
|
5405
b7871ca930ad
Massive changes for separate thread state management.
Guido van Rossum <guido@python.org>
parents:
5357
diff
changeset
|
44 pyfpe.o pystate.o pythonrun.o \ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
45 sigcheck.o structmember.o sysmodule.o \ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
46 traceback.o \ |
| 1450 | 47 $(LIBOBJS) |
| 1438 | 48 |
| 1450 | 49 LIB= libPython.a |
| 1438 | 50 |
| 51 SYSLIBS= -lm | |
| 52 | |
| 53 | |
| 54 # === Rules === | |
| 55 | |
|
2294
6263e2fd9398
init_frozen non-static, frozenmain.c not in Makefile any more
Guido van Rossum <guido@python.org>
parents:
2258
diff
changeset
|
56 all: $(LIB) |
| 1438 | 57 |
|
2147
838ef9768821
added $& to $(LIB) target for Sequent
Guido van Rossum <guido@python.org>
parents:
2052
diff
changeset
|
58 $(LIB): $& $(OBJS) |
|
1805
5b92a083934d
errors.c: clear traceback too.
Guido van Rossum <guido@python.org>
parents:
1793
diff
changeset
|
59 -rm -f $(LIB) |
| 1438 | 60 $(AR) cr $(LIB) $(OBJS) |
| 1450 | 61 $(RANLIB) $(LIB) |
| 1438 | 62 |
| 63 clean: | |
| 1450 | 64 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej |
| 1438 | 65 |
| 66 clobber: clean | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
67 -rm -f *.a tags TAGS |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
68 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
69 Makefile: $(srcdir)/Makefile.in ../config.status |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
70 (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
71 $(SHELL) config.status) |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
72 |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
73 getplatform.o: getplatform.c Makefile |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
74 $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
75 $(srcdir)/getplatform.c |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
76 |
|
2052
d7e91437f0a2
Lots of changes, most minor (fatal() instead of abort(), use of
Guido van Rossum <guido@python.org>
parents:
1976
diff
changeset
|
77 importdl.o: importdl.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
78 $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
79 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
80 depend: |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
81 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
82 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'` |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
83 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
84 .PRECIOUS: Makefile |
| 1438 | 85 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
86 bltinmodule.o: bltinmodule.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
87 ceval.o: ceval.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
88 compile.o: compile.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
89 dup2.o: dup2.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
90 errors.o: errors.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
91 fmod.o: fmod.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
92 frozen.o: frozen.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
93 frozenmain.o: frozenmain.c |
|
1976
e23639879cd0
add getargs.o:getargs.c rule
Guido van Rossum <guido@python.org>
parents:
1913
diff
changeset
|
94 getargs.o: getargs.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
95 getcompiler.o: getcompiler.c |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
96 getcopyright.o: getcopyright.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
97 getcwd.o: getcwd.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
98 getmtime.o: getmtime.c |
|
2165
f49b6372492f
added getopt.c to object, permanently
Guido van Rossum <guido@python.org>
parents:
2147
diff
changeset
|
99 getopt.o: getopt.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
100 getplatform.o: getplatform.c |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
101 getversion.o: getversion.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
102 graminit.o: graminit.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
103 import.o: import.c |
|
2052
d7e91437f0a2
Lots of changes, most minor (fatal() instead of abort(), use of
Guido van Rossum <guido@python.org>
parents:
1976
diff
changeset
|
104 importdl.o: importdl.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
105 marshal.o: marshal.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
106 memmove.o: memmove.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
107 modsupport.o: modsupport.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
108 mystrtoul.o: mystrtoul.c |
|
5119
bda01a374762
Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
2893
diff
changeset
|
109 pyfpe.o: pyfpe.c |
|
5405
b7871ca930ad
Massive changes for separate thread state management.
Guido van Rossum <guido@python.org>
parents:
5357
diff
changeset
|
110 pystate.o: pystate.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
111 pythonrun.o: pythonrun.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
112 sigcheck.o: sigcheck.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
113 strerror.o: strerror.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
114 strtod.o: strtod.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
115 structmember.o: structmember.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
116 sysmodule.o: sysmodule.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
117 thread.o: thread.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
118 traceback.o: traceback.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
119 version.o: version.c |
| 1438 | 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 |
