Blame project/extras.mk

80140a
# build info
80140a
CFLAGS_COMMON += -I$(PROJECT_DIR)/profiles
80140a
CFLAGS_COMMON += -I$(SOURCE_DIR)/Include
80140a
80140a
CFLAGS_CONFIG += -DPLATFORM=\"$(PYTHON_PLATFORM)\"
80140a
CFLAGS_CONFIG += -DVERSION=\"$(PYTHON_VER)\"
80140a
CFLAGS_CONFIG += -DPREFIX=\"$(PREFIX)\"
80140a
CFLAGS_CONFIG += -DEXEC_PREFIX=\"$(EXEC_PREFIX)\"
80140a
CFLAGS_CONFIG += -DVPATH=\"$(SOURCE_DIR)\"
80140a
CFLAGS_CONFIG += -DPYTHONPATH=\"$(PYTHON_PATH)\"
f8777f
f8777f
# python's front-end utility
f8777f
LDFLAGS_DEPS    += -Wl,--as-needed
f8777f
LDFLAGS_DEPS    += -lm -lpthread -lutil -ldl -lcrypt
f8777f
LDFLAGS_DEPS    += -Wl,--no-as-needed
f8777f
f8777f
LDFLAGS_CONFIG  += $(LDFLAGS_DEPS)
f8777f
LDFLAGS_CONFIG  += -Wl,-rpath -Wl,$(LIBDIR)
f8777f
f8777f
ifeq ($(ALL_STATIC),yes)
f8777f
	CFLAGS_STATIC	+= -DPY_ALL_STATIC
f8777f
else
f8777f
	COMMON_SRCS	+= $(DYNLOAD_SRCS)
f8777f
	CFLAGS_CONFIG	+= -DHAVE_DYNAMIC_LOADING -DSOABI=\"$(PYTHON_SOABI)\"
f8777f
endif