Mercurial > cpython-lru_cache-weakref
annotate Python/Makefile.in @ 15374:a826a46bae54 legacy-trunk
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
regardless of whether the system getopt() does what we want. This avoids the
hassle with prototypes and externs, and the check to see if the system
getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to
avoid name clashes. Add new include file to define the right symbols. Fix
Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on
Python to provide it.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Fri, 03 Nov 2000 08:18:37 +0000 |
| parents | 22b590f8cf53 |
| children |
| 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@ |
|
11603
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
20 DYNLOADFILE= @DYNLOADFILE@ |
| 1438 | 21 |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
22 # Machine-dependent subdirectories |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
23 MACHDEP= @MACHDEP@ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
24 |
| 1438 | 25 |
| 26 # === Other things that are customizable but not by configure === | |
| 27 | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
28 INCLDIR= $(srcdir)/../Include |
|
1805
5b92a083934d
errors.c: clear traceback too.
Guido van Rossum <guido@python.org>
parents:
1793
diff
changeset
|
29 OPT= @OPT@ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
30 CFLAGS= $(OPT) -I$(INCLDIR) -I.. $(DEFS) |
| 1450 | 31 |
| 1438 | 32 MKDEP= mkdep |
| 33 SHELL= /bin/sh | |
| 34 | |
| 35 | |
| 36 # === Fixed definitions === | |
| 37 | |
|
9298
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
38 AROBJS= \ |
|
12770
fb4039b1cf8d
Added exceptions.o to the list of object to build in this subdir.
Barry Warsaw <barry@python.org>
parents:
11978
diff
changeset
|
39 bltinmodule.o exceptions.o \ |
|
11978
3c620f65eaa5
Marc-Andre Lemburg: add new unicode files
Guido van Rossum <guido@python.org>
parents:
11603
diff
changeset
|
40 ceval.o compile.o codecs.o \ |
| 1450 | 41 errors.o \ |
|
5887
2a172b4950b6
frozenmain.c is now also in the library,
Guido van Rossum <guido@python.org>
parents:
5859
diff
changeset
|
42 frozen.o frozenmain.o \ |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
43 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
|
44 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
|
45 import.o importdl.o \ |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
46 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
|
47 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
|
48 structmember.o sysmodule.o \ |
|
15374
a826a46bae54
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
Thomas Wouters <thomas@python.org>
parents:
14143
diff
changeset
|
49 traceback.o getopt.o \ |
|
11603
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
50 $(DYNLOADFILE) \ |
| 1450 | 51 $(LIBOBJS) |
|
9298
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
52 OBJS= $(AROBJS) sigcheck.o |
| 1438 | 53 |
| 5859 | 54 LIBRARY= ../libpython$(VERSION).a |
| 1438 | 55 |
| 56 | |
| 57 # === Rules === | |
| 58 | |
| 5859 | 59 all: $(OBJS) |
| 1438 | 60 |
| 5859 | 61 # This target is used by the master Makefile to add the objects to the library |
| 62 add2lib: $(OBJS) | |
|
9298
a2397255a6d3
Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.
Guido van Rossum <guido@python.org>
parents:
8836
diff
changeset
|
63 $(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
|
64 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
|
65 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
|
66 else echo leaving sigcheck.o out; fi |
| 5859 | 67 touch add2lib |
| 1438 | 68 |
| 69 clean: | |
| 5859 | 70 -rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib |
| 1438 | 71 |
| 72 clobber: clean | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
73 -rm -f *.a tags TAGS |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
74 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
75 Makefile: $(srcdir)/Makefile.in ../config.status |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
76 (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
|
77 $(SHELL) config.status) |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
78 |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
79 getplatform.o: getplatform.c Makefile |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
80 $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \ |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
81 $(srcdir)/getplatform.c |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
82 |
|
2052
d7e91437f0a2
Lots of changes, most minor (fatal() instead of abort(), use of
Guido van Rossum <guido@python.org>
parents:
1976
diff
changeset
|
83 importdl.o: importdl.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
84 $(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
|
85 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
86 depend: |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
87 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
88 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'` |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
89 |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
90 .PRECIOUS: Makefile |
| 1438 | 91 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
92 bltinmodule.o: bltinmodule.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
93 ceval.o: ceval.c |
|
11978
3c620f65eaa5
Marc-Andre Lemburg: add new unicode files
Guido van Rossum <guido@python.org>
parents:
11603
diff
changeset
|
94 codecs.o: codecs.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
95 compile.o: compile.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
96 dup2.o: dup2.c |
|
11603
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
97 dynload_aix.o: dynload_aix.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
98 dynload_beos.o: dynload_beos.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
99 dynload_dl.o: dynload_dl.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
100 dynload_hpux.o: dynload_hpux.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
101 dynload_mac.o: dynload_mac.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
102 dynload_next.o: dynload_next.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
103 dynload_os2.o: dynload_os2.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
104 dynload_shlib.o: dynload_shlib.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
105 dynload_stub.o: dynload_stub.c |
|
2aab47484012
Support for selecting the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
9298
diff
changeset
|
106 dynload_win.o: dynload_win.c |
|
12770
fb4039b1cf8d
Added exceptions.o to the list of object to build in this subdir.
Barry Warsaw <barry@python.org>
parents:
11978
diff
changeset
|
107 exceptions.o: exceptions.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
108 errors.o: errors.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
109 fmod.o: fmod.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
110 frozen.o: frozen.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
111 frozenmain.o: frozenmain.c |
|
1976
e23639879cd0
add getargs.o:getargs.c rule
Guido van Rossum <guido@python.org>
parents:
1913
diff
changeset
|
112 getargs.o: getargs.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
113 getcompiler.o: getcompiler.c |
|
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
114 getcopyright.o: getcopyright.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
115 getcwd.o: getcwd.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
116 getmtime.o: getmtime.c |
|
2165
f49b6372492f
added getopt.c to object, permanently
Guido van Rossum <guido@python.org>
parents:
2147
diff
changeset
|
117 getopt.o: getopt.c |
|
2893
450ad5496407
split cofnfig.c in 1000 little files :-)
Guido van Rossum <guido@python.org>
parents:
2294
diff
changeset
|
118 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
|
119 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
|
120 graminit.o: graminit.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
121 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
|
122 importdl.o: importdl.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
123 marshal.o: marshal.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
124 memmove.o: memmove.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
125 modsupport.o: modsupport.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
126 mystrtoul.o: mystrtoul.c |
|
5119
bda01a374762
Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
2893
diff
changeset
|
127 pyfpe.o: pyfpe.c |
|
5405
b7871ca930ad
Massive changes for separate thread state management.
Guido van Rossum <guido@python.org>
parents:
5357
diff
changeset
|
128 pystate.o: pystate.c |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
129 pythonrun.o: pythonrun.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
130 sigcheck.o: sigcheck.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
131 strerror.o: strerror.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
132 strtod.o: strtod.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
133 structmember.o: structmember.c |
|
13788
f66513a0dea5
Include the dependence of sysmodule on the patchlevel.h include, so
Fred Drake <fdrake@acm.org>
parents:
12770
diff
changeset
|
134 sysmodule.o: sysmodule.c ../Include/patchlevel.h |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
135 thread.o: thread.c |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1450
diff
changeset
|
136 traceback.o: traceback.c |
| 1438 | 137 |
| 138 # DO NOT DELETE THIS LINE -- mkdep uses it. | |
| 139 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
| 140 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
