mirror of
https://github.com/CTCaer/hekate
synced 2024-11-17 17:39:30 +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
|
||||
|
||||
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 $@
|
||||
|
|
Loading…
Reference in a new issue