mirror of https://github.com/python/cpython.git
Misc changes.
This commit is contained in:
parent
be0e9420a1
commit
8e454f3858
|
@ -9,38 +9,42 @@ VPATH= @srcdir@
|
||||||
|
|
||||||
CC= @CC@
|
CC= @CC@
|
||||||
RANLIB= @RANLIB@
|
RANLIB= @RANLIB@
|
||||||
|
DEFS= @DEFS@
|
||||||
|
LIBOBJS= @LIBOBJS@
|
||||||
|
LIBS= @LIBS@
|
||||||
|
|
||||||
|
|
||||||
# === Other things that are customizable but not by configure ===
|
# === Other things that are customizable but not by configure ===
|
||||||
|
|
||||||
|
TOP= ..
|
||||||
|
INCLDIR= $(TOP)/Py
|
||||||
|
OPT= -g
|
||||||
|
CFLAGS= $(OPT) -I$(INCLDIR) $(DEFS)
|
||||||
|
|
||||||
AR= ar
|
AR= ar
|
||||||
MKDEP= mkdep
|
MKDEP= mkdep
|
||||||
SHELL= /bin/sh
|
SHELL= /bin/sh
|
||||||
|
|
||||||
INCLDIR= $(srcdir)/../Py
|
|
||||||
OPT= -g
|
|
||||||
CFLAGS= $(OPT) -I$(INCLDIR)
|
|
||||||
|
|
||||||
|
|
||||||
# === Fixed definitions ===
|
# === 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= \
|
OBJS= \
|
||||||
bltinmodule.o ceval.o cgensupport.o compile.o \
|
arraymodule.o \
|
||||||
errors.o fmod.o frozenmain.o getcwd.o graminit.o \
|
bltinmodule.o \
|
||||||
import.o marshal.o mathmodule.o modsupport.o posixmodule.o \
|
ceval.o cgensupport.o compile.o \
|
||||||
pythonrun.o strerror.o strtod.o strtol.o \
|
errors.o \
|
||||||
structmember.o structmodule.o \
|
frozenmain.o \
|
||||||
sysmodule.o timemodule.o traceback.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= libObjects.a
|
LIB= libPython.a
|
||||||
|
|
||||||
MYLIBS= $(LIB) ../Objects/libObjects.a ../Parser/libParser.a
|
MYLIBS= $(LIB) ../Objects/libObjects.a ../Parser/libParser.a
|
||||||
|
|
||||||
|
@ -53,19 +57,21 @@ all: $(LIB) python
|
||||||
|
|
||||||
$(LIB): $(OBJS)
|
$(LIB): $(OBJS)
|
||||||
$(AR) cr $(LIB) $(OBJS)
|
$(AR) cr $(LIB) $(OBJS)
|
||||||
|
$(RANLIB) $(LIB)
|
||||||
|
|
||||||
python: pythonmain.o config.o $(MYLIBS)
|
python: config.o $(MYLIBS)
|
||||||
$(CC) pythonmain.o config.o $(MYLIBS) $(SYSLIBS) -o python
|
$(CC) config.o $(MYLIBS) $(LIBS) $(SYSLIBS) -o python
|
||||||
|
|
||||||
|
config.o: Makefile
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(OBJS)
|
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej
|
||||||
-rm -f core *~ [@,#]* *.old *.orig *.rej
|
|
||||||
|
|
||||||
clobber: clean
|
clobber: clean
|
||||||
-rm -f $(LIB) tags TAGS
|
-rm -f *.a python tags TAGS
|
||||||
|
|
||||||
Makefile: Makefile.in ../config.status
|
Makefile: Makefile.in $(TOP)/config.status
|
||||||
(cd ..; $(SHELL) config.status)
|
CONFIG_FILES=Makefile $(SHELL) $(TOP)/config.status
|
||||||
|
|
||||||
depend: $(SRCS)
|
depend: $(SRCS)
|
||||||
$(MKDEP) $(CFLAGS) $(SRCS) $(PGENSRCS)
|
$(MKDEP) $(CFLAGS) $(SRCS) $(PGENSRCS)
|
||||||
|
|
Loading…
Reference in New Issue