Annotation of embedaddon/axTLS/config/makefile.java.conf, revision 1.1.1.1

1.1       misho       1: #
                      2: # Copyright (c) 2007, Cameron Rich
                      3: #
                      4: # All rights reserved.
                      5: #
                      6: # Redistribution and use in source and binary forms, with or without
                      7: # modification, are permitted provided that the following conditions are met:
                      8: #
                      9: # * Redistributions of source code must retain the above copyright notice,
                     10: #   this list of conditions and the following disclaimer.
                     11: # * Redistributions in binary form must reproduce the above copyright
                     12: #   notice, this list of conditions and the following disclaimer in the
                     13: #   documentation and/or other materials provided with the distribution.
                     14: # * Neither the name of the axTLS project nor the names of its
                     15: #   contributors may be used to endorse or promote products derived
                     16: #   from this software without specific prior written permission.
                     17: #
                     18: # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                     19: # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                     20: # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
                     21: # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
                     22: # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                     23: # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
                     24: # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     25: # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
                     26: # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
                     27: # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     28: # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     29: #
                     30: 
                     31: ifneq ($(MAKECMDGOALS), clean)
                     32: 
                     33: ifdef CONFIG_PLATFORM_CYGWIN 
                     34: CFLAGS += -I"$(CONFIG_JAVA_HOME)/include"
                     35: CFLAGS += -I"$(CONFIG_JAVA_HOME)/include/win32"
                     36: JAVA_BIN:=$(CONFIG_JAVA_HOME)/bin
                     37: else
                     38: 
                     39: ifdef CONFIG_PLATFORM_WIN32
                     40: CFLAGS += /I"$(shell cygpath -w $(CONFIG_JAVA_HOME)/include)"
                     41: CFLAGS += /I"$(shell cygpath -w $(CONFIG_JAVA_HOME)/include/win32)"
                     42: JAVA_BIN:=$(shell cygpath -u $(CONFIG_JAVA_HOME)/bin)
                     43: else # Linux
                     44: CFLAGS += -I$(CONFIG_JAVA_HOME)/include
                     45: 
                     46: ifdef CONFIG_PLATFORM_SOLARIS
                     47: CFLAGS += -I$(CONFIG_JAVA_HOME)/include/solaris
                     48: else
                     49: CFLAGS += -I$(CONFIG_JAVA_HOME)/include/linux
                     50: endif
                     51: 
                     52: JAVA_BIN:=$(CONFIG_JAVA_HOME)/bin
                     53: endif
                     54: endif
                     55: 
                     56: PATH:=$(JAVA_BIN):$(PATH)
                     57: 
                     58: endif   # not 'clean'                    

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>