summaryrefslogtreecommitdiffstats
path: root/Modules/Makefile.pre.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-04 04:20:45 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-04 04:20:45 (GMT)
commit37ba0bc50be14b6f2148ebb7f824c8e77f001488 (patch)
treed37415e0c5b04d34f18dc2c40b467f26c0d3cbd3 /Modules/Makefile.pre.in
parente3e61c1642d3bfc5a514dc96aba36ad9b89406a9 (diff)
downloadcpython-37ba0bc50be14b6f2148ebb7f824c8e77f001488.zip
cpython-37ba0bc50be14b6f2148ebb7f824c8e77f001488.tar.gz
cpython-37ba0bc50be14b6f2148ebb7f824c8e77f001488.tar.bz2
split config.c in 1000 parts; new main; new unfinished objective-C module
Diffstat (limited to 'Modules/Makefile.pre.in')
-rw-r--r--Modules/Makefile.pre.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in
index 588e953..b48a4ab 100644
--- a/Modules/Makefile.pre.in
+++ b/Modules/Makefile.pre.in
@@ -29,9 +29,6 @@ LIBS= @LIBS@
LIBM= @LIBM@
LIBC= @LIBC@
-# Machine-dependent subdirectories
-MACHDEP= @MACHDEP@
-
# Install prefix for architecture-independent files
prefix= @prefix@
@@ -61,6 +58,8 @@ MAKESETUP= $(srcdir)/makesetup
OBJS= $(MODOBJS)
+ADDOBJS= main.o config.o getpath.o
+
LIB= libModules.a
MYLIBS= $(LIB) \
@@ -80,15 +79,11 @@ $(LIB): $& $(OBJS) Makefile
$(AR) cr $(LIB) $(OBJS)
$(RANLIB) $(LIB)
-../python: config.o $(MYLIBS) Makefile
- $(LINKCC) $(OPT) config.o $(LINKFORSHARED) \
+../python: $(MYLIBS) $(ADDOBJS) Makefile
+ $(LINKCC) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \
$(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
mv python ../python
-config.o: config.c Makefile $(MYLIBS)
- $(LINKCC) $(CFLAGS) -DPYTHONPATH=\"$(PYTHONPATH)\" \
- -DPLATFORM=\"$(MACHDEP)\" -c config.c
-
clean:
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
@@ -96,6 +91,10 @@ clobber: clean
-rm -f *.a tags TAGS config.c glmodule.c Makefile.pre
-rm -f *.so so_locations
+getpath.o: getpath.c Makefile
+ $(CC) -c $(CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
+ $(srcdir)/getpath.c
+
config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup
$(SHELL) $(MAKESETUP) Setup
@@ -127,6 +126,7 @@ fmmodule.o: fmmodule.c
glmodule.o: glmodule.c
imageop.o: imageop.c
imgfile.o: imgfile.c
+main.o: main.c
mathmodule.o: mathmodule.c
md5c.o: md5c.c
md5module.o: md5module.c