mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-26 03:32:17 +00:00
Minimize make info noise during building
This commit is contained in:
parent
36aeb36c90
commit
8ce6bf82a9
5 changed files with 22 additions and 15 deletions
13
Makefile
13
Makefile
|
@ -89,23 +89,26 @@ clean:
|
||||||
@rm -rf $(OUTPUTDIR)
|
@rm -rf $(OUTPUTDIR)
|
||||||
|
|
||||||
$(MODULEDIRS):
|
$(MODULEDIRS):
|
||||||
$(MAKE) -C $@ $(MAKECMDGOALS) -$(MAKEFLAGS)
|
@$(MAKE) -C $@ $(MAKECMDGOALS) -$(MAKEFLAGS)
|
||||||
|
|
||||||
$(NYXDIR):
|
$(NYXDIR):
|
||||||
$(MAKE) -C $@ $(MAKECMDGOALS) -$(MAKEFLAGS)
|
@$(MAKE) -C $@ $(MAKECMDGOALS) -$(MAKEFLAGS)
|
||||||
|
|
||||||
$(TARGET).bin: $(BUILDDIR)/$(TARGET)/$(TARGET).elf $(MODULEDIRS) $(NYXDIR)
|
$(TARGET).bin: $(BUILDDIR)/$(TARGET)/$(TARGET).elf $(MODULEDIRS) $(NYXDIR)
|
||||||
$(OBJCOPY) -S -O binary $< $(OUTPUTDIR)/$@
|
$(OBJCOPY) -S -O binary $< $(OUTPUTDIR)/$@
|
||||||
@printf ICTC49 >> $(OUTPUTDIR)/$@
|
@printf ICTC49 >> $(OUTPUTDIR)/$@
|
||||||
|
|
||||||
$(BUILDDIR)/$(TARGET)/$(TARGET).elf: $(OBJS)
|
$(BUILDDIR)/$(TARGET)/$(TARGET).elf: $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -T $(SOURCEDIR)/link.ld $^ -o $@
|
@$(CC) $(LDFLAGS) -T $(SOURCEDIR)/link.ld $^ -o $@
|
||||||
|
@echo "hekate was built with the following flags:\nCFLAGS: "$(CFLAGS)"\nLDFLAGS: "$(LDFLAGS)
|
||||||
|
|
||||||
$(BUILDDIR)/$(TARGET)/%.o: %.c
|
$(BUILDDIR)/$(TARGET)/%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
@echo Building $@
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(BUILDDIR)/$(TARGET)/%.o: %.S
|
$(BUILDDIR)/$(TARGET)/%.o: %.S
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
@echo Building $@
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJS): $(BUILDDIR)/$(TARGET)
|
$(OBJS): $(BUILDDIR)/$(TARGET)
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,10 @@ LDFLAGS = $(ARCH) -fpie -pie -nostartfiles -lgcc
|
||||||
all: $(TARGET).bso
|
all: $(TARGET).bso
|
||||||
$(BUILD)/%.o: ./%.c
|
$(BUILD)/%.o: ./%.c
|
||||||
@mkdir -p "$(BUILD)"
|
@mkdir -p "$(BUILD)"
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(TARGET).bso: $(OBJS)
|
$(TARGET).bso: $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -e _modInit $^ -o $(OUTPUT)/$(TARGET).bso
|
@$(CC) $(LDFLAGS) -e _modInit $^ -o $(OUTPUT)/$(TARGET).bso
|
||||||
$(STRIP) -g $(OUTPUT)/$(TARGET).bso
|
$(STRIP) -g $(OUTPUT)/$(TARGET).bso
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -21,10 +21,10 @@ LDFLAGS = $(ARCH) -fpie -pie -nostartfiles -lgcc
|
||||||
all: $(TARGET).bso
|
all: $(TARGET).bso
|
||||||
$(BUILD)/%.o: ./%.c
|
$(BUILD)/%.o: ./%.c
|
||||||
@mkdir -p "$(BUILD)"
|
@mkdir -p "$(BUILD)"
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(TARGET).bso: $(OBJS)
|
$(TARGET).bso: $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -e _minerva_init $^ -o $(OUTPUT)/$(TARGET).bso
|
@$(CC) $(LDFLAGS) -e _minerva_init $^ -o $(OUTPUT)/$(TARGET).bso
|
||||||
$(STRIP) -g $(OUTPUT)/$(TARGET).bso
|
$(STRIP) -g $(OUTPUT)/$(TARGET).bso
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -23,10 +23,10 @@ LDFLAGS = $(ARCH) -fpie -pie -nostartfiles -lgcc
|
||||||
all: $(TARGET).bso
|
all: $(TARGET).bso
|
||||||
$(BUILD)/%.o: ./%.c
|
$(BUILD)/%.o: ./%.c
|
||||||
@mkdir -p "$(BUILD)"
|
@mkdir -p "$(BUILD)"
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(TARGET).bso: $(OBJS)
|
$(TARGET).bso: $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -e _modInit $^ -o $(OUTPUT)/$(TARGET).bso
|
@$(CC) $(LDFLAGS) -e _modInit $^ -o $(OUTPUT)/$(TARGET).bso
|
||||||
$(STRIP) -g $(OUTPUT)/$(TARGET).bso
|
$(STRIP) -g $(OUTPUT)/$(TARGET).bso
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
12
nyx/Makefile
12
nyx/Makefile
|
@ -70,8 +70,9 @@ OBJS += $(addprefix $(BUILDDIR)/$(TARGET)/, \
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
CUSTOMDEFINES += -DNYX_LOAD_ADDR=$(NYX_LOAD_ADDR) -DNYX_MAGIC=$(NYX_MAGIC)
|
CUSTOMDEFINES := -DNYX_LOAD_ADDR=$(NYX_LOAD_ADDR) -DNYX_MAGIC=$(NYX_MAGIC)
|
||||||
CUSTOMDEFINES += -DNYX_VER_MJ=$(NYXVERSION_MAJOR) -DNYX_VER_MN=$(NYXVERSION_MINOR) -DNYX_VER_HF=$(NYXVERSION_HOTFX) -DNYX_RESERVED=$(NYXVERSION_RSVD)
|
CUSTOMDEFINES += -DNYX_VER_MJ=$(NYXVERSION_MAJOR) -DNYX_VER_MN=$(NYXVERSION_MINOR) -DNYX_VER_HF=$(NYXVERSION_HOTFX) -DNYX_RESERVED=$(NYXVERSION_RSVD)
|
||||||
|
CUSTOMDEFINES += -DNYX
|
||||||
|
|
||||||
# 0: UART_A, 1: UART_B.
|
# 0: UART_A, 1: UART_B.
|
||||||
#CUSTOMDEFINES += -DDEBUG_UART_PORT=1
|
#CUSTOMDEFINES += -DDEBUG_UART_PORT=1
|
||||||
|
@ -100,13 +101,16 @@ $(TARGET).bin: $(BUILDDIR)/$(TARGET)/$(TARGET).elf
|
||||||
$(OBJCOPY) -S -O binary $< $(OUTPUTDIR)/$@
|
$(OBJCOPY) -S -O binary $< $(OUTPUTDIR)/$@
|
||||||
|
|
||||||
$(BUILDDIR)/$(TARGET)/$(TARGET).elf: $(OBJS)
|
$(BUILDDIR)/$(TARGET)/$(TARGET).elf: $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -T $(SOURCEDIR)/link.ld $^ -o $@
|
@$(CC) $(LDFLAGS) -T $(SOURCEDIR)/link.ld $^ -o $@
|
||||||
|
@echo "Nyx was built with the following flags:\nCFLAGS: "$(CFLAGS)"\nLDFLAGS: "$(LDFLAGS)
|
||||||
|
|
||||||
$(BUILDDIR)/$(TARGET)/%.o: %.c
|
$(BUILDDIR)/$(TARGET)/%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
@echo Building $@
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(BUILDDIR)/$(TARGET)/%.o: %.S
|
$(BUILDDIR)/$(TARGET)/%.o: %.S
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
@echo Building $@
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJS): $(BUILDDIR)/$(TARGET)
|
$(OBJS): $(BUILDDIR)/$(TARGET)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue