Add make all to build all targets for kernel
This commit is contained in:
parent
51aa6ba7dd
commit
916b8d053b
|
|
@ -1,4 +1,4 @@
|
|||
ARCHES = x86_64 i386 aarch64
|
||||
ARCHES = x86_64 i386
|
||||
|
||||
ARCH ?= x86_64
|
||||
|
||||
|
|
@ -21,9 +21,13 @@ ARCHFILES := $(ARCHFILES) $(shell find src/arch/$(ARCH) -type f -name '*.c' -pri
|
|||
HFILES := $(shell find src -type f -name '*.h')
|
||||
OBJ := $(patsubst src/%.c,obj/$(ARCH)/%.o,$(CFILES) $(ARCHFILES))
|
||||
|
||||
.PHONY: all clean obj
|
||||
.PHONY: all clean obj $(ARCHES)
|
||||
|
||||
all: bin/$(TARGET)-$(ARCH)
|
||||
default: bin/$(TARGET)-$(ARCH)
|
||||
all: $(ARCHES)
|
||||
|
||||
$(ARCHES):
|
||||
$(MAKE) ARCH=$@
|
||||
|
||||
bin/$(TARGET)-$(ARCH): $(OBJ)
|
||||
@mkdir -p $(@D)
|
||||
|
|
|
|||
Loading…
Reference in New Issue