Mercurial > hg > truffle
comparison make/linux/makefiles/buildtree.make @ 6854:fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
Summary: Change makefiles so that targets and parameters can be overridden by alternate makefiles.
Reviewed-by: dholmes, coleenp
author | jprovino |
---|---|
date | Wed, 10 Oct 2012 14:35:58 -0400 |
parents | 74c359c4a9e5 |
children | 9855b7e559ae |
comparison
equal
deleted
inserted
replaced
6830:81e878c53615 | 6854:fb19af007ffc |
---|---|
55 # The makefiles are split this way so that "make foo" will run faster by not | 55 # The makefiles are split this way so that "make foo" will run faster by not |
56 # having to read the dependency files for the vm. | 56 # having to read the dependency files for the vm. |
57 | 57 |
58 -include $(SPEC) | 58 -include $(SPEC) |
59 include $(GAMMADIR)/make/scm.make | 59 include $(GAMMADIR)/make/scm.make |
60 include $(GAMMADIR)/make/defs.make | |
60 include $(GAMMADIR)/make/altsrc.make | 61 include $(GAMMADIR)/make/altsrc.make |
61 | 62 |
62 | 63 |
63 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. | 64 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. |
64 QUIETLY$(MAKE_VERBOSE) = @ | 65 QUIETLY$(MAKE_VERBOSE) = @ |
186 echo; \ | 187 echo; \ |
187 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ | 188 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ |
188 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ | 189 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ |
189 echo; \ | 190 echo; \ |
190 echo "GAMMADIR = $(GAMMADIR)"; \ | 191 echo "GAMMADIR = $(GAMMADIR)"; \ |
192 echo "HS_ALT_MAKE = $(HS_ALT_MAKE)"; \ | |
193 echo "OSNAME = $(OSNAME)"; \ | |
191 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ | 194 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ |
192 echo "SRCARCH = $(SRCARCH)"; \ | 195 echo "SRCARCH = $(SRCARCH)"; \ |
193 echo "BUILDARCH = $(BUILDARCH)"; \ | 196 echo "BUILDARCH = $(BUILDARCH)"; \ |
194 echo "LIBARCH = $(LIBARCH)"; \ | 197 echo "LIBARCH = $(LIBARCH)"; \ |
195 echo "TARGET = $(TARGET)"; \ | 198 echo "TARGET = $(TARGET)"; \ |
252 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ | 255 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ |
253 echo; \ | 256 echo; \ |
254 [ -n "$(SPEC)" ] && \ | 257 [ -n "$(SPEC)" ] && \ |
255 echo "include $(SPEC)"; \ | 258 echo "include $(SPEC)"; \ |
256 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ | 259 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ |
260 echo "include \$$(GAMMADIR)/make/excludeSrc.make"; \ | |
257 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ | 261 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
258 ) > $@ | 262 ) > $@ |
259 | 263 |
260 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst | 264 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
261 @echo Creating $@ ... | 265 @echo Creating $@ ... |