mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
make _sre a dynamically loadable module and build xxsubtype
This commit is contained in:
parent
388fbf3d4a
commit
4a79e36018
2 changed files with 17 additions and 4 deletions
|
@ -252,8 +252,7 @@ SRC.MODULES= $(addprefix $(TOP), \
|
|||
Modules/gcmodule.c \
|
||||
Modules/signalmodule.c \
|
||||
Modules/posixmodule.c \
|
||||
Modules/threadmodule.c \
|
||||
Modules/_sre.c)
|
||||
Modules/threadmodule.c)
|
||||
SRC.PARSER= $(addprefix $(TOP), \
|
||||
Parser/acceler.c \
|
||||
Parser/grammar1.c \
|
||||
|
@ -382,11 +381,13 @@ HARDEXTMODULES= binascii \
|
|||
pcre \
|
||||
regex \
|
||||
_socket \
|
||||
_sre \
|
||||
termios \
|
||||
_testcap \
|
||||
unicoded \
|
||||
_weakref \
|
||||
xreadlin
|
||||
xreadlin \
|
||||
xxsubtyp
|
||||
|
||||
# Python external ($(MODULE.EXT)) modules - can be EASY or HARD
|
||||
ifeq ($(ZLIB),yes)
|
||||
|
@ -513,6 +514,9 @@ regex$(MODULE.EXT): $(OUT)regexmodule$O $(OUT)regexpr$O $(OUT)regex_m.def $(PYTH
|
|||
_socket$(MODULE.EXT): $(OUT)socketmodule$O $(OUT)_socket_m.def $(PYTHON.IMPLIB)
|
||||
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
|
||||
|
||||
_sre$(MODULE.EXT): $(OUT)_sre$O $(OUT)_sre_m.def $(PYTHON.IMPLIB)
|
||||
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
|
||||
|
||||
# _symtable needs to be renamed to be useful
|
||||
_symtable$(MODULE.EXT): $(OUT)symtablemodule$O $(OUT)_symtable_m.def $(PYTHON.IMPLIB)
|
||||
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
|
||||
|
@ -547,6 +551,13 @@ xreadlines$(MODULE.EXT): $(OUT)xreadlinesmodule$O $(OUT)xreadlines_m.def $(PYTHO
|
|||
xreadlin$(MODULE.EXT): xreadlines$(MODULE.EXT)
|
||||
cp $^ $@
|
||||
|
||||
# xxsubtype needs to be renamed to be useful
|
||||
xxsubtype$(MODULE.EXT): $(OUT)xxsubtype$O $(OUT)xxsubtype_m.def $(PYTHON.IMPLIB)
|
||||
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
|
||||
|
||||
xxsubtyp$(MODULE.EXT): xxsubtype$(MODULE.EXT)
|
||||
cp $^ $@
|
||||
|
||||
# - optional modules (requiring other software to be installed)
|
||||
bsddb$(MODULE.EXT): $(OUT)bsddbmodule$O $(OUT)bsddb_m.def $(PYTHON.IMPLIB)
|
||||
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) -ldb $(LIBS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue