1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-24 12:14:11 +00:00

[Makefile]: Quality of life changes.

This commit is contained in:
CrimsonMaple 2018-05-10 22:28:53 -04:00 committed by nwert
parent 5ca3bbcaf1
commit 764231b418

View File

@ -49,14 +49,14 @@ LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections
.PHONY: all clean
all: $(BUILD)/$(TARGET)
all: $(TARGET).bin
clean:
@rm -rf $(OBJS)
@rm -rf $(BUILD)/$(TARGET).elf
@rm -rf $(BUILD)/$(TARGET)
@rm -rf $(BUILD)
@rm -rf $(TARGET).bin
$(BUILD)/$(TARGET): $(BUILD)/$(TARGET).elf
$(TARGET).bin: $(BUILD)/$(TARGET).elf
$(OBJCOPY) -S -O binary $< $@
$(BUILD)/$(TARGET).elf: $(OBJS)
@ -66,4 +66,5 @@ $(BUILD)/%.o: $(SOURCEDIR)/%.c
$(CC) $(CFLAGS) -c $< -o $@
$(BUILD)/%.o: $(SOURCEDIR)/%.S
@mkdir -p "$(BUILD)"
$(CC) $(CFLAGS) -c $< -o $@