- # ------------------------------------------------------------------------------
- # 実行ファイル 生成ルール
- # ------------------------------------------------------------------------------
- ifneq ($(strip $(NAME)),)
- # For Linux
- ifeq ($(strip $(NAME)),$(strip $(TARGET)))
- $(TARGET): $(OBJS)
- $(LINK) $(LDFLAGS) -o $@ $^ $(LIBS)
- endif
- # For Windows (or ut.exe)
- ifeq ($(strip $(NAME).exe),$(strip $(TARGET)))
- $(TARGET): $(OBJS)
- $(LINK) $(LDFLAGS) -o $@ $^ $(LIBS)
- endif
- endif