|
|
2d05b8 |
# platform
|
|
|
2d05b8 |
PYTHON_PATH =
|
|
|
2d05b8 |
PYTHON_PLATFORM = linux2
|
|
|
2d05b8 |
|
|
|
2d05b8 |
|
|
|
2d05b8 |
# extensions: built-in
|
|
|
2d05b8 |
CONFIG_SRCS = $(CONFIG_DEFAULT_SRCS)
|
|
|
2d05b8 |
|
|
|
2d05b8 |
|
|
|
2d05b8 |
# extensions: dynamic loading
|
|
|
2d05b8 |
DYNLOAD_SRCS = \
|
|
|
2d05b8 |
Python/dynload_shlib.c \
|
|
|
2d05b8 |
|
|
|
2d05b8 |
|
|
|
2d05b8 |
# extensions: desired subsets
|
|
|
2d05b8 |
include $(PROJECT_DIR)/profiles/pyexts/subsets.mk
|
|
|
2d05b8 |
|
|
|
2d05b8 |
PYEXT_SHARED = \
|
|
|
2d05b8 |
$(PYEXT_SUBSET_SHARED_ANYOS_CORE) \
|
|
|
2d05b8 |
$(PYEXT_SUBSET_SHARED_ANYOS_AUDIO) \
|
|
|
2d05b8 |
$(PYEXT_SUBSET_SHARED_LINUX_AUDIO) \
|
|
|
2d05b8 |
|
|
|
2d05b8 |
PYEXT_STATIC = \
|
|
|
2d05b8 |
$(PYEXT_SUBSET_STATIC_ANYOS_CORE) \
|
|
|
2d05b8 |
$(PYEXT_SUBSET_STATIC_ANYOS_AUDIO) \
|
|
|
2d05b8 |
$(PYEXT_SUBSET_STATIC_LINUX_AUDIO) \
|
|
|
2d05b8 |
|
|
|
2d05b8 |
|
|
|
2d05b8 |
# shared extensions: dependency switches
|
|
|
2d05b8 |
CFLAGS_NCURSES = -I$(SYSROOT)/usr/local/include/ncurses -I$(SYSROOT)/usr/include/ncurses
|
|
|
2d05b8 |
LDFLAGS_NCURSES = -Wl,--as-needed -lpanelw -lncursesw -Wl,--no-as-needed
|
|
|
2d05b8 |
|
|
|
2d05b8 |
CFLAGS_SQLITE = -I$(SYSROOT)/usr/local/include/sqlite3 -I$(SYSROOT)/usr/include/sqlite3
|
|
|
2d05b8 |
CFLAGS_SQLITE += -DMODULE_NAME=\"sqlite3\"
|
|
|
2d05b8 |
CFLAGS_SQLITE += -DSQLITE_OMIT_LOAD_EXTENSION
|
|
|
2d05b8 |
LDFLAGS_SQLITE = -lsqlite3
|
|
|
2d05b8 |
|
|
|
2d05b8 |
CFLAGS_EXPAT = -DXML_DEV_URANDOM
|
|
|
2d05b8 |
LDFLAGS_EXPAT = -lexpat
|
|
|
2d05b8 |
|
|
|
2d05b8 |
CFLAGS_DBM = -DHAVE_NDBM_H
|
|
|
2d05b8 |
LDFLAGS_DBM = -lgdbm_compat
|
|
|
2d05b8 |
|
|
|
2d05b8 |
|
|
|
2d05b8 |
# static extensions: dependency switch
|
|
|
2d05b8 |
LDFLAGS_PYEXT_STATIC = -lssl -lcrypto -lreadline -lbz2 -lgdbm -lffi -lintl -lz
|
|
|
2d05b8 |
LDFLAGS_NCURSES_STATIC = $(LDFLAGS_NCURSES)
|
|
|
2d05b8 |
LDFLAGS_SQLITE_STATIC = $(LDFLAGS_SQLITE)
|
|
|
2d05b8 |
LDFLAGS_EXPAT_STATIC = $(LDFLAGS_EXPAT)
|
|
|
2d05b8 |
LDFLAGS_DBM_STATIC = $(LDFLAGS_DBM)
|
|
|
2d05b8 |
|
|
|
2d05b8 |
|
|
|
2d05b8 |
# strict shared object generation
|
|
|
2d05b8 |
LDFLAGS_STRICT += -Wl,-no-undefined
|