Changeset 309 for trunk/openjdk/hotspot/make/linux
- Timestamp:
- Feb 13, 2012, 10:07:12 PM (14 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 1 deleted
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk
- Property svn:mergeinfo changed
/branches/vendor/oracle/openjdk6/b24 (added) merged: 308 /branches/vendor/oracle/openjdk6/current merged: 307
- Property svn:mergeinfo changed
-
trunk/openjdk/hotspot/make/linux/Makefile
r278 r309 20 20 # or visit www.oracle.com if you need additional information or have any 21 21 # questions. 22 # 22 # 23 23 # 24 24 … … 46 46 # make REMOTE="rsh -l me myotherlinuxbox" 47 47 48 # Along with VM, Serviceability Agent (SA) is built for SA/JDI binding. 49 # JDI binding on SA produces two binaries: 48 # Along with VM, Serviceability Agent (SA) is built for SA/JDI binding. 49 # JDI binding on SA produces two binaries: 50 50 # 1. sa-jdi.jar - This is build before building libjvm[_g].so 51 51 # Please refer to ./makefiles/sa.make 52 52 # 2. libsa[_g].so - Native library for SA - This is built after 53 53 # libjsig[_g].so (signal interposition library) 54 # Please refer to ./makefiles/vm.make 54 # Please refer to ./makefiles/vm.make 55 55 # If $(GAMMADIR)/agent dir is not present, SA components are not built. 56 56 … … 62 62 include $(GAMMADIR)/make/$(OSNAME)/makefiles/rules.make 63 63 64 ifndef LP6465 64 ifndef CC_INTERP 66 FORCE_TIERED=1 67 endif 65 ifndef FORCE_TIERED 66 FORCE_TIERED=1 67 endif 68 68 endif 69 69 … … 257 257 258 258 $(SUBDIRS_C2): $(BUILDTREE_MAKE) 259 if def FORCE_TIERED259 ifeq ($(FORCE_TIERED),1) 260 260 $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks 261 261 $(BUILDTREE) VARIANT=tiered FORCE_TIERED=1 -
trunk/openjdk/hotspot/make/linux/adlc_updater
r2 r309 16 16 mv $1+ $1 17 17 } 18 [ -f $3/$1 ] && (fix_lines $2/$1 $3/$1; cmp -s $2/$1 $3/$1) || \ 18 fix_lines $2/$1 $3/$1 19 [ -f $3/$1 ] && cmp -s $2/$1 $3/$1 || \ 19 20 ( [ -f $3/$1 ] && echo Updating $3/$1 ; touch $2/made-change ; mv $2/$1 $3/$1 ) -
trunk/openjdk/hotspot/make/linux/makefiles/adlc.make
r278 r309 1 1 # 2 # Copyright (c) 1999, 20 09, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 43 43 $(GAMMADIR)/src/os_cpu/$(OS)_$(ARCH)/vm/$(OS)_$(Platform_arch_model).ad 44 44 45 Src_Dirs += $(GAMMADIR)/src/share/vm/adlc46 47 45 EXEC = $(OUTDIR)/adlc 48 46 49 47 # set VPATH so make knows where to look for source files 50 Src_Dirs_V = ${Src_Dirs} $(GENERATED)/incls51 VPATH 48 Src_Dirs_V += $(GAMMADIR)/src/share/vm/adlc 49 VPATH += $(Src_Dirs_V:%=%:) 52 50 53 51 # set INCLUDES for C preprocessor 54 Src_Dirs_I = ${Src_Dirs}$(GENERATED)52 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED) 55 53 INCLUDES += $(Src_Dirs_I:%=-I%) 56 54 -
trunk/openjdk/hotspot/make/linux/makefiles/amd64.make
r278 r309 1 1 # 2 # Copyright (c) 2003, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 23 23 # 24 24 25 # Not included in includeDB because it has no dependencies26 Obj_Files += linux_x86_64.o27 28 25 # The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized 29 26 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) -
trunk/openjdk/hotspot/make/linux/makefiles/build_vm_def.sh
r278 r309 2 2 3 3 # If we're cross compiling use that path for nm 4 if [ "$ ALT_COMPILER_PATH" != "" ]; then4 if [ "$CROSS_COMPILE_ARCH" != "" ]; then 5 5 NM=$ALT_COMPILER_PATH/nm 6 6 else -
trunk/openjdk/hotspot/make/linux/makefiles/buildtree.make
r278 r309 1 1 # 2 # Copyright (c) 2005, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 38 38 # VARIANT - core, compiler1, compiler2, or tiered 39 39 # HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07) 40 # HOTSPOT_BUILD_VERSION - internal, PRTjob ID, JPRTjob ID40 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty 41 41 # JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0) 42 42 # … … 114 114 115 115 SIMPLE_DIRS = \ 116 $(PLATFORM_DIR)/generated/ incls \116 $(PLATFORM_DIR)/generated/dependencies \ 117 117 $(PLATFORM_DIR)/generated/adfiles \ 118 118 $(PLATFORM_DIR)/generated/jvmtifiles … … 125 125 126 126 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \ 127 env.sh env.csh .dbxrc test_gamma127 env.sh env.csh jdkpath.sh .dbxrc test_gamma 128 128 129 129 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ … … 198 198 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ 199 199 echo; \ 200 echo "Src_Dirs = \\"; \ 200 echo "# Used for platform dispatching"; \ 201 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ 202 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ 203 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ 204 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \ 205 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \ 206 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \ 207 echo "CFLAGS += \$$(TARGET_DEFINES)"; \ 208 echo; \ 209 echo "Src_Dirs_V = \\"; \ 201 210 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ 211 echo "\$$(GAMMADIR)/src/cpu/$(ARCH)/vm \\"; \ 212 echo "\$$(GAMMADIR)/src/os/$(OS_FAMILY)/vm \\"; \ 213 echo "\$$(GAMMADIR)/src/os_cpu/$(OS_FAMILY)_$(ARCH)/vm"; \ 214 echo; \ 215 echo "Src_Dirs_I = \\"; \ 216 echo "\$$(GAMMADIR)/src/share/vm \\"; \ 217 echo "\$$(GAMMADIR)/src/share/vm/prims \\"; \ 202 218 echo "\$$(GAMMADIR)/src/cpu/$(ARCH)/vm \\"; \ 203 219 echo "\$$(GAMMADIR)/src/os/$(OS_FAMILY)/vm \\"; \ … … 302 318 sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \ 303 319 ) > $@ 320 321 jdkpath.sh: $(BUILDTREE_MAKE) 322 @echo Creating $@ ... 323 $(QUIETLY) ( \ 324 $(BUILDTREE_COMMENT); \ 325 echo "JDK=${JAVA_HOME}"; \ 326 ) > $@ 304 327 305 328 .dbxrc: $(BUILDTREE_MAKE) -
trunk/openjdk/hotspot/make/linux/makefiles/core.make
r278 r309 1 1 # 2 # Copyright (c) 1999, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 25 25 # Sets make macros for making core version of VM 26 26 27 # Note the effect on includeDB lists in top.make: 28 # includeDB_compiler* and ad_<arch>.*pp are excluded from the build, 27 # Select which files to use (in top.make) 29 28 TYPE=CORE 30 29 -
trunk/openjdk/hotspot/make/linux/makefiles/defs.make
r278 r309 1 1 # 2 # Copyright (c) 2006, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # -
trunk/openjdk/hotspot/make/linux/makefiles/gcc.make
r278 r309 26 26 # CC, CPP & AS 27 27 28 ifdef ALT_COMPILER_PATH 28 # When cross-compiling the ALT_COMPILER_PATH points 29 # to the cross-compilation toolset 30 ifdef CROSS_COMPILE_ARCH 29 31 CPP = $(ALT_COMPILER_PATH)/g++ 30 32 CC = $(ALT_COMPILER_PATH)/gcc … … 43 45 # check for precompiled headers support 44 46 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" 47 # Allow the user to turn off precompiled headers from the command line. 48 ifneq ($(USE_PRECOMPILED_HEADER),0) 45 49 USE_PRECOMPILED_HEADER=1 46 50 PRECOMPILED_HEADER_DIR=. 47 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/incls/_precompiled.incl.gch 51 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled.hpp 52 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch 53 endif 48 54 endif 49 55 … … 143 149 ifneq "$(shell expr \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) = 3 \) \))" "0" 144 150 OPT_CFLAGS/mulnode.o += -O0 151 endif 152 153 # Flags for generating make dependency flags. 154 ifneq ("${CC_VER_MAJOR}", "2") 155 DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) 156 endif 157 158 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. 159 ifneq ($(USE_PRECOMPILED_HEADER),1) 160 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER 145 161 endif 146 162 -
trunk/openjdk/hotspot/make/linux/makefiles/i486.make
r278 r309 1 1 # 2 # Copyright (c) 1999, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 24 24 25 25 # TLS helper, assembled from .s file 26 # Not included in includeDB because it has no dependencies27 Obj_Files += linux_x86_32.o28 26 29 27 # The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized -
trunk/openjdk/hotspot/make/linux/makefiles/jvmti.make
r278 r309 1 1 # 2 # Copyright (c) 2003, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 38 38 JvmtiSrcDir = $(GAMMADIR)/src/share/vm/prims 39 39 InterpreterSrcDir = $(GAMMADIR)/src/share/vm/interpreter 40 Src_Dirs += $(JvmtiSrcDir)41 40 42 41 # set VPATH so make knows where to look for source files 43 Src_Dirs_V = ${Src_Dirs}44 VPATH 42 Src_Dirs_V += $(JvmtiSrcDir) 43 VPATH += $(Src_Dirs_V:%=%:) 45 44 46 45 JvmtiGeneratedNames = \ -
trunk/openjdk/hotspot/make/linux/makefiles/launcher.make
r278 r309 1 1 # 2 # Copyright (c) 2005, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 25 25 # Rules to build gamma launcher, used by vm.make 26 26 27 # gamma[_g]: launcher28 27 28 LAUNCHER_SCRIPT = hotspot 29 29 LAUNCHER = gamma 30 LAUNCHER_G = $(LAUNCHER)$(G_SUFFIX)31 30 32 LAUNCHERDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/launcher 33 LAUNCHERFLAGS = $(ARCHFLAG) \ 31 LAUNCHERDIR := $(GAMMADIR)/src/os/posix/launcher 32 LAUNCHERDIR_SHARE := $(GAMMADIR)/src/share/tools/launcher 33 LAUNCHERFLAGS := $(ARCHFLAG) \ 34 34 -I$(LAUNCHERDIR) -I$(GAMMADIR)/src/share/vm/prims \ 35 -I$(LAUNCHERDIR_SHARE) \ 35 36 -DFULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \ 37 -DJDK_MAJOR_VERSION=\"$(JDK_MAJOR_VERSION)\" \ 38 -DJDK_MINOR_VERSION=\"$(JDK_MINOR_VERSION)\" \ 36 39 -DARCH=\"$(LIBARCH)\" \ 37 40 -DGAMMA \ 38 41 -DLAUNCHER_TYPE=\"gamma\" \ 39 -DLINK_INTO_$(LINK_INTO) 42 -DLINK_INTO_$(LINK_INTO) \ 43 $(TARGET_DEFINES) 40 44 41 45 ifeq ($(LINK_INTO),AOUT) … … 56 60 LINK_LAUNCHER/POST_HOOK = $(LINK_LIB.CC/POST_HOOK) 57 61 58 launcher.o: launcher.c $(LAUNCHERDIR)/java.c $(LAUNCHERDIR)/java_md.c 59 $(CC) -g -c -o $@ launcher.c $(LAUNCHERFLAGS) $(CPPFLAGS) 62 LAUNCHER_OUT = launcher 60 63 61 launcher.c: 62 @echo Generating $@ 63 $(QUIETLY) { \ 64 echo '#define debug launcher_debug'; \ 65 echo '#include "java.c"'; \ 66 echo '#include "java_md.c"'; \ 67 } > $@ 64 SUFFIXES += .d 68 65 69 $(LAUNCHER): $(LAUNCHER.o) $(LIBJVM) $(LAUNCHER_MAPFILE) 70 $(QUIETLY) { \ 71 echo Linking launcher...; \ 72 $(LINK_LAUNCHER/PRE_HOOK) \ 73 $(LINK_LAUNCHER) $(LFLAGS_LAUNCHER) -o $@ $(LAUNCHER.o) $(LIBS_LAUNCHER); \ 74 $(LINK_LAUNCHER/POST_HOOK) \ 75 [ -f $(LAUNCHER_G) ] || { ln -s $@ $(LAUNCHER_G); }; \ 76 } 66 SOURCES := $(shell find $(LAUNCHERDIR) -name "*.c") 67 SOURCES_SHARE := $(shell find $(LAUNCHERDIR_SHARE) -name "*.c") 68 69 OBJS := $(patsubst $(LAUNCHERDIR)/%.c,$(LAUNCHER_OUT)/%.o,$(SOURCES)) $(patsubst $(LAUNCHERDIR_SHARE)/%.c,$(LAUNCHER_OUT)/%.o,$(SOURCES_SHARE)) 70 71 DEPFILES := $(patsubst %.o,%.d,$(OBJS)) 72 -include $(DEPFILES) 73 74 $(LAUNCHER_OUT)/%.o: $(LAUNCHERDIR_SHARE)/%.c 75 $(QUIETLY) [ -d $(LAUNCHER_OUT) ] || { mkdir -p $(LAUNCHER_OUT); } 76 $(QUIETLY) $(CC) -g -o $@ -c $< -MMD $(LAUNCHERFLAGS) $(CPPFLAGS) 77 78 $(LAUNCHER_OUT)/%.o: $(LAUNCHERDIR)/%.c 79 $(QUIETLY) [ -d $(LAUNCHER_OUT) ] || { mkdir -p $(LAUNCHER_OUT); } 80 $(QUIETLY) $(CC) -g -o $@ -c $< -MMD $(LAUNCHERFLAGS) $(CPPFLAGS) 81 82 $(LAUNCHER): $(OBJS) $(LIBJVM) $(LAUNCHER_MAPFILE) 83 $(QUIETLY) echo Linking launcher... 84 $(QUIETLY) $(LINK_LAUNCHER/PRE_HOOK) 85 $(QUIETLY) $(LINK_LAUNCHER) $(LFLAGS_LAUNCHER) -o $@ $(OBJS) $(LIBS_LAUNCHER) 86 $(QUIETLY) $(LINK_LAUNCHER/POST_HOOK) 87 88 $(LAUNCHER): $(LAUNCHER_SCRIPT) 89 90 $(LAUNCHER_SCRIPT): $(LAUNCHERDIR)/launcher.script 91 $(QUIETLY) sed -e 's/@@LIBARCH@@/$(LIBARCH)/g' $< > $@ 92 $(QUIETLY) chmod +x $@ 93 -
trunk/openjdk/hotspot/make/linux/makefiles/mapfile-vers-debug
r278 r309 4 4 5 5 # 6 # Copyright (c) 2002, 20 08, Oracle and/or its affiliates. All rights reserved.6 # Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 7 7 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8 8 # -
trunk/openjdk/hotspot/make/linux/makefiles/mapfile-vers-product
r278 r309 4 4 5 5 # 6 # Copyright (c) 2002, 20 08, Oracle and/or its affiliates. All rights reserved.6 # Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 7 7 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8 8 # -
trunk/openjdk/hotspot/make/linux/makefiles/product.make
r278 r309 1 1 # 2 # Copyright (c) 1999, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # -
trunk/openjdk/hotspot/make/linux/makefiles/rules.make
r278 r309 1 1 # 2 # Copyright (c) 2003, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 152 152 @echo Compiling $< 153 153 $(QUIETLY) $(REMOVE_TARGET) 154 $(QUIETLY) $(COMPILE.CC) -o $@ $< $(COMPILE_DONE)154 $(QUIETLY) $(COMPILE.CC) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE) 155 155 else 156 156 %.o: %.cpp … … 158 158 $(QUIETLY) $(REMOVE_TARGET) 159 159 $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \ 160 $(subst $(VM_PICFLAG), ,$(COMPILE.CC)) -o $@ $< $(COMPILE_DONE), \161 $(COMPILE.CC) -o $@ $< $(COMPILE_DONE))160 $(subst $(VM_PICFLAG), ,$(COMPILE.CC)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \ 161 $(COMPILE.CC) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)) 162 162 endif 163 163 … … 165 165 @echo Assembling $< 166 166 $(QUIETLY) $(REMOVE_TARGET) 167 $(QUIETLY) $(AS.S) -o $@ $< $(COMPILE_DONE)167 $(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE) 168 168 169 169 %.s: %.cpp -
trunk/openjdk/hotspot/make/linux/makefiles/sa.make
r278 r309 1 1 # 2 # Copyright (c) 2003, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 49 49 AGENT_FILES2 := $(shell /usr/bin/test -d $(AGENT_DIR) && /bin/ls $(AGENT_FILES2)) 50 50 51 AGENT_FILES1_LIST := $(GENERATED)/agent1.classes.list 52 AGENT_FILES2_LIST := $(GENERATED)/agent2.classes.list 53 51 54 SA_CLASSDIR = $(GENERATED)/saclasses 52 55 … … 80 83 mkdir -p $(SA_CLASSDIR); \ 81 84 fi 82 83 $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -source 1.4 -target 1.4 -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) $(AGENT_FILES1) 84 $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -source 1.4 -target 1.4 -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) $(AGENT_FILES2) 85 85 86 # Note: When indented, make tries to execute the '$(shell' comment. 87 # In some environments, cmd processors have limited line length. 88 # To prevent the javac invocation in the next block from using 89 # a very long cmd line, we use javac's @file-list option. We 90 # generate the file lists using make's built-in 'foreach' control 91 # flow which also avoids cmd processor line length issues. Since 92 # the 'foreach' is done as part of make's macro expansion phase, 93 # the initialization of the lists is also done in the same phase 94 # using '$(shell rm ...' instead of using the more traditional 95 # 'rm ...' rule. 96 $(shell rm -rf $(AGENT_FILES1_LIST) $(AGENT_FILES2_LIST)) 97 $(foreach file,$(AGENT_FILES1),$(shell echo $(file) >> $(AGENT_FILES1_LIST))) 98 $(foreach file,$(AGENT_FILES2),$(shell echo $(file) >> $(AGENT_FILES2_LIST))) 99 100 $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -source 1.4 -target 1.4 -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) @$(AGENT_FILES1_LIST) 101 $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -source 1.4 -target 1.4 -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) @$(AGENT_FILES2_LIST) 102 86 103 $(QUIETLY) $(REMOTE) $(COMPILE.RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer 87 104 $(QUIETLY) echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES) … … 102 119 rm -rf $(SA_CLASSDIR) 103 120 rm -rf $(GENERATED)/sa-jdi.jar 121 rm -rf $(AGENT_FILES1_LIST) $(AGENT_FILES2_LIST) -
trunk/openjdk/hotspot/make/linux/makefiles/saproc.make
r278 r309 1 1 # 2 # Copyright (c) 2005, 20 09, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 56 56 # also, we don't build SA on Itanium, PPC, ARM or zero. 57 57 58 checkAndBuildSA: 59 $(QUIETLY) if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "ia64" -a "$(SRCARCH)" != "arm" -a "$(SRCARCH)" != "ppc" -a "$(SRCARCH)" != "zero" ] ; then \ 60 $(MAKE) -f vm.make $(LIBSAPROC); \ 61 fi 58 ifneq ($(wildcard $(AGENT_DIR)),) 59 ifneq ($(filter-out ia64 arm ppc zero,$(SRCARCH)),) 60 BUILDLIBSAPROC = $(LIBSAPROC) 61 endif 62 endif 63 62 64 63 65 SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE) … … 82 84 $(QUIETLY) [ -f $(LIBSAPROC_G) ] || { ln -s $@ $(LIBSAPROC_G); } 83 85 84 install_saproc: checkAndBuildSA86 install_saproc: $(BUILDLIBSAPROC) 85 87 $(QUIETLY) if [ -e $(LIBSAPROC) ] ; then \ 86 88 echo "Copying $(LIBSAPROC) to $(DEST_SAPROC)"; \ … … 88 90 fi 89 91 90 .PHONY: checkAndBuildSAinstall_saproc92 .PHONY: install_saproc -
trunk/openjdk/hotspot/make/linux/makefiles/shark.make
r278 r309 1 1 # 2 # Copyright (c) 1999, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # Copyright 2008, 2010 Red Hat, Inc. 4 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -
trunk/openjdk/hotspot/make/linux/makefiles/sparc.make
r278 r309 1 1 # 2 # Copyright (c) 2005, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 23 23 # 24 24 25 # Not included in includeDB because it has no dependencies26 Obj_Files += linux_sparc.o27 -
trunk/openjdk/hotspot/make/linux/makefiles/sparcWorks.make
r278 r309 1 1 # 2 # Copyright (c) 1999, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 75 75 OPT_CFLAGS/NOOPT=-xO0 76 76 77 # Flags for creating the dependency files. 78 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) 79 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d) 80 endif 81 82 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. 83 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER 84 77 85 #------------------------------------------------------------------------ 78 86 # Linker flags -
trunk/openjdk/hotspot/make/linux/makefiles/sparcv9.make
r278 r309 1 1 # 2 # Copyright (c) 2005, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 22 22 # 23 23 24 #25 # Not included in includeDB because it has no dependencies26 Obj_Files += linux_sparc.o27 28 24 # gcc 4.0 miscompiles this code in -m64 29 25 OPT_CFLAGS/macro.o = -O0 -
trunk/openjdk/hotspot/make/linux/makefiles/top.make
r278 r309 32 32 33 33 # It assumes the following flags are set: 34 # CFLAGS Platform_file, Src_Dirs , SYSDEFS, AOUT, Obj_Files34 # CFLAGS Platform_file, Src_Dirs_I, Src_Dirs_V, SYSDEFS, AOUT, Obj_Files 35 35 36 36 # -- D. Ungar (5/97) from a file by Bill Bush … … 46 46 CDG = cd $(GENERATED); 47 47 48 # Pick up MakeDeps' sources and definitions49 include $(GAMMADIR)/make/$(Platform_os_family)/makefiles/makedeps.make50 MakeDepsClass = MakeDeps.class51 52 48 ifdef USE_PRECOMPILED_HEADER 53 49 PrecompiledOption = -DUSE_PRECOMPILED_HEADER … … 58 54 endif 59 55 60 MakeDeps = $(RUN.JAVA) $(PrecompiledOption) -classpath $(GENERATED) MakeDeps61 62 Include_DBs/GC = $(VM)/includeDB_gc \63 $(VM)/includeDB_gc_parallel \64 $(VM)/gc_implementation/includeDB_gc_parallelScavenge \65 $(VM)/gc_implementation/includeDB_gc_concurrentMarkSweep \66 $(VM)/gc_implementation/includeDB_gc_parNew \67 $(VM)/gc_implementation/includeDB_gc_g1 \68 $(VM)/gc_implementation/includeDB_gc_serial \69 $(VM)/gc_implementation/includeDB_gc_shared70 71 Include_DBs/CORE = $(VM)/includeDB_core $(Include_DBs/GC) \72 $(VM)/includeDB_jvmti \73 $(VM)/includeDB_features74 Include_DBs/COMPILER1 = $(Include_DBs/CORE) $(VM)/includeDB_compiler175 Include_DBs/COMPILER2 = $(Include_DBs/CORE) $(VM)/includeDB_compiler276 Include_DBs/TIERED = $(Include_DBs/CORE) $(VM)/includeDB_compiler1 $(VM)/includeDB_compiler277 Include_DBs/ZERO = $(Include_DBs/CORE) $(VM)/includeDB_zero78 Include_DBs/SHARK = $(Include_DBs/ZERO) $(VM)/includeDB_shark79 Include_DBs = $(Include_DBs/$(TYPE))80 81 56 Cached_plat = $(GENERATED)/platform.current 82 Cached_db = $(GENERATED)/includeDB.current83 84 Incremental_Lists = $(Cached_db)85 # list generation also creates $(GENERATED)/$(Cached_plat)86 87 57 88 58 AD_Dir = $(GENERATED)/adfiles … … 103 73 104 74 105 # default target: make makeDeps,update lists, make vm75 # default target: update lists, make vm 106 76 # done in stages to force sequential order with parallel make 107 77 # … … 111 81 112 82 # This is an explicit dependency for the sake of parallel makes. 113 vm_build_preliminaries: checks $( Incremental_Lists) $(AD_Files_If_Required) jvmti_stuff sa_stuff83 vm_build_preliminaries: checks $(Cached_plat) $(AD_Files_If_Required) jvmti_stuff sa_stuff 114 84 @# We need a null action here, so implicit rules don't get consulted. 115 85 116 # make makeDeps: (and zap the cached db files to force a nonincremental run) 117 118 $(GENERATED)/$(MakeDepsClass): $(MakeDepsSources) 119 @$(REMOTE) $(COMPILE.JAVAC) -classpath $(GAMMADIR)/src/share/tools/MakeDeps -d $(GENERATED) $(MakeDepsSources) 120 @echo Removing $(Incremental_Lists) to force regeneration. 121 @rm -f $(Incremental_Lists) 122 @$(CDG) echo >$(Cached_plat) 123 124 # make incremental_lists, if cached files out of date, run makeDeps 125 126 $(Incremental_Lists): $(Include_DBs) $(Plat_File) $(GENERATED)/$(MakeDepsClass) 127 $(CDG) cat $(Include_DBs) > $(GENERATED)/includeDB 128 $(CDG) if [ ! -r incls ] ; then \ 129 mkdir incls ; \ 130 fi 131 $(CDG) (echo $(CDG) echo $(MakeDeps) diffs UnixPlatform $(Cached_plat) $(Cached_db) $(Plat_File) $(GENERATED)/includeDB $(MakeDepsOptions)) > makeDeps.sh 132 $(CDG) $(REMOTE) sh $(GENERATED)/makeDeps.sh 133 $(CDG) cp includeDB $(Cached_db) 86 $(Cached_plat): $(Plat_File) 134 87 $(CDG) cp $(Plat_File) $(Cached_plat) 135 88 136 # symbolic target for command lines137 lists: $(Incremental_Lists)138 @: lists are now up to date139 140 89 # make AD files as necessary 141 ad_stuff: $( Incremental_Lists) $(adjust-mflags)90 ad_stuff: $(Cached_plat) $(adjust-mflags) 142 91 @$(MAKE) -f adlc.make $(MFLAGS-adjusted) 143 92 144 93 # generate JVMTI files from the spec 145 jvmti_stuff: $( Incremental_Lists) $(adjust-mflags)94 jvmti_stuff: $(Cached_plat) $(adjust-mflags) 146 95 @$(MAKE) -f jvmti.make $(MFLAGS-adjusted) 147 96 … … 170 119 @$(MAKE) -f vm.make install 171 120 172 # next rules support "make foo.[oi ]"121 # next rules support "make foo.[ois]" 173 122 174 123 %.o %.i %.s: … … 180 129 clean: 181 130 rm -f $(GENERATED)/*.class 182 $(MAKE) $(MFLAGS) $(GENERATED)/$(MakeDepsClass)183 131 $(MAKE) -f vm.make $(MFLAGS) clean 184 132 -
trunk/openjdk/hotspot/make/linux/makefiles/vm.make
r278 r309 36 36 37 37 GENERATED = ../generated 38 39 # read a generated file defining the set of .o's and the .o .h dependencies 40 include $(GENERATED)/Dependencies 38 DEP_DIR = $(GENERATED)/dependencies 39 40 # reads the generated files defining the set of .o's and the .o .h dependencies 41 -include $(DEP_DIR)/*.d 41 42 42 43 # read machine-specific adjustments (%%% should do this via buildtree.make?) … … 48 49 49 50 # set VPATH so make knows where to look for source files 50 # Src_Dirs is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm 51 # The incls directory contains generated header file lists for inclusion. 51 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm 52 52 # The adfiles directory contains ad_<arch>.[ch]pp. 53 53 # The jvmtifiles directory contains jvmti*.[ch]pp 54 Src_Dirs_V = $(GENERATED)/adfiles $(GENERATED)/jvmtifiles ${Src_Dirs} $(GENERATED)/incls 55 VPATH += $(Src_Dirs_V:%=%:) 56 57 # set INCLUDES for C preprocessor 58 Src_Dirs_I = $(PRECOMPILED_HEADER_DIR) $(GENERATED)/adfiles $(GENERATED)/jvmtifiles ${Src_Dirs} $(GENERATED) 59 INCLUDES += $(Src_Dirs_I:%=-I%) 54 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles 55 VPATH += $(Src_Dirs_V:%=%:) 56 57 # set INCLUDES for C preprocessor. 58 Src_Dirs_I += $(GENERATED) 59 # The order is important for the precompiled headers to work. 60 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%) 60 61 61 62 ifeq (${VERSION}, debug) … … 119 120 LIBJVM_G = lib$(JVM)$(G_SUFFIX).so 120 121 122 CORE_PATHS := $(shell find $(GAMMADIR)/src/share/vm/* -type d \! \( -name adlc -o -name c1 -o -name gc_implementation -o -name opto -o -name shark -o -name libadt \)) 123 CORE_PATHS += $(GAMMADIR)/src/os/$(Platform_os_family)/vm 124 CORE_PATHS += $(GAMMADIR)/src/cpu/$(Platform_arch)/vm 125 CORE_PATHS += $(GAMMADIR)/src/os_cpu/$(Platform_os_arch)/vm 126 CORE_PATHS += $(GENERATED)/jvmtifiles 127 128 COMPILER1_PATHS := $(GAMMADIR)/src/share/vm/c1 129 130 COMPILER2_PATHS := $(GAMMADIR)/src/share/vm/opto 131 COMPILER2_PATHS += $(GAMMADIR)/src/share/vm/libadt 132 COMPILER2_PATHS += $(GENERATED)/adfiles 133 134 # Include dirs per type. 135 Src_Dirs/CORE := $(CORE_PATHS) 136 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS) 137 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS) 138 Src_Dirs/TIERED := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS) 139 Src_Dirs/ZERO := $(CORE_PATHS) 140 Src_Dirs/SHARK := $(CORE_PATHS) 141 Src_Dirs := $(Src_Dirs/$(TYPE)) 142 143 COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp chaitin\* c2_\* runtime_\* 144 COMPILER1_SPECIFIC_FILES := c1_\* 145 SHARK_SPECIFIC_FILES := shark 146 ZERO_SPECIFIC_FILES := zero 147 148 # Always exclude these. 149 Src_Files_EXCLUDE := jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp 150 151 # Exclude per type. 152 Src_Files_EXCLUDE/CORE := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp 153 Src_Files_EXCLUDE/COMPILER1 := $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp 154 Src_Files_EXCLUDE/COMPILER2 := $(COMPILER1_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) 155 Src_Files_EXCLUDE/TIERED := $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) 156 Src_Files_EXCLUDE/ZERO := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp 157 Src_Files_EXCLUDE/SHARK := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) 158 159 Src_Files_EXCLUDE += $(Src_Files_EXCLUDE/$(TYPE)) 160 161 # Special handling of arch model. 162 ifeq ($(Platform_arch_model), x86_32) 163 Src_Files_EXCLUDE += \*x86_64\* 164 endif 165 ifeq ($(Platform_arch_model), x86_64) 166 Src_Files_EXCLUDE += \*x86_32\* 167 endif 168 169 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE. 170 define findsrc 171 $(notdir $(shell find $(1)/. ! -name . -prune \ 172 -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \ 173 -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \))) 174 endef 175 176 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e))) 177 178 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files)))) 179 121 180 JVM_OBJ_FILES = $(Obj_Files) 122 181 … … 181 240 182 241 # rule for building precompiled header 183 $(PRECOMPILED_HEADER): $(Precompiled_Files)242 $(PRECOMPILED_HEADER): 184 243 $(QUIETLY) echo Generating precompiled header $@ 185 $(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR) /incls186 $(QUIETLY) $(COMPILE.CC) -x c++-header -c $(GENERATED)/incls/_precompiled.incl-o $@ $(COMPILE_DONE)244 $(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR) 245 $(QUIETLY) $(COMPILE.CC) $(DEPFLAGS) -x c++-header $(PRECOMPILED_HEADER_SRC) -o $@ $(COMPILE_DONE) 187 246 188 247 # making the library: … … 253 312 #---------------------------------------------------------------------- 254 313 255 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) checkAndBuildSA314 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC) 256 315 257 316 install: install_jvm install_jsig install_saproc -
trunk/openjdk/hotspot/make/linux/makefiles/zero.make
r278 r309 1 1 # 2 # Copyright (c) 1999, 20 08, Oracle and/or its affiliates. All rights reserved.2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # Copyright 2009 Red Hat, Inc. 4 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. … … 26 26 # Setup for Zero (non-Shark) version of VM 27 27 28 # Select which includeDBfiles to use (in top.make)28 # Select which files to use (in top.make) 29 29 TYPE = ZERO 30 30
Note:
See TracChangeset
for help on using the changeset viewer.