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:
parent
5ca3bbcaf1
commit
764231b418
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -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 $@
|
||||||
|
|
Loading…
Reference in a new issue