src/share/tools/hsdis/Makefile
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7104565 Sdiff src/share/tools/hsdis

src/share/tools/hsdis/Makefile

Print this page


   1 #
   2 # Copyright (c) 2008, 2012, 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 #  


  99 CFLAGS/amd64    += -m64
 100 else
 101 ARCH=$(ARCH1:amd64=i386)
 102 CFLAGS/i386     += -m32
 103 CFLAGS/sparc    += -m32
 104 endif # LP64
 105 CFLAGS          += $(CFLAGS/$(ARCH))
 106 CFLAGS          += -fPIC
 107 OS              = macosx
 108 LIB_EXT         = .dylib
 109 CC              = gcc
 110 CFLAGS          += -O
 111 # CFLAGS        += -DZ_PREFIX
 112 DLDFLAGS        += -shared
 113 DLDFLAGS        += -lz
 114 LDFLAGS         += -ldl
 115 OUTFLAGS        += -o $@
 116 else #Windows
 117 OS              = windows
 118 CC              = gcc
 119 #CPPFLAGS       += /D"WIN32" /D"_WINDOWS" /D"DEBUG" /D"NDEBUG"
 120 CFLAGS          +=  /nologo /MD /W3 /WX /O2 /Fo$(@:.dll=.obj) /Gi-
 121 CFLAGS          += LIBARCH=\"$(LIBARCH)\"
 122 DLDFLAGS        += /dll /subsystem:windows /incremental:no \
 123                         /export:decode_instruction
 124 OUTFLAGS        += /link /out:$@
 125 LIB_EXT         = .dll
 126 endif   # Darwin
 127 endif   # Linux
 128 endif   # SunOS
 129 
 130 LIBARCH         = $(ARCH)
 131 ifdef           LP64
 132 LIBARCH64/sparc = sparcv9
 133 LIBARCH64/i386  = amd64
 134 LIBARCH64       = $(LIBARCH64/$(ARCH))
 135 ifneq           ($(LIBARCH64),)
 136 LIBARCH         = $(LIBARCH64)
 137 endif   # LIBARCH64/$(ARCH)
 138 endif   # LP64
 139 


   1 #
   2 # Copyright (c) 2008, 2013, 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 #


  99 CFLAGS/amd64    += -m64
 100 else
 101 ARCH=$(ARCH1:amd64=i386)
 102 CFLAGS/i386     += -m32
 103 CFLAGS/sparc    += -m32
 104 endif # LP64
 105 CFLAGS          += $(CFLAGS/$(ARCH))
 106 CFLAGS          += -fPIC
 107 OS              = macosx
 108 LIB_EXT         = .dylib
 109 CC              = gcc
 110 CFLAGS          += -O
 111 # CFLAGS        += -DZ_PREFIX
 112 DLDFLAGS        += -shared
 113 DLDFLAGS        += -lz
 114 LDFLAGS         += -ldl
 115 OUTFLAGS        += -o $@
 116 else #Windows
 117 OS              = windows
 118 CC              = gcc

 119 CFLAGS          +=  /nologo /MD /W3 /WX /O2 /Fo$(@:.dll=.obj) /Gi-
 120 CFLAGS          += LIBARCH=\"$(LIBARCH)\"
 121 DLDFLAGS        += /dll /subsystem:windows /incremental:no \
 122                         /export:decode_instruction
 123 OUTFLAGS        += /link /out:$@
 124 LIB_EXT         = .dll
 125 endif   # Darwin
 126 endif   # Linux
 127 endif   # SunOS
 128 
 129 LIBARCH         = $(ARCH)
 130 ifdef           LP64
 131 LIBARCH64/sparc = sparcv9
 132 LIBARCH64/i386  = amd64
 133 LIBARCH64       = $(LIBARCH64/$(ARCH))
 134 ifneq           ($(LIBARCH64),)
 135 LIBARCH         = $(LIBARCH64)
 136 endif   # LIBARCH64/$(ARCH)
 137 endif   # LP64
 138 


src/share/tools/hsdis/Makefile
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File