From 23e9a8369a375593c53f378c646678f9f4885dc7 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Tue, 27 Feb 2018 01:00:58 +0100 Subject: [PATCH] Fix Makefile --- exosphere/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/exosphere/Makefile b/exosphere/Makefile index 86bffb5a8..4d3d862b0 100644 --- a/exosphere/Makefile +++ b/exosphere/Makefile @@ -30,9 +30,14 @@ CFLAGS = \ LDFLAGS = -g $(ARCH) -nostartfiles -Wl,--nmagic,--gc-sections -objects = $(patsubst $(dir_source)/%.s, $(dir_build)/%.o, \ - $(patsubst $(dir_source)/%.c, $(dir_build)/%.o, \ - $(call rwildcard, $(dir_source), *.s *.c))) +objects = $(patsubst $(dir_source)/%.s, $(dir_build)/%.o, \ + $(patsubst $(dir_source)/%.c, $(dir_build)/%.o, \ + $(call rwildcard, $(dir_source), *.s *.c))) \ + $(dir_build)/bpmpfw.bin.o + +define bin2o + bin2s $< | $(AS) -o $(@) +endef .PHONY: all all: $(dir_out)/$(name).bin @@ -62,7 +67,6 @@ $(dir_build)/bpmpfw.bin: $(dir_bpmpfw)/out/bpmpfw.bin $(dir_build)/%.bin.o: $(dir_build)/%.bin @$(bin2o) -$(dir_build)/lpo.o: $(dir_build)/bpmpfw.bin.o $(dir_build)/%.o: $(dir_source)/%.c @mkdir -p "$(@D)" $(COMPILE.c) $(OUTPUT_OPTION) $<