1 #
2 # Copyright (c) 2000, 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. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
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
367 #
368 # Various variables
369 #
370
371 JAVALIB = # Don't self-link
372
373 #
374 # Access to io_util.c and net_util.c
375 #
376
377 OTHER_INCLUDES += \
378 -I$(SHARE_SRC)/native/sun/nio/ch \
379 -I$(SHARE_SRC)/native/java/io \
380 -I$(SHARE_SRC)/native/java/net \
381 -I$(PLATFORM_SRC)/native/java/net \
382 -I$(CLASSHDRDIR)/../../../java.lang/java/CClassHeaders
383
384 ifeq ($(PLATFORM),windows)
385 OTHER_LDLIBS += $(JVMLIB) ws2_32.lib \
386 -libpath:$(LIBDIR) java.lib \
387 $(OBJDIR)/../../../../sun/java.net/net/$(OBJDIRNAME)/net.lib \
388 $(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/io_util.obj \
389 $(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/FileDescriptor_md.obj
390 endif
391 ifeq ($(PLATFORM), linux)
392 OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread $(LIBDL)
393 endif
394 ifeq ($(PLATFORM), macosx)
395 OTHER_LDLIBS += -L$(LIBDIR) -ljava -lnet -pthread -framework CoreFoundation
396 endif
397 ifeq ($(PLATFORM), solaris)
398 OTHER_LDLIBS += $(JVMLIB) $(LIBSOCKET) -lposix4 $(LIBDL) -lsendfile \
399 -L$(LIBDIR)/$(LIBARCH) -ljava -lnet
400 endif # PLATFORM
401
402 #
403 # Rules
404 #
405
406 build: sources
407
408 clean clobber::
409 $(RM) -r $(NIO_GEN) $(SNIO_GEN)
|
1 #
2 # Copyright (c) 2000, 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. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
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
367 #
368 # Various variables
369 #
370
371 JAVALIB = # Don't self-link
372
373 #
374 # Access to io_util.c and net_util.c
375 #
376
377 OTHER_INCLUDES += \
378 -I$(SHARE_SRC)/native/sun/nio/ch \
379 -I$(SHARE_SRC)/native/java/io \
380 -I$(SHARE_SRC)/native/java/net \
381 -I$(PLATFORM_SRC)/native/java/net \
382 -I$(CLASSHDRDIR)/../../../java.lang/java/CClassHeaders
383
384 ifeq ($(PLATFORM),windows)
385 OTHER_LDLIBS += $(JVMLIB) ws2_32.lib \
386 -libpath:$(LIBDIR) java.lib \
387 $(OBJDIR)/../../../../sun/java.net/net/$(OBJDIRNAME)/net.lib
388 endif
389 ifeq ($(PLATFORM), linux)
390 OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread $(LIBDL)
391 endif
392 ifeq ($(PLATFORM), macosx)
393 OTHER_LDLIBS += -L$(LIBDIR) -ljava -lnet -pthread -framework CoreFoundation
394 endif
395 ifeq ($(PLATFORM), solaris)
396 OTHER_LDLIBS += $(JVMLIB) $(LIBSOCKET) -lposix4 $(LIBDL) -lsendfile \
397 -L$(LIBDIR)/$(LIBARCH) -ljava -lnet
398 endif # PLATFORM
399
400 #
401 # Rules
402 #
403
404 build: sources
405
406 clean clobber::
407 $(RM) -r $(NIO_GEN) $(SNIO_GEN)
|