summaryrefslogtreecommitdiff
path: root/target-rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'target-rules.mk')
-rw-r--r--target-rules.mk13
1 files changed, 7 insertions, 6 deletions
diff --git a/target-rules.mk b/target-rules.mk
index 1ce9487..6397bec 100644
--- a/target-rules.mk
+++ b/target-rules.mk
@@ -1,9 +1,9 @@
%.o: %.c
- $(E) [TC] Compiling $<
+ $(E) "[TC] Compiling $<"
$(Q)$(TARGET_CC) $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_CPPFLAGS) -c -o $@ $<
%.o: %.s
- $(E) [TS] Compiling $<
+ $(E) "[TS] Compiling $<"
$(Q)$(TARGET_AS) $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_CPPFLAGS) -c -o $@ $<
TARGET_OBJS = $(addsuffix .o, $(basename $(TARGET_SRCS)))
@@ -16,20 +16,21 @@ TARGET_OBJS += $(addsuffix .o, $(basename $(TARGET)))
endif
$(TARGET_ELF): $(TARGET_OBJS)
- $(E) [TL] Linking $@
+ $(E) "[TL] Linking $@"
$(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-O3 -Wl,-Map=$(TARGET_MAP) -o $@ $^ -T$(LDSCRIPT) $(LIBS)
$(TARGET_MAP): $(TARGET_ELF)
$(TARGET_BIN): $(TARGET_ELF)
- $(E) [TB] Creating $@
+ $(E) "[TB] Creating $@"
$(Q)$(TARGET_OBJCOPY) $< -O binary $@
$(TARGET_LIB): $(TARGET_OBJS)
- $(E) [TLIB] Creating $@
+ $(E) "[TLIB] Creating $@"
$(Q)$(TARGET_AR) rcs $@ $^
.PHONY: clean-generic
clean-generic:
- rm -f $(TARGET_LIB) $(TARGET_OBJS) $(TARGET) $(TARGET_ELF) $(TARGET_BIN)
+ $(E) "[CLEAN] $(CURDIR)"
+ $(Q)rm -f $(TARGET_LIB) $(TARGET_OBJS) $(TARGET) $(TARGET_ELF) $(TARGET_BIN)