summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5c520b)
raw | patch | inline | side by side (parent: b5c520b)
author | Vikram S. Adve <vadve@cs.uiuc.edu> | |
Thu, 10 Jul 2003 19:25:29 +0000 (19:25 +0000) | ||
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | |
Thu, 10 Jul 2003 19:25:29 +0000 (19:25 +0000) |
Makefile.common | patch | blob | history | |
Makefile.rules | patch | blob | history |
diff --git a/Makefile.common b/Makefile.common
index 81bfc6d2a223dddd8d0c3f450c52ff3ccad25d38..d48647db9c5cdc86b9236f3719c0ddf71c78eb4d 100644 (file)
--- a/Makefile.common
+++ b/Makefile.common
# Default rule for test. It ensures everything has a test rule
test::
+# Default rule for building only bytecode.
+bytecode::
+
# Print out the directories used for building
prdirs::
echo "Home Offset : " $(HOME_OBJ_ROOT);
#---------------------------------------------------------
ifdef DIRS
-all install clean test ::
+all install clean test bytecode ::
$(VERB) for dir in ${DIRS}; do \
(cd $$dir; $(MAKE) $@) || exit 1; \
done
# Handle PARALLEL_DIRS
ifdef PARALLEL_DIRS
-all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
-install :: $(addsuffix /.makeinstall, $(PARALLEL_DIRS))
-clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
-test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
+all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
+install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
+clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
+test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
+bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
-%/.makeall %/.makeinstall %/.makeclean %/.maketest:
+%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
endif
# Handle directories that may or may not exist
ifdef OPTIONAL_DIRS
-all install clean test ::
+all install clean test bytecode ::
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
if [ -d $$dir ]; \
then\
diff --git a/Makefile.rules b/Makefile.rules
index 81bfc6d2a223dddd8d0c3f450c52ff3ccad25d38..d48647db9c5cdc86b9236f3719c0ddf71c78eb4d 100644 (file)
--- a/Makefile.rules
+++ b/Makefile.rules
# Default rule for test. It ensures everything has a test rule
test::
+# Default rule for building only bytecode.
+bytecode::
+
# Print out the directories used for building
prdirs::
echo "Home Offset : " $(HOME_OBJ_ROOT);
#---------------------------------------------------------
ifdef DIRS
-all install clean test ::
+all install clean test bytecode ::
$(VERB) for dir in ${DIRS}; do \
(cd $$dir; $(MAKE) $@) || exit 1; \
done
# Handle PARALLEL_DIRS
ifdef PARALLEL_DIRS
-all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
-install :: $(addsuffix /.makeinstall, $(PARALLEL_DIRS))
-clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
-test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
+all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
+install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
+clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
+test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
+bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
-%/.makeall %/.makeinstall %/.makeclean %/.maketest:
+%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
endif
# Handle directories that may or may not exist
ifdef OPTIONAL_DIRS
-all install clean test ::
+all install clean test bytecode ::
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
if [ -d $$dir ]; \
then\