Mercurial > hg > truffle
comparison make/linux/Makefile @ 6858:b261523fe66c hs25-b05
Merge
author | amurillo |
---|---|
date | Fri, 12 Oct 2012 13:55:52 -0700 |
parents | fb19af007ffc |
children | e522a00b91aa 892acf0431ef |
comparison
equal
deleted
inserted
replaced
6829:0cc77f9b31ad | 6858:b261523fe66c |
---|---|
173 # jvmgshark shark <os>_<arch>_shark/jvmg | 173 # jvmgshark shark <os>_<arch>_shark/jvmg |
174 # optimizedshark shark <os>_<arch>_shark/optimized | 174 # optimizedshark shark <os>_<arch>_shark/optimized |
175 # profiledshark shark <os>_<arch>_shark/profiled | 175 # profiledshark shark <os>_<arch>_shark/profiled |
176 # productshark shark <os>_<arch>_shark/product | 176 # productshark shark <os>_<arch>_shark/product |
177 # | 177 # |
178 # fastdebugminimal1 minimal1 <os>_<arch>_minimal1/fastdebug | |
179 # jvmgminimal1 minimal1 <os>_<arch>_minimal1/jvmg | |
180 # productminimal1 minimal1 <os>_<arch>_minimal1/product | |
181 # | |
178 # What you get with each target: | 182 # What you get with each target: |
179 # | 183 # |
180 # debug* - "thin" libjvm_g - debug info linked into the gamma_g launcher | 184 # debug* - "thin" libjvm_g - debug info linked into the gamma_g launcher |
181 # fastdebug* - optimized compile, but with asserts enabled | 185 # fastdebug* - optimized compile, but with asserts enabled |
182 # jvmg* - "fat" libjvm_g - debug info linked into libjvm_g.so | 186 # jvmg* - "fat" libjvm_g - debug info linked into libjvm_g.so |
197 SUBDIRS_C2 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler2/,$(TARGETS)) | 201 SUBDIRS_C2 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler2/,$(TARGETS)) |
198 SUBDIRS_TIERED = $(addprefix $(OSNAME)_$(BUILDARCH)_tiered/,$(TARGETS)) | 202 SUBDIRS_TIERED = $(addprefix $(OSNAME)_$(BUILDARCH)_tiered/,$(TARGETS)) |
199 SUBDIRS_CORE = $(addprefix $(OSNAME)_$(BUILDARCH)_core/,$(TARGETS)) | 203 SUBDIRS_CORE = $(addprefix $(OSNAME)_$(BUILDARCH)_core/,$(TARGETS)) |
200 SUBDIRS_ZERO = $(addprefix $(OSNAME)_$(VARIANTARCH)_zero/,$(TARGETS)) | 204 SUBDIRS_ZERO = $(addprefix $(OSNAME)_$(VARIANTARCH)_zero/,$(TARGETS)) |
201 SUBDIRS_SHARK = $(addprefix $(OSNAME)_$(VARIANTARCH)_shark/,$(TARGETS)) | 205 SUBDIRS_SHARK = $(addprefix $(OSNAME)_$(VARIANTARCH)_shark/,$(TARGETS)) |
206 SUBDIRS_MINIMAL1 = $(addprefix $(OSNAME)_$(BUILDARCH)_minimal1/,$(TARGETS)) | |
202 | 207 |
203 TARGETS_C2 = $(TARGETS) | 208 TARGETS_C2 = $(TARGETS) |
204 TARGETS_C1 = $(addsuffix 1,$(TARGETS)) | 209 TARGETS_C1 = $(addsuffix 1,$(TARGETS)) |
205 TARGETS_TIERED = $(addsuffix tiered,$(TARGETS)) | 210 TARGETS_TIERED = $(addsuffix tiered,$(TARGETS)) |
206 TARGETS_CORE = $(addsuffix core,$(TARGETS)) | 211 TARGETS_CORE = $(addsuffix core,$(TARGETS)) |
207 TARGETS_ZERO = $(addsuffix zero,$(TARGETS)) | 212 TARGETS_ZERO = $(addsuffix zero,$(TARGETS)) |
208 TARGETS_SHARK = $(addsuffix shark,$(TARGETS)) | 213 TARGETS_SHARK = $(addsuffix shark,$(TARGETS)) |
214 TARGETS_MINIMAL1 = $(addsuffix minimal1,$(TARGETS)) | |
209 | 215 |
210 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OSNAME)/makefiles/buildtree.make | 216 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OSNAME)/makefiles/buildtree.make |
211 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OSNAME) SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) | 217 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OSNAME) SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) |
212 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION) JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) | 218 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION) JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) |
213 BUILDTREE_VARS += ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) OBJCOPY=$(OBJCOPY) STRIP_POLICY=$(STRIP_POLICY) ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) ZIPEXE=$(ZIPEXE) | 219 BUILDTREE_VARS += ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) OBJCOPY=$(OBJCOPY) STRIP_POLICY=$(STRIP_POLICY) ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) ZIPEXE=$(ZIPEXE) |
222 @echo " $(TARGETS_C2)" | 228 @echo " $(TARGETS_C2)" |
223 @echo " $(TARGETS_C1)" | 229 @echo " $(TARGETS_C1)" |
224 @echo " $(TARGETS_CORE)" | 230 @echo " $(TARGETS_CORE)" |
225 @echo " $(TARGETS_ZERO)" | 231 @echo " $(TARGETS_ZERO)" |
226 @echo " $(TARGETS_SHARK)" | 232 @echo " $(TARGETS_SHARK)" |
233 @echo " $(TARGETS_MINIMAL1)" | |
227 | 234 |
228 checks: check_os_version check_j2se_version | 235 checks: check_os_version check_j2se_version |
229 | 236 |
230 # We do not want people accidentally building on old systems (e.g. Linux 2.2.x, | 237 # We do not want people accidentally building on old systems (e.g. Linux 2.2.x, |
231 # Solaris 2.5.1, 2.6). | 238 # Solaris 2.5.1, 2.6). |
279 | 286 |
280 $(SUBDIRS_SHARK): $(BUILDTREE_MAKE) platform_zero | 287 $(SUBDIRS_SHARK): $(BUILDTREE_MAKE) platform_zero |
281 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks | 288 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
282 $(BUILDTREE) VARIANT=shark VARIANTARCH=$(VARIANTARCH) | 289 $(BUILDTREE) VARIANT=shark VARIANTARCH=$(VARIANTARCH) |
283 | 290 |
291 $(SUBDIRS_MINIMAL1): $(BUILDTREE_MAKE) | |
292 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks | |
293 $(BUILDTREE) VARIANT=minimal1 | |
294 | |
295 | |
284 platform_zero: $(GAMMADIR)/make/$(OSNAME)/platform_zero.in | 296 platform_zero: $(GAMMADIR)/make/$(OSNAME)/platform_zero.in |
285 $(SED) 's/@ZERO_ARCHDEF@/$(ZERO_ARCHDEF)/g;s/@ZERO_LIBARCH@/$(ZERO_LIBARCH)/g;' < $< > $@ | 297 $(SED) 's/@ZERO_ARCHDEF@/$(ZERO_ARCHDEF)/g;s/@ZERO_LIBARCH@/$(ZERO_LIBARCH)/g;' < $< > $@ |
286 | 298 |
287 # Define INSTALL=y at command line to automatically copy JVM into JAVA_HOME | 299 # Define INSTALL=y at command line to automatically copy JVM into JAVA_HOME |
288 | 300 |
336 ifeq ($(TEST_IN_BUILD),true) | 348 ifeq ($(TEST_IN_BUILD),true) |
337 cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && ./test_gamma | 349 cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && ./test_gamma |
338 endif | 350 endif |
339 ifdef INSTALL | 351 ifdef INSTALL |
340 cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS) install | 352 cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS) install |
353 endif | |
354 | |
355 $(TARGETS_MINIMAL1): $(SUBDIRS_MINIMAL1) | |
356 cd $(OSNAME)_$(BUILDARCH)_minimal1/$(patsubst %minimal1,%,$@) && $(MAKE) $(MFLAGS) | |
357 ifeq ($(TEST_IN_BUILD),true) | |
358 cd $(OSNAME)_$(BUILDARCH)_minimal1/$(patsubst %minimal1,%,$@) && ./test_gamma | |
359 endif | |
360 ifdef INSTALL | |
361 cd $(OSNAME)_$(BUILDARCH)_minimal1/$(patsubst %minimal1,%,$@) && $(MAKE) $(MFLAGS) install | |
341 endif | 362 endif |
342 | 363 |
343 # Just build the tree, and nothing else: | 364 # Just build the tree, and nothing else: |
344 tree: $(SUBDIRS_C2) | 365 tree: $(SUBDIRS_C2) |
345 tree1: $(SUBDIRS_C1) | 366 tree1: $(SUBDIRS_C1) |
346 treecore: $(SUBDIRS_CORE) | 367 treecore: $(SUBDIRS_CORE) |
347 treezero: $(SUBDIRS_ZERO) | 368 treezero: $(SUBDIRS_ZERO) |
348 treeshark: $(SUBDIRS_SHARK) | 369 treeshark: $(SUBDIRS_SHARK) |
370 treeminimal1: $(SUBDIRS_MINIMAL1) | |
349 | 371 |
350 # Doc target. This is the same for all build options. | 372 # Doc target. This is the same for all build options. |
351 # Hence create a docs directory beside ...$(ARCH)_[...] | 373 # Hence create a docs directory beside ...$(ARCH)_[...] |
352 # We specify 'BUILD_FLAVOR=product' so that the proper | 374 # We specify 'BUILD_FLAVOR=product' so that the proper |
353 # ENABLE_FULL_DEBUG_SYMBOLS value is used. | 375 # ENABLE_FULL_DEBUG_SYMBOLS value is used. |
367 shark: jvmgshark productshark | 389 shark: jvmgshark productshark |
368 | 390 |
369 clean_docs: | 391 clean_docs: |
370 rm -rf $(SUBDIR_DOCS) | 392 rm -rf $(SUBDIR_DOCS) |
371 | 393 |
372 clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark: | 394 clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark clean_minimal1: |
373 rm -rf $(OSNAME)_$(BUILDARCH)_$(subst clean_,,$@) | 395 rm -rf $(OSNAME)_$(BUILDARCH)_$(subst clean_,,$@) |
374 | 396 |
375 clean: clean_compiler2 clean_compiler1 clean_core clean_zero clean_shark clean_docs | 397 clean: clean_compiler2 clean_compiler1 clean_core clean_zero clean_shark clean_minimal1 clean_docs |
376 | 398 |
377 include $(GAMMADIR)/make/cscope.make | 399 include $(GAMMADIR)/make/cscope.make |
378 | 400 |
401 # | |
402 # Include alternate Makefile if it exists. | |
403 # | |
404 -include $(HS_ALT_MAKE)/$(OSNAME)/Makefile.make | |
405 | |
379 #------------------------------------------------------------------------------- | 406 #------------------------------------------------------------------------------- |
380 | 407 |
381 .PHONY: $(TARGETS_C2) $(TARGETS_C1) $(TARGETS_CORE) $(TARGETS_ZERO) $(TARGETS_SHARK) | 408 .PHONY: $(TARGETS_C2) $(TARGETS_C1) $(TARGETS_CORE) $(TARGETS_ZERO) $(TARGETS_SHARK) $(TARGETS_MINIMAL1) |
382 .PHONY: tree tree1 treecore treezero treeshark | 409 .PHONY: tree tree1 treecore treezero treeshark |
383 .PHONY: all compiler1 compiler2 core zero shark | 410 .PHONY: all compiler1 compiler2 core zero shark |
384 .PHONY: clean clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark docs clean_docs | 411 .PHONY: clean clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark docs clean_docs |
385 .PHONY: checks check_os_version check_j2se_version | 412 .PHONY: checks check_os_version check_j2se_version |
413 .PHONY: $(HS_ALT_MAKE)/$(OSNAME)/Makefile.make |