< prev index next >

make/java/jli/Makefile

Print this page
rev 8219 : 8024900: PPC64: Enable new build on AIX (jdk part)
8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art, erikj
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com


 188 ifeq ($(PLATFORM), windows)
 189   STATIC_LIBRARY = $(OBJDIR)/static/$(LIBPREFIX)$(LIBRARY).lib
 190 
 191   $(STATIC_LIBRARY): $(FILES_o)
 192         @$(prep-target)
 193         $(LIBEXE) -nologo -out:$@ $(FILES_o)
 194 
 195   library:: $(STATIC_LIBRARY)
 196 endif # PLATFORM
 197 
 198 ifeq ($(PLATFORM), macosx)
 199   # Some Obj-C code is embedded in java_md_macosx.c, we stipulate so, using
 200   # "-x" option. Not doing so will cause the compiler to choose the language
 201   # based on the filename suffix, also "-Os" optimizes the file for size.
 202   CFLAGS_$(VARIANT)/java_md_macosx.o = -Os -x objective-c
 203   # Needed for linking the various launchers
 204   LDFLAGS += -framework Cocoa -framework Security \
 205              -framework ApplicationServices
 206   # Add solaris sources containing common logic to the header path
 207   OTHER_INCLUDES += -I$(LAUNCHER_SOLARIS_PLATFORM_SRC)













 208 endif # PLATFORM
 209 
 210 STATIC_LIBRARY_DIR = $(OBJDIR)/static
 211 STATIC_LIBRARY_NAME = lib$(LIBRARY).a
 212 STATIC_LIBRARY = $(STATIC_LIBRARY_DIR)/$(STATIC_LIBRARY_NAME)



 213 
 214 $(STATIC_LIBRARY_DIR): | $(OBJDIR)
 215         @$(MKDIR) $(STATIC_LIBRARY_DIR)
 216 
 217 $(STATIC_LIBRARY): $(STATIC_LIBRARY_DIR)
 218         @$(prep-target)
 219         $(AR) $(ARFLAGS) $@ $(FILES_o)
 220 
 221 library:: $(STATIC_LIBRARY)

 222 
 223 vpath %.c $(LAUNCHER_SHARE_SRC) $(LAUNCHER_PLATFORM_SRC)
 224 ifneq ($(SYSTEM_ZLIB),true)
 225   vpath %.c $(ZIP_SRC)
 226 else # !SYSTEM_ZLIB
 227   #
 228   # Add to ambient vpath so we pick up the library files, for macos we add 
 229   # solaris sources which contains the common logic for all nixes
 230   #
 231   ifeq ($(PLATFORM), macosx)
 232     vpath %.c $(LAUNCHER_SHARE_SRC) $(ZIP_SRC) $(LAUNCHER_PLATFORM_SRC) \
 233           $(LAUNCHER_SOLARIS_PLATFORM_SRC)
 234   else # !MACOSX
 235     vpath %.c $(LAUNCHER_SHARE_SRC) $(ZIP_SRC) $(LAUNCHER_PLATFORM_SRC)
 236   endif # MACOSX
 237 endif # SYSTEM_LIB


 188 ifeq ($(PLATFORM), windows)
 189   STATIC_LIBRARY = $(OBJDIR)/static/$(LIBPREFIX)$(LIBRARY).lib
 190 
 191   $(STATIC_LIBRARY): $(FILES_o)
 192         @$(prep-target)
 193         $(LIBEXE) -nologo -out:$@ $(FILES_o)
 194 
 195   library:: $(STATIC_LIBRARY)
 196 endif # PLATFORM
 197 
 198 ifeq ($(PLATFORM), macosx)
 199   # Some Obj-C code is embedded in java_md_macosx.c, we stipulate so, using
 200   # "-x" option. Not doing so will cause the compiler to choose the language
 201   # based on the filename suffix, also "-Os" optimizes the file for size.
 202   CFLAGS_$(VARIANT)/java_md_macosx.o = -Os -x objective-c
 203   # Needed for linking the various launchers
 204   LDFLAGS += -framework Cocoa -framework Security \
 205              -framework ApplicationServices
 206   # Add solaris sources containing common logic to the header path
 207   OTHER_INCLUDES += -I$(LAUNCHER_SOLARIS_PLATFORM_SRC)
 208 
 209   STATIC_LIBRARY_DIR = $(OBJDIR)/static
 210   STATIC_LIBRARY_NAME = lib$(LIBRARY).a
 211   STATIC_LIBRARY = $(STATIC_LIBRARY_DIR)/$(STATIC_LIBRARY_NAME)
 212 
 213   $(STATIC_LIBRARY_DIR): | $(OBJDIR)
 214         @$(MKDIR) $(STATIC_LIBRARY_DIR)
 215 
 216   $(STATIC_LIBRARY): $(STATIC_LIBRARY_DIR)
 217         @$(prep-target)
 218         $(AR) $(ARFLAGS) $@ $(FILES_o)
 219 
 220   library:: $(STATIC_LIBRARY)
 221 endif # PLATFORM
 222 
 223 # AIX can not handle $ORIGIN so we have to link with a static version of JLI.
 224 # (see make/common/Program.gmk for how we link the Java executables)
 225 ifeq ($(PLATFORM), aix)
 226   STATIC_LIBRARY_DIR = $(OBJDIR)/static
 227   STATIC_LIBRARY_NAME = lib$(LIBRARY).a
 228   STATIC_LIBRARY = $(STATIC_LIBRARY_DIR)/$(STATIC_LIBRARY_NAME)
 229 
 230   $(STATIC_LIBRARY_DIR): | $(OBJDIR)
 231         @$(MKDIR) $(STATIC_LIBRARY_DIR)
 232 
 233   $(STATIC_LIBRARY): $(STATIC_LIBRARY_DIR) $(FILES_o)
 234         @$(prep-target)
 235         $(AR) $(ARFLAGS) $@ $(FILES_o)
 236 
 237   library:: $(STATIC_LIBRARY)
 238 endif # PLATFORM aix
 239 
 240 vpath %.c $(LAUNCHER_SHARE_SRC) $(LAUNCHER_PLATFORM_SRC)
 241 ifneq ($(SYSTEM_ZLIB),true)
 242   vpath %.c $(ZIP_SRC)
 243 else # !SYSTEM_ZLIB
 244   #
 245   # Add to ambient vpath so we pick up the library files, for macos we add 
 246   # solaris sources which contains the common logic for all nixes
 247   #
 248   ifeq ($(PLATFORM), macosx)
 249     vpath %.c $(LAUNCHER_SHARE_SRC) $(ZIP_SRC) $(LAUNCHER_PLATFORM_SRC) \
 250           $(LAUNCHER_SOLARIS_PLATFORM_SRC)
 251   else # !MACOSX
 252     vpath %.c $(LAUNCHER_SHARE_SRC) $(ZIP_SRC) $(LAUNCHER_PLATFORM_SRC)
 253   endif # MACOSX
 254 endif # SYSTEM_LIB
< prev index next >