|
|
18f499 |
# platform
|
|
|
581c55 |
PYTHON_PATH =
|
|
|
c3000a |
PYTHON_PLATFORM = linux2
|
|
|
581c55 |
|
|
|
b5f396 |
|
|
|
18f499 |
# extensions: built-in
|
|
|
b5f396 |
CONFIG_SRCS = \
|
|
|
b5f396 |
Modules/_codecsmodule.c \
|
|
|
b5f396 |
Modules/_sre.c \
|
|
|
b5f396 |
Modules/_weakref.c \
|
|
|
b5f396 |
Modules/errnomodule.c \
|
|
|
b5f396 |
Modules/posixmodule.c \
|
|
|
b5f396 |
Modules/pwdmodule.c \
|
|
|
b5f396 |
Modules/signalmodule.c \
|
|
|
b5f396 |
Modules/symtablemodule.c \
|
|
|
b5f396 |
Modules/threadmodule.c \
|
|
|
b5f396 |
Modules/xxsubtype.c \
|
|
|
b5f396 |
Modules/zipimport.c \
|
|
|
e99c09 |
|
|
|
18f499 |
|
|
|
18f499 |
# extensions: dynamic loading
|
|
|
18f499 |
DYNLOAD_SRCS = \
|
|
|
18f499 |
Python/dynload_shlib.c \
|
|
|
18f499 |
|
|
|
18f499 |
|
|
|
18f499 |
# extensions: desired subsets
|
|
|
18f499 |
include $(PROJECT_DIR)/profiles/pyexts/subsets.mk
|
|
|
cf798d |
|
|
|
860c31 |
PYEXT_SHARED = \
|
|
|
860c31 |
$(PYEXT_SUBSET_SHARED_ANYOS_CORE) \
|
|
|
860c31 |
$(PYEXT_SUBSET_SHARED_ANYOS_AUDIO) \
|
|
|
860c31 |
$(PYEXT_SUBSET_SHARED_LINUX_AUDIO) \
|
|
|
3300f9 |
|
|
|
860c31 |
PYEXT_STATIC = \
|
|
|
860c31 |
$(PYEXT_SUBSET_STATIC_ANYOS_CORE) \
|
|
|
860c31 |
$(PYEXT_SUBSET_STATIC_ANYOS_AUDIO) \
|
|
|
860c31 |
$(PYEXT_SUBSET_STATIC_LINUX_AUDIO) \
|
|
|
18f499 |
|
|
|
18f499 |
|
|
|
18f499 |
# shared extensions: dependency switches
|
|
|
18f499 |
CFLAGS_NCURSES = -I$(SYSROOT)/usr/local/include/ncurses -I$(SYSROOT)/usr/include/ncurses
|
|
|
18f499 |
LDFLAGS_NCURSES = -Wl,--as-needed -lpanelw -lncursesw -Wl,--no-as-needed
|
|
|
18f499 |
|
|
|
18f499 |
CFLAGS_SQLITE = -I$(SYSROOT)/usr/local/include/sqlite3 -I$(SYSROOT)/usr/include/sqlite3
|
|
|
18f499 |
CFLAGS_SQLITE += -DMODULE_NAME=\"sqlite3\"
|
|
|
18f499 |
CFLAGS_SQLITE += -DSQLITE_OMIT_LOAD_EXTENSION
|
|
|
18f499 |
LDFLAGS_SQLITE = -lsqlite3
|
|
|
18f499 |
|
|
|
18f499 |
CFLAGS_EXPAT = -DXML_DEV_URANDOM
|
|
|
18f499 |
LDFLAGS_EXPAT = -lexpat
|
|
|
18f499 |
|
|
|
18f499 |
CFLAGS_DBM = -DHAVE_NDBM_H
|
|
|
18f499 |
LDFLAGS_DBM = -lgdbm_compat
|
|
|
18f499 |
|
|
|
18f499 |
|
|
|
18f499 |
# static extensions: dependency switch
|
|
|
18f499 |
LDFLAGS_PYEXT_STATIC = -lssl -lcrypto -lreadline -lbz2 -lgdbm -lffi -lintl -lz
|
|
|
18f499 |
LDFLAGS_NCURSES_STATIC = $(LDFLAGS_NCURSES)
|
|
|
18f499 |
LDFLAGS_SQLITE_STATIC = $(LDFLAGS_SQLITE)
|
|
|
18f499 |
LDFLAGS_EXPAT_STATIC = $(LDFLAGS_EXPAT)
|
|
|
18f499 |
LDFLAGS_DBM_STATIC = $(LDFLAGS_DBM)
|
|
|
18f499 |
|
|
|
18f499 |
|
|
|
18f499 |
# strict shared object generation
|
|
|
18f499 |
LDFLAGS_STRICT += -Wl,-no-undefined
|