summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-24 10:32:14 +0000
committerGuido van Rossum <guido@python.org>1993-12-24 10:32:14 +0000
commit8e454f3858ff2958a22105c637574e8aa885185b (patch)
tree0aeaf198993733a22b5cb95f5c70a3adc0007f6a /Python
parentbe0e9420a1673b7b3991d7eec843d75219a84f34 (diff)
downloadcpython-git-8e454f3858ff2958a22105c637574e8aa885185b.tar.gz
Misc changes.
Diffstat (limited to 'Python')
-rw-r--r--Python/Makefile.in60
1 files changed, 33 insertions, 27 deletions
diff --git a/Python/Makefile.in b/Python/Makefile.in
index 0b073ba3f4..7340ed48ce 100644
--- a/Python/Makefile.in
+++ b/Python/Makefile.in
@@ -9,38 +9,42 @@ VPATH= @srcdir@
CC= @CC@
RANLIB= @RANLIB@
+DEFS= @DEFS@
+LIBOBJS= @LIBOBJS@
+LIBS= @LIBS@
# === Other things that are customizable but not by configure ===
+TOP= ..
+INCLDIR= $(TOP)/Py
+OPT= -g
+CFLAGS= $(OPT) -I$(INCLDIR) $(DEFS)
+
AR= ar
MKDEP= mkdep
SHELL= /bin/sh
-INCLDIR= $(srcdir)/../Py
-OPT= -g
-CFLAGS= $(OPT) -I$(INCLDIR)
-
# === Fixed definitions ===
-SRCS= \
- bltinmodule.c ceval.c cgensupport.c compile.c \
- errors.c fmod.c frozenmain.c getcwd.c graminit.c \
- import.c marshal.c mathmodule.o modsupport.c posixmodule.c \
- pythonrun.c strerror.c strtod.c strtol.c \
- structmember.c structmodule.c \
- sysmodule.c timemodule.c traceback.c
-
OBJS= \
- bltinmodule.o ceval.o cgensupport.o compile.o \
- errors.o fmod.o frozenmain.o getcwd.o graminit.o \
- import.o marshal.o mathmodule.o modsupport.o posixmodule.o \
- pythonrun.o strerror.o strtod.o strtol.o \
- structmember.o structmodule.o \
- sysmodule.o timemodule.o traceback.o
-
-LIB= libObjects.a
+ arraymodule.o \
+ bltinmodule.o \
+ ceval.o cgensupport.o compile.o \
+ errors.o \
+ frozenmain.o \
+ getmtime.o graminit.o \
+ import.o \
+ marshal.o mathmodule.o modsupport.o \
+ parsermodule.o posixmodule.o pythonmain.o pythonrun.o \
+ regexmodule.o regexpr.o \
+ stropmodule.o structmember.o structmodule.o sysmodule.o \
+ timemodule.o traceback.o \
+ version.o \
+ $(LIBOBJS)
+
+LIB= libPython.a
MYLIBS= $(LIB) ../Objects/libObjects.a ../Parser/libParser.a
@@ -53,19 +57,21 @@ all: $(LIB) python
$(LIB): $(OBJS)
$(AR) cr $(LIB) $(OBJS)
+ $(RANLIB) $(LIB)
+
+python: config.o $(MYLIBS)
+ $(CC) config.o $(MYLIBS) $(LIBS) $(SYSLIBS) -o python
-python: pythonmain.o config.o $(MYLIBS)
- $(CC) pythonmain.o config.o $(MYLIBS) $(SYSLIBS) -o python
+config.o: Makefile
clean:
- -rm -f $(OBJS)
- -rm -f core *~ [@,#]* *.old *.orig *.rej
+ -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
clobber: clean
- -rm -f $(LIB) tags TAGS
+ -rm -f *.a python tags TAGS
-Makefile: Makefile.in ../config.status
- (cd ..; $(SHELL) config.status)
+Makefile: Makefile.in $(TOP)/config.status
+ CONFIG_FILES=Makefile $(SHELL) $(TOP)/config.status
depend: $(SRCS)
$(MKDEP) $(CFLAGS) $(SRCS) $(PGENSRCS)