projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mention that process_wait() can be changed to an infinite loop
[pintos-anon]
/
src
/
Makefile.kernel
diff --git
a/src/Makefile.kernel
b/src/Makefile.kernel
index 92522faf4b3f12a60c9e2ace9c54d3c849c53483..162a4114256891794606019b106dc6d67353c323 100644
(file)
--- a/
src/Makefile.kernel
+++ b/
src/Makefile.kernel
@@
-1,17
+1,20
@@
-include Makefile.vars
-BUILD_SUBDIRS = $(addprefix build/, $(SUBDIRS))
-LN = ln
-MKDIR = mkdir
+# -*- makefile -*-
-all: build build/Makefile $(BUILD_SUBDIRS)
- $(MAKE) -C build
+all:
-$(BUILD_SUBDIRS):
- $(MKDIR) $@
-build:
- $(MKDIR) $@
+include Make.vars
+
+DIRS = $(sort $(addprefix build/,$(KERNEL_SUBDIRS) $(TEST_SUBDIRS) lib/user))
+
+all grade check: $(DIRS) build/Makefile
+ cd build && $(MAKE) $@
+$(DIRS):
+ mkdir -p $@
build/Makefile: ../Makefile.build
build/Makefile: ../Makefile.build
- $(LN) $< $@
+ cp $< $@
+
+build/%: $(DIRS) build/Makefile
+ cd build && $(MAKE) $*
clean:
rm -rf build
clean:
rm -rf build