Mercurial > cpython-lru_cache-weakref
annotate Python/Makefile.in @ 9808:0bfaff11c573 legacy-trunk
Ty Sarna writes:
The following patches (relative to 1.5.2b1) enable Python dynamic
loading to work on NetBSD platforms that use ELF (presnetly mips and
alpha systems). They automaticly determine wether the system is ELF or
a.out rather than using astatic list of platforms so that when other
NetBSD platforms move to ELF, python will continue to work without
change.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 07 Jan 1999 21:50:41 +0000 |
| parents | a2397255a6d3 |
| children | 2aab47484012 |
| 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 | |
| 5859 | 7 VERSION= @VERSION@ |
| 8 | |
| 1438 | 9 srcdir= @srcdir@ |
| 10 VPATH= @srcdir@ | |
| 11 | |
| 12 CC= @CC@ | |
| 13 RANLIB= @RANLIB@ | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
14 AR= @AR@ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
15 |
| 1450 | 16 DEFS= @DEFS@ |
| 17 LIBOBJS= @LIBOBJS@ | |
| 18 LIBS= @LIBS@ | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
19 DLINCLDIR= @DLINCLDIR@ |
| 1438 | 20 |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
21 # Machine-dependent subdirectories |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
22 MACHDEP= @MACHDEP@ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
23 |
| 1438 | 24 |
| 25 # === Other things that are customizable but not by configure === | |
| 26 | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
27 INCLDIR= $(srcdir)/../Include |
|
1805
5b92a083934d
errors.c: clear traceback too.
Guido van Rossum <guido@python.org>
parents:
1793
diff
changeset
|
28 OPT= @OPT@ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
29 CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS) |
| 1450 | 30 |
| 1438 | 31 MKDEP= mkdep |
| 32 SHELL= /bin/sh | |
| 33 | |
| 34 | |
| 35 # === Fixed definitions === | |
| 36 | |
|
9298
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
37 AROBJS= \ |
| 1450 | 38 bltinmodule.o \ |
|
5357
bc2e3334048e
Removed cgensupport.[co] (to ../Modules).
Guido van Rossum <guido@python.org>
parents:
5119
diff
changeset
|
39 ceval.o compile.o \ |
| 1450 | 40 errors.o \ |
|
5887
2a172b4950b6
frozenmain.c is now also in the library,
Guido van Rossum <guido@python.org>
parents:
5859
diff
changeset
|
41 frozen.o frozenmain.o \ |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
42 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
|
43 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
|
44 import.o importdl.o \ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
45 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
|
46 pyfpe.o pystate.o pythonrun.o \ |
|
9298
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
47 structmember.o sysmodule.o \ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
48 traceback.o \ |
| 1450 | 49 $(LIBOBJS) |
|
9298
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
50 OBJS= $(AROBJS) sigcheck.o |
| 1438 | 51 |
| 5859 | 52 LIBRARY= ../libpython$(VERSION).a |
| 1438 | 53 |
| 54 | |
| 55 # === Rules === | |
| 56 | |
| 5859 | 57 all: $(OBJS) |
| 1438 | 58 |
| 5859 | 59 # This target is used by the master Makefile to add the objects to the library |
| 60 add2lib: $(OBJS) | |
|
9298
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
61 $(AR) cr $(LIBRARY) $(AROBJS) |
|
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
62 if test ! -f ../Modules/hassignal; \ |
|
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
63 then echo adding sigcheck.o; $(AR) r $(LIBRARY) sigcheck.o; \ |
|
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
64 else echo leaving sigcheck.o out; fi |
| 5859 | 65 touch add2lib |
| 1438 | 66 |
| 67 clean: | |
| 5859 | 68 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib |
| 1438 | 69 |
| 70 clobber: clean | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
71 -rm -f *.a tags TAGS |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
72 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
73 Makefile: $(srcdir)/Makefile.in ../config.status |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
74 (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
|
75 $(SHELL) config.status) |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
76 |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
77 getplatform.o: getplatform.c Makefile |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
78 $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
79 $(srcdir)/getplatform.c |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
80 |
|
2052
d7e91437f0a2
Lots of changes, most minor (fatal() instead of abort(), use of
Guido van Rossum <guido@python.org>
parents:
1976
diff
changeset
|
81 importdl.o: importdl.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
82 $(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
|
83 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
84 depend: |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
85 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
86 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'` |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
87 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
88 .PRECIOUS: Makefile |
| 1438 | 89 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
90 bltinmodule.o: bltinmodule.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
91 ceval.o: ceval.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
92 compile.o: compile.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
93 dup2.o: dup2.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
94 errors.o: errors.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
95 fmod.o: fmod.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
96 frozen.o: frozen.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
97 frozenmain.o: frozenmain.c |
|
1976
e23639879cd0
add getargs.o:getargs.c rule
Guido van Rossum <guido@python.org>
parents:
1913
diff
changeset
|
98 getargs.o: getargs.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
99 getcompiler.o: getcompiler.c |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
100 getcopyright.o: getcopyright.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
101 getcwd.o: getcwd.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
102 getmtime.o: getmtime.c |
|
2165
f49b6372492f
added getopt.c to object, permanently
Guido van Rossum <guido@python.org>
parents:
2147
diff
changeset
|
103 getopt.o: getopt.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
104 getplatform.o: getplatform.c |
|
8836
f1ca41995e62
Make getversion.o dependent on ../Include/patchlevel.h as well.
Fred Drake <fdrake@acm.org>
parents:
5887
diff
changeset
|
105 getversion.o: getversion.c ../Include/patchlevel.h |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
106 graminit.o: graminit.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
107 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
|
108 importdl.o: importdl.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
109 marshal.o: marshal.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
110 memmove.o: memmove.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
111 modsupport.o: modsupport.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
112 mystrtoul.o: mystrtoul.c |
|
5119
bda01a374762
Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
2893
diff
changeset
|
113 pyfpe.o: pyfpe.c |
|
5405
b7871ca930ad
Massive changes for separate thread state management.
Guido van Rossum <guido@python.org>
parents:
5357
diff
changeset
|
114 pystate.o: pystate.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
115 pythonrun.o: pythonrun.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
116 sigcheck.o: sigcheck.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
117 strerror.o: strerror.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
118 strtod.o: strtod.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
119 structmember.o: structmember.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
120 sysmodule.o: sysmodule.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
121 thread.o: thread.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
122 traceback.o: traceback.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
123 version.o: version.c |
| 1438 | 124 |
| 125 # DO NOT DELETE THIS LINE -- mkdep uses it. | |
| 126 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
| 127 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
