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
diff --git
a/src/Makefile
b/src/Makefile
index 72b234a1312739b7d8dafaf735409f6fde5e3012..6dd4610cbd0885556738bb02d6355c4e012a261e 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-1,10
+1,24
@@
+BUILD_SUBDIRS = threads userprog vm filesys
+
all::
all::
- @echo "Run 'make' in
the threads, userprog, filesys, or vm directory
."
+ @echo "Run 'make' in
subdirectories: $(BUILD_SUBDIRS)
."
@echo "This top-level make has only 'clean' targets."
@echo "This top-level make has only 'clean' targets."
+CLEAN_SUBDIRS = $(BUILD_SUBDIRS) examples
+
clean::
clean::
- for d in threads; do $(MAKE) -C $$d $@; done
+ for d in $(CLEAN_SUBDIRS); do $(MAKE) -C $$d $@; done
+ rm -f TAGS tags
-distclean::
- $(MAKE) clean
+distclean:: clean
find . -name '*~' -exec rm '{}' \;
find . -name '*~' -exec rm '{}' \;
+
+TAGS_SUBDIRS = $(BUILD_SUBDIRS) devices lib
+TAGS_SOURCES = `find $(TAGS_SUBDIRS) -name \*.[chS] -print`
+
+TAGS::
+ etags --members $(TAGS_SOURCES)
+
+tags::
+ ctags -T --no-warn $(TAGS_SOURCES)
+