Fix building on make 4.3

This commit is contained in:
CTCaer 2020-03-04 01:34:35 +02:00
parent 3f10cc774b
commit a52af1bf41
5 changed files with 13 additions and 7 deletions

View file

@ -16,7 +16,7 @@ TARGET := hekate
BUILDDIR := build BUILDDIR := build
OUTPUTDIR := output OUTPUTDIR := output
SOURCEDIR = bootloader SOURCEDIR = bootloader
VPATH = $(dir $(wildcard ./$(SOURCEDIR)/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/)) VPATH = $(dir ./$(SOURCEDIR)/) $(dir $(wildcard ./$(SOURCEDIR)/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/))
# Main and graphics. # Main and graphics.
OBJS = $(addprefix $(BUILDDIR)/$(TARGET)/, \ OBJS = $(addprefix $(BUILDDIR)/$(TARGET)/, \
@ -103,7 +103,11 @@ $(BUILDDIR)/$(TARGET)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
$(BUILDDIR)/$(TARGET)/%.o: %.S $(BUILDDIR)/$(TARGET)/%.o: %.S
$(CC) $(CFLAGS) -c $< -o $@
$(OBJS): $(BUILDDIR)/$(TARGET)
$(BUILDDIR)/$(TARGET):
@mkdir -p "$(BUILDDIR)" @mkdir -p "$(BUILDDIR)"
@mkdir -p "$(BUILDDIR)/$(TARGET)" @mkdir -p "$(BUILDDIR)/$(TARGET)"
@mkdir -p "$(OUTPUTDIR)" @mkdir -p "$(OUTPUTDIR)"
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -7,7 +7,6 @@ include $(DEVKITARM)/base_rules
TARGET := libsys_lp0 TARGET := libsys_lp0
BUILD := ../../build/$(TARGET) BUILD := ../../build/$(TARGET)
OUTPUT := ../../output OUTPUT := ../../output
VPATH = $(dir $(wildcard ./*/)) $(dir $(wildcard ./*/*/))
OBJS = $(addprefix $(BUILD)/,\ OBJS = $(addprefix $(BUILD)/,\
sys_sdramlp0.o \ sys_sdramlp0.o \

View file

@ -7,7 +7,6 @@ include $(DEVKITARM)/base_rules
TARGET := libsys_minerva TARGET := libsys_minerva
BUILD := ../../build/$(TARGET) BUILD := ../../build/$(TARGET)
OUTPUT := ../../output OUTPUT := ../../output
VPATH = $(dir $(wildcard ./*/)) $(dir $(wildcard ./*/*/))
OBJS = $(addprefix $(BUILD)/,\ OBJS = $(addprefix $(BUILD)/,\
sys_sdrammtc.o \ sys_sdrammtc.o \

View file

@ -7,7 +7,7 @@ include $(DEVKITARM)/base_rules
TARGET := module_sample TARGET := module_sample
BUILD := ../../build/$(TARGET) BUILD := ../../build/$(TARGET)
OUTPUT := ../../output OUTPUT := ../../output
VPATH = $(dir $(wildcard ./*/)) $(dir $(wildcard ./*/*/)) VPATH = $(dir ./) $(dir $(wildcard ./*/))
OBJS = $(addprefix $(BUILD)/,\ OBJS = $(addprefix $(BUILD)/,\
module_sample.o \ module_sample.o \

View file

@ -16,7 +16,7 @@ TARGET := nyx
BUILDDIR := ./../build BUILDDIR := ./../build
OUTPUTDIR := ./../output OUTPUTDIR := ./../output
SOURCEDIR = nyx_gui SOURCEDIR = nyx_gui
VPATH = $(dir $(wildcard ./$(SOURCEDIR)/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/)) VPATH = $(dir $(wildcard ./$(SOURCEDIR)/)) $(dir $(wildcard ./$(SOURCEDIR)/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/))
VPATH += $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/*/)) VPATH += $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/*/))
# Main and graphics. # Main and graphics.
@ -104,7 +104,11 @@ $(BUILDDIR)/$(TARGET)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
$(BUILDDIR)/$(TARGET)/%.o: %.S $(BUILDDIR)/$(TARGET)/%.o: %.S
$(CC) $(CFLAGS) -c $< -o $@
$(OBJS): $(BUILDDIR)/$(TARGET)
$(BUILDDIR)/$(TARGET):
@mkdir -p "$(BUILDDIR)" @mkdir -p "$(BUILDDIR)"
@mkdir -p "$(BUILDDIR)/$(TARGET)" @mkdir -p "$(BUILDDIR)/$(TARGET)"
@mkdir -p "$(OUTPUTDIR)" @mkdir -p "$(OUTPUTDIR)"
$(CC) $(CFLAGS) -c $< -o $@