< prev index next >

make/sun/jpeg/Makefile

Print this page
rev 1351 : 6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
Reviewed-by: tbell
rev 1366 : 6989774: imageio compiler warnings in native code
Reviewed-by: igor, prr
rev 1373 : 7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
Reviewed-by: igor
rev 1377 : 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
Reviewed-by: tbell

  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 BUILDDIR = ../..
  27 PACKAGE = sun.awt
  28 LIBRARY = jpeg
  29 PRODUCT = sun
  30 include $(BUILDDIR)/common/Defs.gmk
  31 
  32 #
  33 # Use highest optimization level
  34 #
  35 _OPT = $(CC_HIGHEST_OPT)

  36 
  37 #
  38 # Files
  39 #
  40 include FILES_c.gmk
  41 
  42 AUTO_FILES_JAVA_DIRS = sun/awt/image com/sun/imageio/plugins/jpeg
  43 
  44 FILES_export = \
  45         sun/awt/image/JPEGImageDecoder.java \
  46         com/sun/imageio/plugins/jpeg/JPEGImageReader.java \
  47         com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
  48 
  49 # OpenJDK doesn't use the non-standard jpeg classes which we hope to remove.
  50 ifndef OPENJDK
  51 FILES_m = mapfile-vers-closed
  52 FILES_export += \
  53         sun/awt/image/codec/JPEGImageDecoderImpl.java \
  54         sun/awt/image/codec/JPEGImageEncoderImpl.java
  55 vpath %.c   $(CLOSED_SRC)/share/native/$(PKGDIR)/image/jpeg
  56 OTHER_INCLUDES += -I$(CLOSED_SRC)/share/native/$(PKGDIR)/image/jpeg
  57 endif
  58 
  59 OTHER_INCLUDES += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
  60 
  61 # Rules
  62 #
  63 ifeq ($(PLATFORM), solaris)
  64   ifneq ($(ARCH), amd64)
  65     FILES_reorder += reorder-$(ARCH)
  66   endif
  67 endif


















  68 include $(BUILDDIR)/common/Mapfile-vers.gmk
  69 include $(BUILDDIR)/common/Library.gmk
  70 
  71 #
  72 # Add to ambient vpath to get files in a subdirectory
  73 #
  74 vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
  75 
  76 ifeq ($(PLATFORM), windows)
  77   # Files built here do not compile with warning level 3 if warnings are fatal
  78   COMPILER_WARNINGS_FATAL=false
  79 endif # PLATFORM
  80 
  81 CLASSES.export += java.io.InputStream
  82 

  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 BUILDDIR = ../..
  27 PACKAGE = sun.awt
  28 LIBRARY = jpeg
  29 PRODUCT = sun

  30 

  31 # Use highest optimization level
  32 OPTIMIZATION_LEVEL = HIGHEST
  33 
  34 include $(BUILDDIR)/common/Defs.gmk
  35 
  36 #
  37 # Files
  38 #
  39 include FILES_c.gmk
  40 
  41 AUTO_FILES_JAVA_DIRS = sun/awt/image com/sun/imageio/plugins/jpeg
  42 
  43 FILES_export = \
  44         sun/awt/image/JPEGImageDecoder.java \
  45         com/sun/imageio/plugins/jpeg/JPEGImageReader.java \
  46         com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
  47 
  48 # OpenJDK doesn't use the non-standard jpeg classes which we hope to remove.
  49 ifndef OPENJDK
  50 FILES_m = mapfile-vers-closed
  51 FILES_export += \
  52         sun/awt/image/codec/JPEGImageDecoderImpl.java \
  53         sun/awt/image/codec/JPEGImageEncoderImpl.java
  54 vpath %.c   $(CLOSED_SRC)/share/native/$(PKGDIR)/image/jpeg
  55 OTHER_INCLUDES += -I$(CLOSED_SRC)/share/native/$(PKGDIR)/image/jpeg
  56 endif
  57 
  58 OTHER_INCLUDES += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
  59 
  60 # Rules
  61 #
  62 ifeq ($(PLATFORM), solaris)
  63   ifneq ($(ARCH), amd64)
  64     FILES_reorder += reorder-$(ARCH)
  65   endif
  66 endif
  67 
  68 ifeq ($(PLATFORM), linux)
  69 
  70   # Suppress gcc warnings like "variable might be clobbered by 'longjmp'
  71   # or 'vfork'": this warning indicates that some variable is placed to
  72   # a register by optimized compiler and it's value might be lost on longjmp().
  73   # Recommended way to avoid such warning is to declare the variable as
  74   # volatile to prevent the optimization. However, this approach does not
  75   # work because we have to declare all variables as volatile in result.
  76 
  77   CC_43_OR_NEWER := \
  78     $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \
  79         \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) )
  80   ifeq ($(CC_43_OR_NEWER),1)
  81     OTHER_CFLAGS += -Wno-clobbered
  82   endif
  83 endif
  84 
  85 include $(BUILDDIR)/common/Mapfile-vers.gmk
  86 include $(BUILDDIR)/common/Library.gmk
  87 
  88 #
  89 # Add to ambient vpath to get files in a subdirectory
  90 #
  91 vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image/jpeg





  92 
  93 CLASSES.export += java.io.InputStream
  94 
< prev index next >