Newer
Older
libj / mk / link-a-rule.mk
Nomura Kei on 9 Jun 2024 484 bytes first commit
  1. # ------------------------------------------------------------------------------
  2. # 静的ライブラリ 生成ルール
  3. # ------------------------------------------------------------------------------
  4. ifneq ($(strip $(NAME)),)
  5. ifeq ($(strip $(NAME).a),$(strip $(TARGET)))
  6. $(TARGET): $(OBJS)
  7. $(AR) rv $@ $^
  8. $(RANLIB) $@
  9.  
  10. $(TOP_TARGET): $(TARGET)
  11. ifneq ($(strip $(HEADER_FILES)),)
  12. $(CP) -f $(HEADER_FILES) $(TOPDIR)/include/
  13. endif
  14. $(CP) -f $(TARGET) $(TOPDIR)/lib/
  15.  
  16. endif
  17. endif
  18.