Newer
Older
libkcpp / mk / link-a-rule.mk
Nomura Kei on 4 Jun 537 bytes first commit
# ------------------------------------------------------------------------------
#  静的ライブラリ 生成ルール
# ------------------------------------------------------------------------------
ifneq ($(strip $(NAME)),)
ifeq  ($(strip $(NAME).a),$(strip $(TARGET)))
$(TARGET): $(OBJS)
	$(AR)	rv $@ $^
	$(RANLIB)	$@

$(TOP_TARGET): $(TARGET)
ifneq ($(strip $(HEADER_FILES)),)
	$(CP) -f $(HEADER_FILES) $(TOPDIR)/include/
	$(CP) -f $(HEADER_FILES_WIN) $(TOPDIR)/include/win/
endif
	$(CP) -f $(TARGET) $(TOPDIR)/lib/

endif
endif