make/solaris/makefiles/launcher.make

Print this page
rev 1705 : 6981484: Update development launcher
Summary: Added a new launcher called fusion
   1 #
   2 # Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #
  24 
  25 # Rules to build gamma launcher, used by vm.make
  26 
  27 # gamma[_g]: launcher


  28 LAUNCHER   = gamma
  29 LAUNCHER_G = $(LAUNCHER)$(G_SUFFIX)
  30 
  31 LAUNCHERDIR   = $(GAMMADIR)/src/os/$(Platform_os_family)/launcher
  32 LAUNCHERFLAGS = $(ARCHFLAG) \
  33                 -I$(LAUNCHERDIR) -I$(GAMMADIR)/src/share/vm/prims \
  34                 -DFULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \
  35                 -DARCH=\"$(LIBARCH)\" \
  36                 -DGAMMA \
  37                 -DLAUNCHER_TYPE=\"gamma\" \
  38                 -DLINK_INTO_$(LINK_INTO)
  39 
  40 ifeq ($(LINK_INTO),AOUT)
  41   LAUNCHER.o                 = launcher.o $(JVM_OBJ_FILES)
  42   LAUNCHER_MAPFILE           = mapfile_reorder
  43   LFLAGS_LAUNCHER$(LDNOMAP) += $(MAPFLAG:FILENAME=$(LAUNCHER_MAPFILE))
  44   LIBS_LAUNCHER             += $(LIBS)
  45 else
  46   LAUNCHER.o                 = launcher.o
  47   LFLAGS_LAUNCHER           += -L `pwd`


  62 # globalization prefix. Instead force the use of a static globalization
  63 # prefix based on the source filepath so the objects from two identical
  64 # compilations are the same.
  65 #
  66 # Note: The blog says to use "-W0,-xglobalstatic", but that doesn't
  67 #       seem to work. I got "-W0,-noglobal" from Kelly and that works.
  68 #LAUNCHERFLAGS += -W0,-noglobal
  69 endif # Platform_compiler == sparcWorks
  70 
  71 launcher.o: launcher.c $(LAUNCHERDIR)/java.c $(LAUNCHERDIR)/java_md.c
  72         $(CC) -g -c -o $@ launcher.c $(LAUNCHERFLAGS) $(CPPFLAGS)
  73 
  74 launcher.c:
  75         @echo Generating $@
  76         $(QUIETLY) { \
  77         echo '#define debug launcher_debug'; \
  78         echo '#include "java.c"'; \
  79         echo '#include "java_md.c"'; \
  80         } > $@
  81 
  82 $(LAUNCHER): $(LAUNCHER.o) $(LIBJVM) $(LAUNCHER_MAPFILE)






  83 ifeq ($(filter -sbfast -xsbfast, $(CFLAGS_BROWSE)),)
  84         @echo Linking launcher...
  85         $(QUIETLY) $(LINK_LAUNCHER/PRE_HOOK)
  86         $(QUIETLY) \
  87         $(LINK_LAUNCHER) $(LFLAGS_LAUNCHER) -o $@ $(LAUNCHER.o) $(LIBS_LAUNCHER)
  88         $(QUIETLY) $(LINK_LAUNCHER/POST_HOOK)
  89         [ -f $(LAUNCHER_G) ] || ln -s $@ $(LAUNCHER_G)
  90 endif # filter -sbfast -xsbfast
  91 
   1 #
   2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #
  24 
  25 # Rules to build gamma launcher, used by vm.make
  26 
  27 # gamma[_g]: launcher
  28 
  29 LAUNCHER_SCRIPT = fusion
  30 LAUNCHER   = gamma
  31 LAUNCHER_G = $(LAUNCHER)$(G_SUFFIX)
  32 
  33 LAUNCHERDIR   = $(GAMMADIR)/src/os/$(Platform_os_family)/launcher
  34 LAUNCHERFLAGS = $(ARCHFLAG) \
  35                 -I$(LAUNCHERDIR) -I$(GAMMADIR)/src/share/vm/prims \
  36                 -DFULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \
  37                 -DARCH=\"$(LIBARCH)\" \
  38                 -DGAMMA \
  39                 -DLAUNCHER_TYPE=\"gamma\" \
  40                 -DLINK_INTO_$(LINK_INTO)
  41 
  42 ifeq ($(LINK_INTO),AOUT)
  43   LAUNCHER.o                 = launcher.o $(JVM_OBJ_FILES)
  44   LAUNCHER_MAPFILE           = mapfile_reorder
  45   LFLAGS_LAUNCHER$(LDNOMAP) += $(MAPFLAG:FILENAME=$(LAUNCHER_MAPFILE))
  46   LIBS_LAUNCHER             += $(LIBS)
  47 else
  48   LAUNCHER.o                 = launcher.o
  49   LFLAGS_LAUNCHER           += -L `pwd`


  64 # globalization prefix. Instead force the use of a static globalization
  65 # prefix based on the source filepath so the objects from two identical
  66 # compilations are the same.
  67 #
  68 # Note: The blog says to use "-W0,-xglobalstatic", but that doesn't
  69 #       seem to work. I got "-W0,-noglobal" from Kelly and that works.
  70 #LAUNCHERFLAGS += -W0,-noglobal
  71 endif # Platform_compiler == sparcWorks
  72 
  73 launcher.o: launcher.c $(LAUNCHERDIR)/java.c $(LAUNCHERDIR)/java_md.c
  74         $(CC) -g -c -o $@ launcher.c $(LAUNCHERFLAGS) $(CPPFLAGS)
  75 
  76 launcher.c:
  77         @echo Generating $@
  78         $(QUIETLY) { \
  79         echo '#define debug launcher_debug'; \
  80         echo '#include "java.c"'; \
  81         echo '#include "java_md.c"'; \
  82         } > $@
  83 
  84 $(LAUNCHER_SCRIPT): $(LAUNCHERDIR)/launcher.script
  85         $(QUIETLY) { \
  86         sed -e 's/@@LIBARCH@@/$(LIBARCH)/g' $< > $@; \
  87         chmod +x $@; \
  88         }
  89 
  90 $(LAUNCHER): $(LAUNCHER.o) $(LIBJVM) $(LAUNCHER_MAPFILE) $(LAUNCHER_SCRIPT)
  91 ifeq ($(filter -sbfast -xsbfast, $(CFLAGS_BROWSE)),)
  92         @echo Linking launcher...
  93         $(QUIETLY) $(LINK_LAUNCHER/PRE_HOOK)
  94         $(QUIETLY) \
  95         $(LINK_LAUNCHER) $(LFLAGS_LAUNCHER) -o $@ $(LAUNCHER.o) $(LIBS_LAUNCHER)
  96         $(QUIETLY) $(LINK_LAUNCHER/POST_HOOK)
  97         [ -f $(LAUNCHER_G) ] || ln -s $@ $(LAUNCHER_G)
  98 endif # filter -sbfast -xsbfast
  99