make/solaris/makefiles/launcher.make

Print this page
rev 1705 : 6981484: Update development launcher
Summary: Added a new launcher called fusion

@@ -1,7 +1,7 @@
 #
-# Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License version 2 only, as
 # published by the Free Software Foundation.

@@ -23,10 +23,12 @@
 #
 
 # Rules to build gamma launcher, used by vm.make
 
 # gamma[_g]: launcher
+
+LAUNCHER_SCRIPT = fusion
 LAUNCHER   = gamma
 LAUNCHER_G = $(LAUNCHER)$(G_SUFFIX)
 
 LAUNCHERDIR   = $(GAMMADIR)/src/os/$(Platform_os_family)/launcher
 LAUNCHERFLAGS = $(ARCHFLAG) \

@@ -77,11 +79,17 @@
         echo '#define debug launcher_debug'; \
         echo '#include "java.c"'; \
         echo '#include "java_md.c"'; \
         } > $@
 
-$(LAUNCHER): $(LAUNCHER.o) $(LIBJVM) $(LAUNCHER_MAPFILE)
+$(LAUNCHER_SCRIPT): $(LAUNCHERDIR)/launcher.script
+        $(QUIETLY) { \
+        sed -e 's/@@LIBARCH@@/$(LIBARCH)/g' $< > $@; \
+        chmod +x $@; \
+        }
+
+$(LAUNCHER): $(LAUNCHER.o) $(LIBJVM) $(LAUNCHER_MAPFILE) $(LAUNCHER_SCRIPT)
 ifeq ($(filter -sbfast -xsbfast, $(CFLAGS_BROWSE)),)
         @echo Linking launcher...
         $(QUIETLY) $(LINK_LAUNCHER/PRE_HOOK)
         $(QUIETLY) \
         $(LINK_LAUNCHER) $(LFLAGS_LAUNCHER) -o $@ $(LAUNCHER.o) $(LIBS_LAUNCHER)