Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e454f3

Browse files
committed
Misc changes.
1 parent be0e942 commit 8e454f3

1 file changed

Lines changed: 33 additions & 27 deletions

File tree

Python/Makefile.in

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,42 @@ VPATH= @srcdir@
99

1010
CC= @CC@
1111
RANLIB= @RANLIB@
12+
DEFS= @DEFS@
13+
LIBOBJS= @LIBOBJS@
14+
LIBS= @LIBS@
1215

1316

1417
# === Other things that are customizable but not by configure ===
1518

19+
TOP= ..
20+
INCLDIR= $(TOP)/Py
21+
OPT= -g
22+
CFLAGS= $(OPT) -I$(INCLDIR) $(DEFS)
23+
1624
AR= ar
1725
MKDEP= mkdep
1826
SHELL= /bin/sh
1927

20-
INCLDIR= $(srcdir)/../Py
21-
OPT= -g
22-
CFLAGS= $(OPT) -I$(INCLDIR)
23-
2428

2529
# === Fixed definitions ===
2630

27-
SRCS= \
28-
bltinmodule.c ceval.c cgensupport.c compile.c \
29-
errors.c fmod.c frozenmain.c getcwd.c graminit.c \
30-
import.c marshal.c mathmodule.o modsupport.c posixmodule.c \
31-
pythonrun.c strerror.c strtod.c strtol.c \
32-
structmember.c structmodule.c \
33-
sysmodule.c timemodule.c traceback.c
34-
3531
OBJS= \
36-
bltinmodule.o ceval.o cgensupport.o compile.o \
37-
errors.o fmod.o frozenmain.o getcwd.o graminit.o \
38-
import.o marshal.o mathmodule.o modsupport.o posixmodule.o \
39-
pythonrun.o strerror.o strtod.o strtol.o \
40-
structmember.o structmodule.o \
41-
sysmodule.o timemodule.o traceback.o
42-
43-
LIB= libObjects.a
32+
arraymodule.o \
33+
bltinmodule.o \
34+
ceval.o cgensupport.o compile.o \
35+
errors.o \
36+
frozenmain.o \
37+
getmtime.o graminit.o \
38+
import.o \
39+
marshal.o mathmodule.o modsupport.o \
40+
parsermodule.o posixmodule.o pythonmain.o pythonrun.o \
41+
regexmodule.o regexpr.o \
42+
stropmodule.o structmember.o structmodule.o sysmodule.o \
43+
timemodule.o traceback.o \
44+
version.o \
45+
$(LIBOBJS)
46+
47+
LIB= libPython.a
4448

4549
MYLIBS= $(LIB) ../Objects/libObjects.a ../Parser/libParser.a
4650

@@ -53,19 +57,21 @@ all: $(LIB) python
5357

5458
$(LIB): $(OBJS)
5559
$(AR) cr $(LIB) $(OBJS)
60+
$(RANLIB) $(LIB)
61+
62+
python: config.o $(MYLIBS)
63+
$(CC) config.o $(MYLIBS) $(LIBS) $(SYSLIBS) -o python
5664

57-
python: pythonmain.o config.o $(MYLIBS)
58-
$(CC) pythonmain.o config.o $(MYLIBS) $(SYSLIBS) -o python
65+
config.o: Makefile
5966

6067
clean:
61-
-rm -f $(OBJS)
62-
-rm -f core *~ [@,#]* *.old *.orig *.rej
68+
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej
6369

6470
clobber: clean
65-
-rm -f $(LIB) tags TAGS
71+
-rm -f *.a python tags TAGS
6672

67-
Makefile: Makefile.in ../config.status
68-
(cd ..; $(SHELL) config.status)
73+
Makefile: Makefile.in $(TOP)/config.status
74+
CONFIG_FILES=Makefile $(SHELL) $(TOP)/config.status
6975

7076
depend: $(SRCS)
7177
$(MKDEP) $(CFLAGS) $(SRCS) $(PGENSRCS)

0 commit comments

Comments
 (0)