1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-12 21:36:39 +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 .PHONY: all clean
all: $(BUILD)/$(TARGET) all: $(TARGET).bin
clean: clean:
@rm -rf $(OBJS) @rm -rf $(OBJS)
@rm -rf $(BUILD)/$(TARGET).elf @rm -rf $(BUILD)
@rm -rf $(BUILD)/$(TARGET) @rm -rf $(TARGET).bin
$(BUILD)/$(TARGET): $(BUILD)/$(TARGET).elf $(TARGET).bin: $(BUILD)/$(TARGET).elf
$(OBJCOPY) -S -O binary $< $@ $(OBJCOPY) -S -O binary $< $@
$(BUILD)/$(TARGET).elf: $(OBJS) $(BUILD)/$(TARGET).elf: $(OBJS)
@ -66,4 +66,5 @@ $(BUILD)/%.o: $(SOURCEDIR)/%.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
$(BUILD)/%.o: $(SOURCEDIR)/%.S $(BUILD)/%.o: $(SOURCEDIR)/%.S
@mkdir -p "$(BUILD)"
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@