120 $(SHARE_SRC)/native/bin/utility.c 121 endif 122 WILDCARDS=true 123 endif 124 125 # IDLJ_TOOL only uses different source files 126 ifeq ($(IDLJ_TOOL),true) 127 ifdef STANDALONE_CORBA_WS 128 FILES_c = $(SHARE_SRC)/native/bin/idlj.c \ 129 $(SHARE_SRC)/native/bin/utility.c 130 endif 131 endif 132 133 # jdb only 134 ifeq ($(PROGRAM),jdb) 135 # Override the default APP_CLASSPATH to pick up sa-jdi.jar also. 136 # Default is defined in src/[solaris,windows]/bin/java_md.h 137 # PROGRAM, JAVA_ARGS, and APP_CLASSPATH are used in src/share/bin/java.c 138 # SA is currently not available on windows (for any ARCH), or linux-ia64: 139 ifneq ($(ARCH), ia64) 140 JDB_CLASSPATH = "{ \"/lib/tools.jar\", \"/lib/sa-jdi.jar\", \"/classes\" }" 141 OTHER_CPPFLAGS += -DAPP_CLASSPATH=$(JDB_CLASSPATH) 142 endif 143 endif 144 145 # jconsole only 146 ifeq ($(PROGRAM),jconsole) 147 JCONSOLE_CLASSPATH = "{ \"/lib/jconsole.jar\", \"/lib/tools.jar\", \"/classes\" }" 148 OTHER_CPPFLAGS += -DAPP_CLASSPATH=$(JCONSOLE_CLASSPATH) 149 ifeq ($(PLATFORM), windows) 150 OTHER_CPPFLAGS += -DJAVAW 151 LDLIBS_COMMON += user32.lib 152 MAIN_JAVA_ARGS += -J-Djconsole.showOutputViewer 153 endif 154 endif 155 156 # GUI tools 157 ifeq ($(GUI_TOOL),true) 158 ifneq ($(PLATFORM), windows) 159 # Anything with a GUI needs X11 to be linked in. 160 OTHER_LDLIBS += -L$(OPENWIN_LIB) -lX11 161 endif 162 endif 163 164 # SA tools need special app classpath 165 ifeq ($(SA_TOOL),true) 166 SA_CLASSPATH = "{ \"/lib/tools.jar\", \"/lib/sa-jdi.jar\", \"/classes\"}" 167 OTHER_CPPFLAGS += -DAPP_CLASSPATH=$(SA_CLASSPATH) 168 endif 169 170 # Wildcards 171 ifeq ($(WILDCARDS),true) 172 OTHER_CPPFLAGS += -DEXPAND_CLASSPATH_WILDCARDS 173 endif 174 175 # Always tell native code what the main class is 176 OTHER_CPPFLAGS += -DMAIN_CLASS=\"$(MAIN_CLASS)\" 177 178 # Construct initializer for initial arguments to java 179 ALL_ARGS = -J-ms8m $(MAIN_JAVA_ARGS) $(MAIN_CLASS) $(MAIN_ARGS) 180 JAVA_ARGS = "{ $(ALL_ARGS:%=\"%\",) }" 181 182 # Always report launcher info 183 build: launcher_info 184 185 # Print info macro 186 define printLauncherSetting 187 if [ "$2" != "" ] ; then $(PRINTF) "%-16s %s\n" "$1:" "$2"; fi 188 endef 189 190 # Report basic information about this launcher 191 launcher_info: 192 @$(ECHO) "=========================================================" 193 @$(call printLauncherSetting,LAUNCHER,$(PROGRAM)) 194 @$(call printLauncherSetting,MAIN_CLASS,$(MAIN_CLASS)) 195 @$(call printLauncherSetting,MAIN_JAVA_ARGS,$(MAIN_JAVA_ARGS)) 196 @$(call printLauncherSetting,MAIN_ARGS,$(MAIN_ARGS)) 197 @$(call printLauncherSetting,ALL_ARGS,$(ALL_ARGS)) 198 @$(ECHO) "=========================================================" 199 200 # | 120 $(SHARE_SRC)/native/bin/utility.c 121 endif 122 WILDCARDS=true 123 endif 124 125 # IDLJ_TOOL only uses different source files 126 ifeq ($(IDLJ_TOOL),true) 127 ifdef STANDALONE_CORBA_WS 128 FILES_c = $(SHARE_SRC)/native/bin/idlj.c \ 129 $(SHARE_SRC)/native/bin/utility.c 130 endif 131 endif 132 133 # jdb only 134 ifeq ($(PROGRAM),jdb) 135 # Override the default APP_CLASSPATH to pick up sa-jdi.jar also. 136 # Default is defined in src/[solaris,windows]/bin/java_md.h 137 # PROGRAM, JAVA_ARGS, and APP_CLASSPATH are used in src/share/bin/java.c 138 # SA is currently not available on windows (for any ARCH), or linux-ia64: 139 ifneq ($(ARCH), ia64) 140 JDB_CLASSPATH = { "/lib/tools.jar", "/lib/sa-jdi.jar", "/classes" } 141 OTHER_CPPFLAGS += -DAPP_CLASSPATH='$(JDB_CLASSPATH)' 142 endif 143 endif 144 145 # jconsole only 146 ifeq ($(PROGRAM),jconsole) 147 JCONSOLE_CLASSPATH = { "/lib/jconsole.jar", "/lib/tools.jar", "/classes" } 148 OTHER_CPPFLAGS += -DAPP_CLASSPATH='$(JCONSOLE_CLASSPATH)' 149 ifeq ($(PLATFORM), windows) 150 OTHER_CPPFLAGS += -DJAVAW 151 LDLIBS_COMMON += user32.lib 152 MAIN_JAVA_ARGS += -J-Djconsole.showOutputViewer 153 endif 154 endif 155 156 # GUI tools 157 ifeq ($(GUI_TOOL),true) 158 ifneq ($(PLATFORM), windows) 159 # Anything with a GUI needs X11 to be linked in. 160 OTHER_LDLIBS += -L$(OPENWIN_LIB) -lX11 161 endif 162 endif 163 164 # SA tools need special app classpath 165 ifeq ($(SA_TOOL),true) 166 SA_CLASSPATH = { "/lib/tools.jar", "/lib/sa-jdi.jar", "/classes" } 167 OTHER_CPPFLAGS += -DAPP_CLASSPATH='$(SA_CLASSPATH)' 168 endif 169 170 # Wildcards 171 ifeq ($(WILDCARDS),true) 172 OTHER_CPPFLAGS += -DEXPAND_CLASSPATH_WILDCARDS 173 endif 174 175 # Always tell native code what the main class is 176 OTHER_CPPFLAGS += -DMAIN_CLASS='"$(MAIN_CLASS)"' 177 178 # Construct initializer for initial arguments to java 179 ALL_ARGS = -J-ms8m $(MAIN_JAVA_ARGS) $(MAIN_CLASS) $(MAIN_ARGS) 180 JAVA_ARGS = { $(ALL_ARGS:%="%",) } 181 182 # Always report launcher info 183 build: launcher_info 184 185 # Print info macro 186 define printLauncherSetting 187 if [ "$2" != "" ] ; then $(PRINTF) "%-16s %s\n" "$1:" "$2"; fi 188 endef 189 190 # Report basic information about this launcher 191 launcher_info: 192 @$(ECHO) "=========================================================" 193 @$(call printLauncherSetting,LAUNCHER,$(PROGRAM)) 194 @$(call printLauncherSetting,MAIN_CLASS,$(MAIN_CLASS)) 195 @$(call printLauncherSetting,MAIN_JAVA_ARGS,$(MAIN_JAVA_ARGS)) 196 @$(call printLauncherSetting,MAIN_ARGS,$(MAIN_ARGS)) 197 @$(call printLauncherSetting,ALL_ARGS,$(ALL_ARGS)) 198 @$(ECHO) "=========================================================" 199 200 # |