Newer
Older
c-interpreter / mk / link-a-rule.mk
Nomura Kei on 3 Jun 2023 484 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/
endif
	$(CP) -f $(TARGET) $(TOPDIR)/lib/

endif
endif