117 # remove /net/$(HOST) if name already began with /java/
118 # remove /net/$(HOST) if name already began with /lab/
119 NEW_GAMMADIR := \
120 $(shell echo $(NEW_GAMMADIR) | \
121 sed -e "s=^\(.*\)=/net/$(HOST)\1=" \
122 -e "s=^/net/$(HOST)/home/=/home/=" \
123 -e "s=^/net/$(HOST)/java/=/java/=" \
124 -e "s=^/net/$(HOST)/lab/=/lab/=" \
125 )
126 # Don't use the new value for GAMMADIR unless a file with the new
127 # name actually exists.
128 ifneq ($(wildcard $(NEW_GAMMADIR)),)
129 GAMMADIR := $(NEW_GAMMADIR)
130 endif
131 endif
132
133 endif
134
135 # BUILDARCH is set to "zero" for Zero builds. VARIANTARCH
136 # is used to give the build directories meaningful names.
137 VARIANTARCH = $(subst i386,i486,$(ZERO_LIBARCH))
138
139 # There is a (semi-) regular correspondence between make targets and actions:
140 #
141 # Target Tree Type Build Dir
142 #
143 # debug compiler2 <os>_<arch>_compiler2/debug
144 # fastdebug compiler2 <os>_<arch>_compiler2/fastdebug
145 # jvmg compiler2 <os>_<arch>_compiler2/jvmg
146 # optimized compiler2 <os>_<arch>_compiler2/optimized
147 # profiled compiler2 <os>_<arch>_compiler2/profiled
148 # product compiler2 <os>_<arch>_compiler2/product
149 #
150 # debug1 compiler1 <os>_<arch>_compiler1/debug
151 # fastdebug1 compiler1 <os>_<arch>_compiler1/fastdebug
152 # jvmg1 compiler1 <os>_<arch>_compiler1/jvmg
153 # optimized1 compiler1 <os>_<arch>_compiler1/optimized
154 # profiled1 compiler1 <os>_<arch>_compiler1/profiled
155 # product1 compiler1 <os>_<arch>_compiler1/product
156 #
157 # debugcore core <os>_<arch>_core/debug
277 $(BUILDTREE) VARIANT=compiler1
278
279 $(SUBDIRS_CORE): $(BUILDTREE_MAKE)
280 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
281 $(BUILDTREE) VARIANT=core
282
283 $(SUBDIRS_ZERO): $(BUILDTREE_MAKE) platform_zero
284 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
285 $(BUILDTREE) VARIANT=zero VARIANTARCH=$(VARIANTARCH)
286
287 $(SUBDIRS_SHARK): $(BUILDTREE_MAKE) platform_zero
288 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
289 $(BUILDTREE) VARIANT=shark VARIANTARCH=$(VARIANTARCH)
290
291 $(SUBDIRS_MINIMAL1): $(BUILDTREE_MAKE)
292 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
293 $(BUILDTREE) VARIANT=minimal1
294
295
296 platform_zero: $(GAMMADIR)/make/$(OSNAME)/platform_zero.in
297 $(SED) 's/@ZERO_ARCHDEF@/$(ZERO_ARCHDEF)/g;s/@ZERO_LIBARCH@/$(ZERO_LIBARCH)/g;' < $< > $@
298
299 # Define INSTALL=y at command line to automatically copy JVM into JAVA_HOME
300
301 $(TARGETS_C2): $(SUBDIRS_C2)
302 cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS)
303 ifeq ($(TEST_IN_BUILD),true)
304 cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && ./test_gamma
305 endif
306 ifdef INSTALL
307 cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS) install
308 endif
309
310 $(TARGETS_TIERED): $(SUBDIRS_TIERED)
311 cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS)
312 ifeq ($(TEST_IN_BUILD),true)
313 cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && ./test_gamma
314 endif
315 ifdef INSTALL
316 cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS) install
317 endif
|
117 # remove /net/$(HOST) if name already began with /java/
118 # remove /net/$(HOST) if name already began with /lab/
119 NEW_GAMMADIR := \
120 $(shell echo $(NEW_GAMMADIR) | \
121 sed -e "s=^\(.*\)=/net/$(HOST)\1=" \
122 -e "s=^/net/$(HOST)/home/=/home/=" \
123 -e "s=^/net/$(HOST)/java/=/java/=" \
124 -e "s=^/net/$(HOST)/lab/=/lab/=" \
125 )
126 # Don't use the new value for GAMMADIR unless a file with the new
127 # name actually exists.
128 ifneq ($(wildcard $(NEW_GAMMADIR)),)
129 GAMMADIR := $(NEW_GAMMADIR)
130 endif
131 endif
132
133 endif
134
135 # BUILDARCH is set to "zero" for Zero builds. VARIANTARCH
136 # is used to give the build directories meaningful names.
137 VARIANTARCH = $(subst i386,i486,$(OPENJDK_TARGET_CPU_LEGACY_LIB))
138
139 # There is a (semi-) regular correspondence between make targets and actions:
140 #
141 # Target Tree Type Build Dir
142 #
143 # debug compiler2 <os>_<arch>_compiler2/debug
144 # fastdebug compiler2 <os>_<arch>_compiler2/fastdebug
145 # jvmg compiler2 <os>_<arch>_compiler2/jvmg
146 # optimized compiler2 <os>_<arch>_compiler2/optimized
147 # profiled compiler2 <os>_<arch>_compiler2/profiled
148 # product compiler2 <os>_<arch>_compiler2/product
149 #
150 # debug1 compiler1 <os>_<arch>_compiler1/debug
151 # fastdebug1 compiler1 <os>_<arch>_compiler1/fastdebug
152 # jvmg1 compiler1 <os>_<arch>_compiler1/jvmg
153 # optimized1 compiler1 <os>_<arch>_compiler1/optimized
154 # profiled1 compiler1 <os>_<arch>_compiler1/profiled
155 # product1 compiler1 <os>_<arch>_compiler1/product
156 #
157 # debugcore core <os>_<arch>_core/debug
277 $(BUILDTREE) VARIANT=compiler1
278
279 $(SUBDIRS_CORE): $(BUILDTREE_MAKE)
280 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
281 $(BUILDTREE) VARIANT=core
282
283 $(SUBDIRS_ZERO): $(BUILDTREE_MAKE) platform_zero
284 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
285 $(BUILDTREE) VARIANT=zero VARIANTARCH=$(VARIANTARCH)
286
287 $(SUBDIRS_SHARK): $(BUILDTREE_MAKE) platform_zero
288 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
289 $(BUILDTREE) VARIANT=shark VARIANTARCH=$(VARIANTARCH)
290
291 $(SUBDIRS_MINIMAL1): $(BUILDTREE_MAKE)
292 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks
293 $(BUILDTREE) VARIANT=minimal1
294
295
296 platform_zero: $(GAMMADIR)/make/$(OSNAME)/platform_zero.in
297 $(SED) 's/@ZERO_ARCHDEF@/$(ZERO_ARCHDEF)/g;s/@OPENJDK_TARGET_CPU_LEGACY_LIB@/$(OPENJDK_TARGET_CPU_LEGACY_LIB)/g;' < $< > $@
298
299 # Define INSTALL=y at command line to automatically copy JVM into JAVA_HOME
300
301 $(TARGETS_C2): $(SUBDIRS_C2)
302 cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS)
303 ifeq ($(TEST_IN_BUILD),true)
304 cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && ./test_gamma
305 endif
306 ifdef INSTALL
307 cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS) install
308 endif
309
310 $(TARGETS_TIERED): $(SUBDIRS_TIERED)
311 cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS)
312 ifeq ($(TEST_IN_BUILD),true)
313 cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && ./test_gamma
314 endif
315 ifdef INSTALL
316 cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS) install
317 endif
|