Add sw makefile which compiles all subtargets
Usefull now that we have like 4 different folders that need to be compiled slightly differently
This commit is contained in:
25
sw/Makefile
25
sw/Makefile
@@ -1,9 +1,22 @@
|
|||||||
TOPTARGETS := all clean
|
.PHONY: all install bios bootloader kernel clean
|
||||||
|
|
||||||
SUBDIRS := $(wildcard */.)
|
all: bios bootloader kernel
|
||||||
|
|
||||||
$(TOPTARGETS): $(SUBDIRS)
|
install: all
|
||||||
$(SUBDIRS):
|
sh script/format_disk.sh
|
||||||
$(MAKE) -C $@ $(MAKECMDGOALS)
|
sh script/copy_files.sh
|
||||||
|
|
||||||
.PHONY: $(TOPTARGETS) $(SUBDIRS)
|
bios:
|
||||||
|
@$(MAKE) -C bios
|
||||||
|
|
||||||
|
bootloader:
|
||||||
|
@$(MAKE) -C bootloader
|
||||||
|
|
||||||
|
kernel:
|
||||||
|
@$(MAKE) -C kernel
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@$(MAKE) -C bios --no-print-directory $@
|
||||||
|
@$(MAKE) -C bootloader --no-print-directory $@
|
||||||
|
@$(MAKE) -C kernel --no-print-directory $@
|
||||||
Reference in New Issue
Block a user