annotate Modules/Makefile.pre.in @ 5817:48b94de85bf3 legacy-trunk

Extensive changes by AMK.
author Guido van Rossum <guido@python.org>
date Thu, 17 Jul 1997 16:29:42 +0000
parents 47362fd9071b
children 64f9ce999437
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
5030
00c3cb107e5f Bump install version to 1.5.
Guido van Rossum <guido@python.org>
parents: 5016
diff changeset
10 VERSION= 1.5
3807
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@
5054
e9c442d0936f Added LDLAST variable, substituted by configure script, for the final
Guido van Rossum <guido@python.org>
parents: 5030
diff changeset
28 LDLAST= @LDLAST@
2650
606a097dfd00 small clarifications / lay out
Guido van Rossum <guido@python.org>
parents: 2372
diff changeset
29
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
30 DEFS= @DEFS@
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
31 LIBS= @LIBS@
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
32 LIBM= @LIBM@
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
33 LIBC= @LIBC@
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
34
2931
dce9155b0401 added MACHDEP back in
Guido van Rossum <guido@python.org>
parents: 2895
diff changeset
35 # Machine-dependent subdirectories
dce9155b0401 added MACHDEP back in
Guido van Rossum <guido@python.org>
parents: 2895
diff changeset
36 MACHDEP= @MACHDEP@
dce9155b0401 added MACHDEP back in
Guido van Rossum <guido@python.org>
parents: 2895
diff changeset
37
2055
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
38 # Install prefix for architecture-independent files
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
39 prefix= @prefix@
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
40
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
41 # Install prefix for architecture-dependent files
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 2007
diff changeset
42 exec_prefix= @exec_prefix@
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
43
3895
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
44 # Expanded directories
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
45 BINDIR= $(exec_prefix)/bin
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
46 LIBDIR= $(exec_prefix)/lib
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
47 MANDIR= $(prefix)/man
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
48 INCLUDEDIR= $(prefix)/include
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
49 SCRIPTDIR= $(prefix)/lib
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
50
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
51 # Detailed destination directories
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
52 BINLIBDEST= $(LIBDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
53 LIBDEST= $(SCRIPTDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
54 INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
55 LIBP= $(LIBDIR)/python$(VERSION)
33e5d1d42cc2 Collect together all detailed installation directories.
Guido van Rossum <guido@python.org>
parents: 3840
diff changeset
56
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
57 # Symbols used for using shared libraries
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
58 SO= @SO@
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
59 LDSHARED= @LDSHARED@
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
60 CCSHARED= @CCSHARED@
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
61 LINKFORSHARED= @LINKFORSHARED@
3840
26c200266611 Refinements to installation, now uses $(VERSION) etc.
Guido van Rossum <guido@python.org>
parents: 3807
diff changeset
62 DESTSHARED= $(BINLIBDEST)/sharedmodules
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
63
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
64 # 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
65 INSTALL= @srcdir@/../install-sh -c
3840
26c200266611 Refinements to installation, now uses $(VERSION) etc.
Guido van Rossum <guido@python.org>
parents: 3807
diff changeset
66 INSTALL_PROGRAM=${INSTALL} -m 755
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
67 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
68 # 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
69 # 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
70 # 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
71 INSTALL_SHARED= ${INSTALL} -m 555
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
72
3136
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
73 # === 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
74
2650
606a097dfd00 small clarifications / lay out
Guido van Rossum <guido@python.org>
parents: 2372
diff changeset
75 LINKCC= $(CC)
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
76 INCLDIR= $(srcdir)/../Include
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
77 CONFIGINCLDIR= ..
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
78 CFLAGS= $(OPT) -I$(INCLDIR) -I$(CONFIGINCLDIR) $(DEFS)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
79
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
80 MKDEP= mkdep
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
81 SHELL= /bin/sh
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
82
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
83 MAKESETUP= $(srcdir)/makesetup
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
84
3136
1b4b8a4fb463 Move some stuff around so customizations in Setup take precedence
Guido van Rossum <guido@python.org>
parents: 2931
diff changeset
85 # (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
86 # 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
87 # 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
88 # 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
89 # 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
90 # 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
91 # === 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
92
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
93 # === Fixed definitions ===
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
94
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
95 OBJS= $(MODOBJS)
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
96
5356
47362fd9071b Added cgensupport.o.
Guido van Rossum <guido@python.org>
parents: 5299
diff changeset
97 # XXX Should getpath.o (and may be others) be added to OBJS?
47362fd9071b Added cgensupport.o.
Guido van Rossum <guido@python.org>
parents: 5299
diff changeset
98
5016
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
99 ADDOBJS= main.o config.o getpath.o getbuildinfo.o
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
100
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
101 LIB= libModules.a
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
102
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
103 MYLIBS= $(LIB) \
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
104 ../Python/libPython.a \
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
105 ../Objects/libObjects.a \
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
106 ../Parser/libParser.a
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
107
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
108 SYSLIBS= $(LIBM) $(LIBC)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
109
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
110
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
111 # === Rules ===
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
112
1985
15a1eb113a43 always make sharedmods
Guido van Rossum <guido@python.org>
parents: 1884
diff changeset
113 all: $(LIB) ../python sharedmods
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
114
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
115 asharedmodule: $(ASHAREDMODULE)$(SO)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
116
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
117 $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
4031
3a200002d80a Incorporate LDFLAGS calculated by configure (for --with-readline)
Guido van Rossum <guido@python.org>
parents: 3971
diff changeset
118 $(LDSHARED) $(LDFLAGS) -o $(ASHAREDMODULE)$(SO) $(ASHAREDMODULESOBS) \
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
119 $(ASHAREDMODULESEXTRA)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
120
2147
838ef9768821 added $& to $(LIB) target for Sequent
Guido van Rossum <guido@python.org>
parents: 2122
diff changeset
121 $(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
122 -rm -f $(LIB)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
123 $(AR) cr $(LIB) $(OBJS)
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
124 $(RANLIB) $(LIB)
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
125
5016
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
126 ../python: $(MYLIBS) $(ADDOBJS) Makefile buildno
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
127 expr `cat buildno` + 1 >@buildno
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
128 mv @buildno buildno
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
129 $(CC) -c $(CFLAGS) -DBUILD=`cat buildno` $(srcdir)/getbuildinfo.c
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
130 $(AR) r $(LIB) getbuildinfo.o
4031
3a200002d80a Incorporate LDFLAGS calculated by configure (for --with-readline)
Guido van Rossum <guido@python.org>
parents: 3971
diff changeset
131 $(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \
5054
e9c442d0936f Added LDLAST variable, substituted by configure script, for the final
Guido van Rossum <guido@python.org>
parents: 5030
diff changeset
132 $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
133 mv python ../python
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
134
5016
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
135 buildno:
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
136 echo 0 >buildno
f1af097a5e5d work build# into version string
Guido van Rossum <guido@python.org>
parents: 4770
diff changeset
137
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
138 clean:
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
139 -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
140
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
141 clobber: clean
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
142 -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
143 -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
144
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
145 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
146 $(CC) -c $(CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
3674
3eaf2c673a11 provide access to $(exec_)prefix
Guido van Rossum <guido@python.org>
parents: 3616
diff changeset
147 -DPREFIX='"$(prefix)"' \
3eaf2c673a11 provide access to $(exec_)prefix
Guido van Rossum <guido@python.org>
parents: 3616
diff changeset
148 -DEXEC_PREFIX='"$(exec_prefix)"' \
5299
b523e6e7ac61 Pass VERSION and VPATH into getpath.c.
Guido van Rossum <guido@python.org>
parents: 5054
diff changeset
149 -DVERSION='"$(VERSION)"' \
b523e6e7ac61 Pass VERSION and VPATH into getpath.c.
Guido van Rossum <guido@python.org>
parents: 5054
diff changeset
150 -DVPATH='"$(VPATH)"' \
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
151 $(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
152
4292
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
153 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
154 $(SHELL) $(MAKESETUP) Setup Setup.local
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
155
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
156 Setup:
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
157 cp $(srcdir)/Setup.in Setup
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
158
4292
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
159 Setup.local:
abd0b9ff6759 Added Setup.local feature; make shared libs readonly
Guido van Rossum <guido@python.org>
parents: 4061
diff changeset
160 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
161
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
162 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
163 (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
164 $(SHELL) config.status)
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
165
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
166 depend:
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
167 $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
168 sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
169
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
170 .PRECIOUS: ../python
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
171
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
172 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
173 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
174
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
175 almodule.o: almodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
176 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
177 audioop.o: audioop.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
178 cdmodule.o: cdmodule.c
5356
47362fd9071b Added cgensupport.o.
Guido van Rossum <guido@python.org>
parents: 5299
diff changeset
179 cgensupport.o: cgensupport.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
180 clmodule.o: clmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
181 dbmmodule.o: dbmmodule.c
3906
a0fd81688be5 Changes for AIX shared libs
Guido van Rossum <guido@python.org>
parents: 3895
diff changeset
182 errnomodule.o: errnomodule.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
183 fcntlmodule.o: fcntlmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
184 flmodule.o: flmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
185 fmmodule.o: fmmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
186 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
187 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
188 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
189 main.o: main.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
190 mathmodule.o: mathmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
191 md5c.o: md5c.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
192 md5module.o: md5module.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
193 mpzmodule.o: mpzmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
194 nismodule.o: nismodule.c
3906
a0fd81688be5 Changes for AIX shared libs
Guido van Rossum <guido@python.org>
parents: 3895
diff changeset
195 operator.o: operator.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
196 parsermodule.o: parsermodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
197 posixmodule.o: posixmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
198 pwdmodule.o: pwdmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
199 regexmodule.o: regexmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
200 regexpr.o: regexpr.c
4770
72108faa56bf Added Jeremy's resource module.
Guido van Rossum <guido@python.org>
parents: 4292
diff changeset
201 resource.o: resource.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
202 rgbimgmodule.o: rgbimgmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
203 rotormodule.o: rotormodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
204 selectmodule.o: selectmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
205 sgimodule.o: sgimodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
206 socketmodule.o: socketmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
207 stdwinmodule.o: stdwinmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
208 stropmodule.o: stropmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
209 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
210 sunaudiodev.o: sunaudiodev.c
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
211 svmodule.o: svmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
212 threadmodule.o: threadmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
213 timemodule.o: timemodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
214 timingmodule.o: timingmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
215 xxmodule.o: xxmodule.c
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1469
diff changeset
216 yuvconvert.o: yuvconvert.c
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
217
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
218 # Rules to build and install all shared modules
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
219 sharedmods: $(SHAREDMODS)
2212
64eb487ca465 create $(DESTSHARED) library if needed
Guido van Rossum <guido@python.org>
parents: 2147
diff changeset
220 sharedinstall: $(DESTSHARED) $(SHAREDMODS)
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
221 -for i in X $(SHAREDMODS); do \
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
222 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
223 then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
3616
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
224 fi; \
0e5a7b22016c Use ../install-sh to install files.
Guido van Rossum <guido@python.org>
parents: 3136
diff changeset
225 done
1469
3059218f630b Added some files to new module
Guido van Rossum <guido@python.org>
parents:
diff changeset
226
3776
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
227 # 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
228 asharedinstall: $(DESTSHARED) $(ASHAREDMODULE)$(SO)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
229 -for i in dummy $(ASHAREDMODULE)$(SO); do \
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
230 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
231
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
232 # 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
233 echodestshared: $(DESTSHARED)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
234 echo $(DESTSHARED)
eccfada47f28 Added Jim Fulton's "asharedmodule" target
Guido van Rossum <guido@python.org>
parents: 3690
diff changeset
235
3840
26c200266611 Refinements to installation, now uses $(VERSION) etc.
Guido van Rossum <guido@python.org>
parents: 3807
diff changeset
236 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
237
3807
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
238 $(DESTSHARED):
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
239 @for i in $(DESTDIRS); \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
240 do \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
241 if test ! -d $$i; then \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
242 echo "Creating directory $$i"; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
243 mkdir $$i; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
244 chmod 755 $$i; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
245 else true; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
246 fi; \
426e796f6115 Added version number to destination.
Guido van Rossum <guido@python.org>
parents: 3776
diff changeset
247 done
2212
64eb487ca465 create $(DESTSHARED) library if needed
Guido van Rossum <guido@python.org>
parents: 2147
diff changeset
248
1880
05fb9dec2c9c Support shared library creation.
Guido van Rossum <guido@python.org>
parents: 1827
diff changeset
249 # Stuff is appended here by makesetup and make depend