Newer
Older
project / mk / link-so-conf.mk
Nomura Kei on 24 Apr 2020 537 bytes first commit
# ==============================================================================
#  動的ライブラリ 生成に関する設定
# ==============================================================================
#
# -fPIC オプションを付与する。
#
ifneq ($(strip $(NAME)),)
ifeq  ($(strip $(NAME).so),$(strip $(TARGET)))
CFLAGS		+= -fPIC
CXXFLAGS	+= -fPIC

ifneq ($(strip $(USE_SO_VERSION)),)
#
# バージョン番号付きの so ファイルを削除対象に追加する。
#
CLEAN_FILES	+= $(TARGET).*
endif


endif
endif