annotate Modules/Makefile.pre.in @ 4566:6403c94de50d legacy-trunk

Added safeguard against failure in __del__.
author Guido van Rossum <guido@python.org>
date Wed, 27 Nov 1996 19:39:58 +0000
parents abd0b9ff6759
children 72108faa56bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
1 # META-NOTE: this note is different from the note in the other Makefiles!
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
2 # NOTE: Makefile.pre.in is converted into Makefile.pre by the configure
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
3 # script in the toplevel directory or by ../config.status.
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
4 # Makefile.pre is converted into Makefile by running the makesetup
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
5 # script in the source directory. Once Makefile exists, it can be
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
6 # brought up to date by running "make Makefile". (The makesetup also
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
7 # creates config.c from config.c.in in the source directory.)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
8
3807
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
9 # Interpreter version number, for library destination pathnames
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
10 VERSION= 1.4
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
11
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
12 # === Variables set by makesetup ===
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
13
2055
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
14 MODOBJS= _MODOBJS_
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
15 MODLIBS= _MODLIBS_
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
16
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
17 # === Variables set by configure ===
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
18
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
19 srcdir= @srcdir@
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
20 VPATH= @srcdir@
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
21
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
22 CC= @CC@
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
23 RANLIB= @RANLIB@
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
24 AR= @AR@
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
25
2650
606a097dfd00 small clarifications / lay out
Guido van Rossum <guido@python.org>
parents: 2372
diff changeset
26 OPT= @OPT@
4031
3a200002d80a Incorporate LDFLAGS calculated by configure (for --with-readline)
Guido van Rossum <guido@python.org>
parents: 3971
diff changeset
27 LDFLAGS= @LDFLAGS@
2650
606a097dfd00 small clarifications / lay out
Guido van Rossum <guido@python.org>
parents: 2372
diff changeset
28
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
29 DEFS= @DEFS@
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
30 LIBS= @LIBS@
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
31 LIBM= @LIBM@
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
32 LIBC= @LIBC@
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
33
2931
dce9155b0401 added MACHDEP back in
Guido van Rossum <guido@python.org>
parents: 2895
diff changeset
34 # Machine-dependent subdirectories
dce9155b0401 added MACHDEP back in
Guido van Rossum <guido@python.org>
parents: 2895
diff changeset
35 MACHDEP= @MACHDEP@
dce9155b0401 added MACHDEP back in
Guido van Rossum <guido@python.org>
parents: 2895
diff changeset
36
2055
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
37 # Install prefix for architecture-independent files
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
38 prefix= @prefix@
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
39
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
40 # Install prefix for architecture-dependent files
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
41 exec_prefix= @exec_prefix@
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
42
3895
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
43 # Expanded directories
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
44 BINDIR= $(exec_prefix)/bin
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
45 LIBDIR= $(exec_prefix)/lib
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
46 MANDIR= $(prefix)/man
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
47 INCLUDEDIR= $(prefix)/include
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
48 SCRIPTDIR= $(prefix)/lib
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
49
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
50 # Detailed destination directories
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
51 BINLIBDEST= $(LIBDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
52 LIBDEST= $(SCRIPTDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
53 INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
54 LIBP= $(LIBDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
55
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
56 # Symbols used for using shared libraries
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
57 SO= @SO@
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
58 LDSHARED= @LDSHARED@
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
59 CCSHARED= @CCSHARED@
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
60 LINKFORSHARED= @LINKFORSHARED@
3840
26c200266611 Refinements to installation, now uses $(VERSION) etc.
Guido van Rossum <guido@python.org>
parents: 3807
diff changeset
61 DESTSHARED= $(BINLIBDEST)/sharedmodules
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
62
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
63 # Portable install script (configure doesn't always guess right)
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
64 INSTALL= @srcdir@/../install-sh -c
3840
26c200266611 Refinements to installation, now uses $(VERSION) etc.
Guido van Rossum <guido@python.org>
parents: 3807
diff changeset
65 INSTALL_PROGRAM=${INSTALL} -m 755
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
66 INSTALL_DATA= ${INSTALL} -m 644
4061
4bf01c66cb68 Install shared libs with executable mode -- needed for HPUX,
Guido van Rossum <guido@python.org>
parents: 4031
diff changeset
67 # Shared libraries must be installed with executable mode on some systems;
4bf01c66cb68 Install shared libs with executable mode -- needed for HPUX,
Guido van Rossum <guido@python.org>
parents: 4031
diff changeset
68 # rather than figuring out exactly which, we always give them executable mode.
4292
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
69 # Also, making them read-only seems to be a good idea...
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
70 INSTALL_SHARED= ${INSTALL} -m 555
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
71
3136
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
72 # === Variables that are customizable by hand or by inclusion in Setup ===
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
73
2650
606a097dfd00 small clarifications / lay out
Guido van Rossum <guido@python.org>
parents: 2372
diff changeset
74 LINKCC= $(CC)
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
75 INCLDIR= $(srcdir)/../Include
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
76 CONFIGINCLDIR= ..
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
77 CFLAGS= $(OPT) -I$(INCLDIR) -I$(CONFIGINCLDIR) $(DEFS)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
78
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
79 MKDEP= mkdep
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
80 SHELL= /bin/sh
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
81
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
82 MAKESETUP= $(srcdir)/makesetup
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
83
3136
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
84 # (The makesetup script inserts all variable definitions found
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
85 # found in the Setup file just below the following line.
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
86 # This means that the Setup file can override any of the definitions
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
87 # given before this point, but not any given below.
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
88 # The script insert the definitions in reverse order,
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
89 # for the benefits of independent extensions.)
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
90 # === Definitions added by makesetup ===
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
91
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
92 # === Fixed definitions ===
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
93
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
94 OBJS= $(MODOBJS)
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
95
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
96 ADDOBJS= main.o config.o getpath.o
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
97
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
98 LIB= libModules.a
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
99
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
100 MYLIBS= $(LIB) \
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
101 ../Python/libPython.a \
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
102 ../Objects/libObjects.a \
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
103 ../Parser/libParser.a
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
104
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
105 SYSLIBS= $(LIBM) $(LIBC)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
106
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
107
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
108 # === Rules ===
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
109
1985
15a1eb113a43 always make sharedmods
Guido van Rossum <guido@python.org>
parents: 1884
diff changeset
110 all: $(LIB) ../python sharedmods
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
111
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
112 asharedmodule: $(ASHAREDMODULE)$(SO)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
113
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
114 $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
4031
3a200002d80a Incorporate LDFLAGS calculated by configure (for --with-readline)
Guido van Rossum <guido@python.org>
parents: 3971
diff changeset
115 $(LDSHARED) $(LDFLAGS) -o $(ASHAREDMODULE)$(SO) $(ASHAREDMODULESOBS) \
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
116 $(ASHAREDMODULESEXTRA)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
117
2147
838ef9768821 added $& to $(LIB) target for Sequent
Guido van Rossum <guido@python.org>
parents: 2122
diff changeset
118 $(LIB): $& $(OBJS) Makefile
1818
a710fb001a3f * Modules/Setup.*: removed all except Setup.in (huh? I thought
Guido van Rossum <guido@python.org>
parents: 1798
diff changeset
119 -rm -f $(LIB)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
120 $(AR) cr $(LIB) $(OBJS)
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
121 $(RANLIB) $(LIB)
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
122
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
123 ../python: $(MYLIBS) $(ADDOBJS) Makefile
4031
3a200002d80a Incorporate LDFLAGS calculated by configure (for --with-readline)
Guido van Rossum <guido@python.org>
parents: 3971
diff changeset
124 $(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \
1798
f07c4ff0f794 Move all code from version.c into config.c
Guido van Rossum <guido@python.org>
parents: 1760
diff changeset
125 $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
126 mv python ../python
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
127
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
128 clean:
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
129 -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
130
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
131 clobber: clean
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
132 -rm -f *.a tags TAGS config.c glmodule.c Makefile.pre
3971
14815252c7a3 Also remove *.sl (AIX shared libs) in make clean.
Guido van Rossum <guido@python.org>
parents: 3906
diff changeset
133 -rm -f *.so *.sl so_locations
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
134
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
135 getpath.o: getpath.c Makefile
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
136 $(CC) -c $(CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
3674
3eaf2c673a11 provide access to $(exec_)prefix
Guido van Rossum <guido@python.org>
parents: 3616
diff changeset
137 -DPREFIX='"$(prefix)"' \
3eaf2c673a11 provide access to $(exec_)prefix
Guido van Rossum <guido@python.org>
parents: 3616
diff changeset
138 -DEXEC_PREFIX='"$(exec_prefix)"' \
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
139 $(srcdir)/getpath.c
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
140
4292
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
141 config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup Setup.local
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
142 $(SHELL) $(MAKESETUP) Setup Setup.local
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
143
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
144 Setup:
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
145 cp $(srcdir)/Setup.in Setup
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
146
4292
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
147 Setup.local:
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
148 echo "# Edit this file for local setup changes" >Setup.local
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
149
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
150 Makefile.pre: Makefile.pre.in ../config.status
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
151 (cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
152 $(SHELL) config.status)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
153
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
154 depend:
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
155 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
156 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
157
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
158 .PRECIOUS: ../python
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
159
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
160 glmodule.c: $(srcdir)/cgen.py $(srcdir)/cstubs
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
161 python $(srcdir)/cgen.py <$(srcdir)/cstubs >glmodule.c
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
162
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
163 almodule.o: almodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
164 arraymodule.o: arraymodule.c
1760
48e6b319f3e4 * Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
Guido van Rossum <guido@python.org>
parents: 1746
diff changeset
165 audioop.o: audioop.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
166 cdmodule.o: cdmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
167 clmodule.o: clmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
168 dbmmodule.o: dbmmodule.c
3906
a0fd81688be5 Changes for AIX shared libs
Guido van Rossum <guido@python.org>
parents: 3895
diff changeset
169 errnomodule.o: errnomodule.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
170 fcntlmodule.o: fcntlmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
171 flmodule.o: flmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
172 fmmodule.o: fmmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
173 glmodule.o: glmodule.c
1760
48e6b319f3e4 * Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
Guido van Rossum <guido@python.org>
parents: 1746
diff changeset
174 imageop.o: imageop.c
48e6b319f3e4 * Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
Guido van Rossum <guido@python.org>
parents: 1746
diff changeset
175 imgfile.o: imgfile.c
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2804
diff changeset
176 main.o: main.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
177 mathmodule.o: mathmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
178 md5c.o: md5c.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
179 md5module.o: md5module.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
180 mpzmodule.o: mpzmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
181 nismodule.o: nismodule.c
3906
a0fd81688be5 Changes for AIX shared libs
Guido van Rossum <guido@python.org>
parents: 3895
diff changeset
182 operator.o: operator.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
183 parsermodule.o: parsermodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
184 posixmodule.o: posixmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
185 pwdmodule.o: pwdmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
186 regexmodule.o: regexmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
187 regexpr.o: regexpr.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
188 rgbimgmodule.o: rgbimgmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
189 rotormodule.o: rotormodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
190 selectmodule.o: selectmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
191 sgimodule.o: sgimodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
192 socketmodule.o: socketmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
193 stdwinmodule.o: stdwinmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
194 stropmodule.o: stropmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
195 structmodule.o: structmodule.c
1760
48e6b319f3e4 * Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
Guido van Rossum <guido@python.org>
parents: 1746
diff changeset
196 sunaudiodev.o: sunaudiodev.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
197 svmodule.o: svmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
198 threadmodule.o: threadmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
199 timemodule.o: timemodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
200 timingmodule.o: timingmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
201 xxmodule.o: xxmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
202 yuvconvert.o: yuvconvert.c
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
203
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
204 # Rules to build and install all shared modules
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
205 sharedmods: $(SHAREDMODS)
2212
64eb487ca465 create $(DESTSHARED) library if needed
Guido van Rossum <guido@python.org>
parents: 2147
diff changeset
206 sharedinstall: $(DESTSHARED) $(SHAREDMODS)
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
207 -for i in X $(SHAREDMODS); do \
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
208 if test $$i != X; \
4061
4bf01c66cb68 Install shared libs with executable mode -- needed for HPUX,
Guido van Rossum <guido@python.org>
parents: 4031
diff changeset
209 then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
210 fi; \
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
211 done
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
212
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
213 # Install a shared module from outside of setup
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
214 asharedinstall: $(DESTSHARED) $(ASHAREDMODULE)$(SO)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
215 -for i in dummy $(ASHAREDMODULE)$(SO); do \
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
216 if test -f $$i; then mv $$i $(DESTSHARED)/$$i; fi; done
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
217
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
218 # This is handy when modules need to know where the destination directory is:
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
219 echodestshared: $(DESTSHARED)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
220 echo $(DESTSHARED)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
221
3840
26c200266611 Refinements to installation, now uses $(VERSION) etc.
Guido van Rossum <guido@python.org>
parents: 3807
diff changeset
222 DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
3690
4a07fe1e0b50 Added more entries to create required target subdirectories for sharedinstall.
Guido van Rossum <guido@python.org>
parents: 3674
diff changeset
223
3807
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
224 $(DESTSHARED):
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
225 @for i in $(DESTDIRS); \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
226 do \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
227 if test ! -d $$i; then \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
228 echo "Creating directory $$i"; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
229 mkdir $$i; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
230 chmod 755 $$i; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
231 else true; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
232 fi; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
233 done
2212
64eb487ca465 create $(DESTSHARED) library if needed
Guido van Rossum <guido@python.org>
parents: 2147
diff changeset
234
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
235 # Stuff is appended here by makesetup and make depend