< prev index next >

make/lib/NioLibraries.gmk

Print this page




  57       WindowsNativeDispatcher.c \
  58       WindowsSelectorImpl.c
  59 endif
  60 
  61 ifeq ($(OPENJDK_TARGET_OS), linux)
  62   BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  63   BUILD_LIBNIO_FILES += \
  64       EPoll.c \
  65       EPollArrayWrapper.c \
  66       EPollPort.c \
  67       InheritedChannel.c \
  68       NativeThread.c \
  69       PollArrayWrapper.c \
  70       UnixAsynchronousServerSocketChannelImpl.c \
  71       UnixAsynchronousSocketChannelImpl.c \
  72       GnomeFileTypeDetector.c \
  73       MagicFileTypeDetector.c \
  74       LinuxNativeDispatcher.c \
  75       LinuxWatchService.c \
  76       UnixCopyFile.c \
  77       UnixNativeDispatcher.c

  78 endif
  79 
  80 ifeq ($(OPENJDK_TARGET_OS), macosx)
  81   BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  82   BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch
  83   BUILD_LIBNIO_FILES += \
  84       InheritedChannel.c \
  85       NativeThread.c \
  86       PollArrayWrapper.c \
  87       UnixAsynchronousServerSocketChannelImpl.c \
  88       UnixAsynchronousSocketChannelImpl.c \
  89       BsdNativeDispatcher.c \
  90       MacOSXNativeDispatcher.c \
  91       UnixCopyFile.c \
  92       UnixNativeDispatcher.c \
  93       KQueue.c \
  94       KQueuePort.c \
  95       KQueueArrayWrapper.c
  96 endif
  97 


 155     RC_FLAGS := $(RC_FLAGS) \
 156         -D "JDK_FNAME=nio.dll" \
 157         -D "JDK_INTERNAL_NAME=nio" \
 158         -D "JDK_FTYPE=0x2L", \
 159     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libnio, \
 160     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 161 
 162 BUILD_LIBRARIES += $(BUILD_LIBNIO)
 163 
 164 $(BUILD_LIBNIO): $(BUILD_LIBNET)
 165 
 166 ##########################################################################################
 167 
 168 ifeq ($(OPENJDK_TARGET_OS_API), posix)
 169 
 170   ifeq (, $(filter $(OPENJDK_TARGET_OS), macosx aix))
 171 
 172     # Suppress unused parameters required by exported JNI functions.
 173     SCTP_WERROR := -Werror -Wno-error=unused-parameter
 174     ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)



 175       SCTP_WERROR :=
 176     endif
 177 
 178     $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP, \
 179         LIBRARY := sctp, \
 180         OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 181         SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp, \
 182         LANG := C, \
 183         OPTIMIZATION := LOW, \
 184         CFLAGS := $(CFLAGS_JDKLIB) \
 185             -I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \
 186             -I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \
 187             -I$(JDK_TOPDIR)/src/share/native/java/net \
 188             -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \
 189             -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net, \
 190         CFLAGS_linux := $(SCTP_WERROR), \
 191         MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsctp/mapfile-vers, \
 192         LDFLAGS := $(LDFLAGS_JDKLIB) \
 193             $(call SET_SHARED_LIBRARY_ORIGIN), \
 194         LDFLAGS_SUFFIX_linux := -lpthread $(LIBDL) -ljava -ljvm, \


  57       WindowsNativeDispatcher.c \
  58       WindowsSelectorImpl.c
  59 endif
  60 
  61 ifeq ($(OPENJDK_TARGET_OS), linux)
  62   BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  63   BUILD_LIBNIO_FILES += \
  64       EPoll.c \
  65       EPollArrayWrapper.c \
  66       EPollPort.c \
  67       InheritedChannel.c \
  68       NativeThread.c \
  69       PollArrayWrapper.c \
  70       UnixAsynchronousServerSocketChannelImpl.c \
  71       UnixAsynchronousSocketChannelImpl.c \
  72       GnomeFileTypeDetector.c \
  73       MagicFileTypeDetector.c \
  74       LinuxNativeDispatcher.c \
  75       LinuxWatchService.c \
  76       UnixCopyFile.c \
  77       UnixNativeDispatcher.c \
  78       UnixConstants.c
  79 endif
  80 
  81 ifeq ($(OPENJDK_TARGET_OS), macosx)
  82   BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  83   BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch
  84   BUILD_LIBNIO_FILES += \
  85       InheritedChannel.c \
  86       NativeThread.c \
  87       PollArrayWrapper.c \
  88       UnixAsynchronousServerSocketChannelImpl.c \
  89       UnixAsynchronousSocketChannelImpl.c \
  90       BsdNativeDispatcher.c \
  91       MacOSXNativeDispatcher.c \
  92       UnixCopyFile.c \
  93       UnixNativeDispatcher.c \
  94       KQueue.c \
  95       KQueuePort.c \
  96       KQueueArrayWrapper.c
  97 endif
  98 


 156     RC_FLAGS := $(RC_FLAGS) \
 157         -D "JDK_FNAME=nio.dll" \
 158         -D "JDK_INTERNAL_NAME=nio" \
 159         -D "JDK_FTYPE=0x2L", \
 160     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libnio, \
 161     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 162 
 163 BUILD_LIBRARIES += $(BUILD_LIBNIO)
 164 
 165 $(BUILD_LIBNIO): $(BUILD_LIBNET)
 166 
 167 ##########################################################################################
 168 
 169 ifeq ($(OPENJDK_TARGET_OS_API), posix)
 170 
 171   ifeq (, $(filter $(OPENJDK_TARGET_OS), macosx aix))
 172 
 173     # Suppress unused parameters required by exported JNI functions.
 174     SCTP_WERROR := -Werror -Wno-error=unused-parameter
 175     ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
 176       SCTP_WERROR :=
 177     endif
 178     ifeq ($(OPENJDK_TARGET_CPU_ARCH), aarch32)
 179       SCTP_WERROR :=
 180     endif
 181 
 182     $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP, \
 183         LIBRARY := sctp, \
 184         OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 185         SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp, \
 186         LANG := C, \
 187         OPTIMIZATION := LOW, \
 188         CFLAGS := $(CFLAGS_JDKLIB) \
 189             -I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \
 190             -I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \
 191             -I$(JDK_TOPDIR)/src/share/native/java/net \
 192             -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \
 193             -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net, \
 194         CFLAGS_linux := $(SCTP_WERROR), \
 195         MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsctp/mapfile-vers, \
 196         LDFLAGS := $(LDFLAGS_JDKLIB) \
 197             $(call SET_SHARED_LIBRARY_ORIGIN), \
 198         LDFLAGS_SUFFIX_linux := -lpthread $(LIBDL) -ljava -ljvm, \
< prev index next >