# Default target
.DEFAULT_GOAL = all

# OOStuBSmI:
#INITRD = user/$(BUILDDIR)/initrd.img

# MPStuBSmI:
INITRD = user/$(BUILDDIR)/initrd.tar

KERNEL64 = kernel/$(BUILDDIR)/system64
KERNEL = kernel/$(BUILDDIR)/system
ISOFILE = kernel/$(BUILDDIR)/stubs.iso

SUBDIRS = kernel libsys user

# Default targets
include tools/common.mk

all:
	$(VERBOSE) $(foreach DIR,$(SUBDIRS),$(MAKE) -C $(DIR) && ) true

lint::
	$(VERBOSE) $(foreach DIR,$(SUBDIRS),$(MAKE) -C $(DIR) lint && ) true

tidy::
	$(VERBOSE) $(foreach DIR,$(SUBDIRS),$(MAKE) -C $(DIR) tidy && ) true

# clean all apps additionally to default clean recipe from common.mk
clean::
	$(VERBOSE) $(foreach DIR,$(SUBDIRS),$(MAKE) -C $(DIR) clean && ) true

