Handout
This commit is contained in:
31
Makefile
Normal file
31
Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
# Default target
|
||||
.DEFAULT_GOAL = all
|
||||
|
||||
echo=$(shell which echo) -e
|
||||
|
||||
# Paths to kernel and userspace for StuBSmI
|
||||
# (Note: also defined as relative paths in {user,kernel}/Makefile!)
|
||||
INITRD = user/$(BUILDDIR)/initrd.img
|
||||
KERNEL = kernel/$(BUILDDIR)/system
|
||||
KERNEL64 = kernel/$(BUILDDIR)/system64
|
||||
KERNEL_LINK = kernel/$(BUILDDIR)/system
|
||||
ISOFILE = kernel/$(BUILDDIR)/stubs.iso
|
||||
|
||||
SUBDIRS = kernel
|
||||
SUBDIRS += 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
|
||||
Reference in New Issue
Block a user