Newer
Older
libkc / mk / link-exe-rule.mk
Nomura Kei on 31 May 2024 492 bytes update for windows
  1. # ------------------------------------------------------------------------------
  2. # 実行ファイル 生成ルール
  3. # ------------------------------------------------------------------------------
  4. ifneq ($(strip $(NAME)),)
  5.  
  6. # For Linux
  7. ifeq ($(strip $(NAME)),$(strip $(TARGET)))
  8. $(TARGET): $(OBJS)
  9. $(LINK) $(LDFLAGS) -o $@ $^ $(LIBS)
  10.  
  11. endif
  12.  
  13. # For Windows (or ut.exe)
  14. ifeq ($(strip $(NAME).exe),$(strip $(TARGET)))
  15. $(TARGET): $(OBJS)
  16. $(LINK) $(LDFLAGS) -o $@ $^ $(LIBS)
  17.  
  18. endif
  19.  
  20. endif
  21.