# ------------------------------------------------------------------------------ # 動的ライブラリ 生成ルール # ------------------------------------------------------------------------------ ifneq ($(strip $(NAME)),) ifeq ($(strip $(NAME).dll),$(strip $(TARGET))) ## ----------------------------------------------------------------------------- ## TOPディレクトリへのコピー ## ----------------------------------------------------------------------------- $(TOP_TARGET): $(TARGET) ifneq ($(strip $(HEADER_FILES)),) $(CP) -f $(HEADER_FILES) $(TOPDIR)/include/ endif $(CP) -f -d $(TARGET)* $(TOPDIR)/lib/ ## ----------------------------------------------------------------------------- ## バージョン番号無し so ファイル生成 ## ----------------------------------------------------------------------------- # .dllファイル生成 $(TARGET): $(OBJS) $(LINK) $(LDFLAGS) -shared -Wl,--out-implib,$(TARGET:.dll=).lib -o $(TARGET) $^ $(LIBS) endif endif