Commit 03df0c80 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Split these Makefile/CMakeLists lists onto multiple lines

parent 88aa3649
......@@ -292,9 +292,75 @@ STDLIB_OBJS := stdlib.bc.o stdlib.stripped.bc.o
STDLIB_RELEASE_OBJS := stdlib.release.bc.o
ASM_SRCS := $(wildcard src/runtime/*.S)
STDMODULE_SRCS := errnomodule.c shamodule.c sha256module.c sha512module.c _math.c mathmodule.c md5.c md5module.c _randommodule.c _sre.c operator.c binascii.c pwdmodule.c posixmodule.c _struct.c datetimemodule.c _functoolsmodule.c _collectionsmodule.c itertoolsmodule.c resource.c signalmodule.c selectmodule.c fcntlmodule.c timemodule.c arraymodule.c zlibmodule.c _codecsmodule.c socketmodule.c unicodedata.c _weakref.c cStringIO.c _io/bufferedio.c _io/bytesio.c _io/fileio.c _io/iobase.c _io/_iomodule.c _io/stringio.c _io/textio.c zipimport.c _csv.c _ssl.c $(EXTRA_STDMODULE_SRCS)
STDOBJECT_SRCS := structseq.c capsule.c stringobject.c exceptions.c unicodeobject.c unicodectype.c bytearrayobject.c bytes_methods.c weakrefobject.c memoryobject.c iterobject.c $(EXTRA_STDOBJECT_SRCS)
STDPYTHON_SRCS := pyctype.c getargs.c formatter_string.c pystrtod.c dtoa.c formatter_unicode.c structmember.c marshal.c $(EXTRA_STDPYTHON_SRCS)
STDMODULE_SRCS := \
errnomodule.c \
shamodule.c \
sha256module.c \
sha512module.c \
_math.c \
mathmodule.c \
md5.c \
md5module.c \
_randommodule.c \
_sre.c \
operator.c \
binascii.c \
pwdmodule.c \
posixmodule.c \
_struct.c \
datetimemodule.c \
_functoolsmodule.c \
_collectionsmodule.c \
itertoolsmodule.c \
resource.c \
signalmodule.c \
selectmodule.c \
fcntlmodule.c \
timemodule.c \
arraymodule.c \
zlibmodule.c \
_codecsmodule.c \
socketmodule.c \
unicodedata.c \
_weakref.c \
cStringIO.c \
_io/bufferedio.c \
_io/bytesio.c \
_io/fileio.c \
_io/iobase.c \
_io/_iomodule.c \
_io/stringio.c \
_io/textio.c \
zipimport.c \
_csv.c \
_ssl.c \
$(EXTRA_STDMODULE_SRCS)
STDOBJECT_SRCS := \
structseq.c \
capsule.c \
stringobject.c \
exceptions.c \
unicodeobject.c \
unicodectype.c \
bytearrayobject.c \
bytes_methods.c \
weakrefobject.c \
memoryobject.c \
iterobject.c \
$(EXTRA_STDOBJECT_SRCS)
STDPYTHON_SRCS := \
pyctype.c \
getargs.c \
formatter_string.c \
pystrtod.c \
dtoa.c \
formatter_unicode.c \
structmember.c \
marshal.c \
$(EXTRA_STDPYTHON_SRCS)
FROM_CPYTHON_SRCS := $(addprefix from_cpython/Modules/,$(STDMODULE_SRCS)) $(addprefix from_cpython/Objects/,$(STDOBJECT_SRCS)) $(addprefix from_cpython/Python/,$(STDPYTHON_SRCS))
# The stdlib objects have slightly longer dependency chains,
......
......@@ -15,13 +15,76 @@ endforeach(STDLIB_FILE)
add_custom_target(copy_stdlib ALL DEPENDS ${STDLIB_TARGETS})
# compile specified files in from_cpython/Modules
file(GLOB_RECURSE STDMODULE_SRCS Modules errnomodule.c shamodule.c sha256module.c sha512module.c _math.c mathmodule.c md5.c md5module.c _randommodule.c _sre.c operator.c binascii.c pwdmodule.c posixmodule.c _struct.c datetimemodule.c _functoolsmodule.c _collectionsmodule.c itertoolsmodule.c resource.c signalmodule.c selectmodule.c fcntlmodule.c timemodule.c arraymodule.c zlibmodule.c _codecsmodule.c socketmodule.c unicodedata.c _weakref.c cStringIO.c bufferedio.c bytesio.c fileio.c iobase.c _iomodule.c stringio.c textio.c zipimport.c _csv.c _ssl.c)
file(GLOB_RECURSE STDMODULE_SRCS Modules
errnomodule.c
shamodule.c
sha256module.c
sha512module.c
_math.c
mathmodule.c
md5.c
md5module.c
_randommodule.c
_sre.c
operator.c
binascii.c
pwdmodule.c
posixmodule.c
_struct.c
datetimemodule.c
_functoolsmodule.c
_collectionsmodule.c
itertoolsmodule.c
resource.c
signalmodule.c
selectmodule.c
fcntlmodule.c
timemodule.c
arraymodule.c
zlibmodule.c
_codecsmodule.c
socketmodule.c
unicodedata.c
_weakref.c
cStringIO.c
bufferedio.c
bytesio.c
fileio.c
iobase.c
_iomodule.c
stringio.c
textio.c
zipimport.c
_csv.c
_ssl.c
)
# compile specified files in from_cpython/Objects
file(GLOB_RECURSE STDOBJECT_SRCS Objects structseq.c capsule.c stringobject.c exceptions.c unicodeobject.c unicodectype.c bytearrayobject.c bytes_methods.c weakrefobject.c memoryobject.c iterobject.c)
file(GLOB_RECURSE STDOBJECT_SRCS Objects
structseq.c
capsule.c
stringobject.c
exceptions.c
unicodeobject.c
unicodectype.c
bytearrayobject.c
bytes_methods.c
weakrefobject.c
memoryobject.c
iterobject.c
)
# compile specified files in from_cpython/Python
file(GLOB_RECURSE STDPYTHON_SRCS Python getargs.c pyctype.c formatter_string.c pystrtod.c dtoa.c formatter_unicode.c structmember.c marshal.c)
file(GLOB_RECURSE STDPYTHON_SRCS Python
getargs.c
pyctype.c
formatter_string.c
pystrtod.c
dtoa.c
formatter_unicode.c
structmember.c
marshal.c
)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers -Wno-tautological-compare -Wno-type-limits -Wno-unused-result -Wno-strict-aliasing")
add_library(FROM_CPYTHON OBJECT ${STDMODULE_SRCS} ${STDOBJECT_SRCS} ${STDPYTHON_SRCS})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment