## Copyright 2000-2005 The Apache Software Foundation or its licensors, as
## applicable.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
##     http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
# for linux ;-)
gcc -c -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux Native.c
gcc -shared -o Native.so Native.o

## Copyright 2000-2005 The Apache Software Foundation or its licensors, as
## applicable.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
##     http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
# for linux ;-) and Mac OS X
case `uname -s`
  Darwin)
    JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
    INCLUDE=Headers
    OS=
    FLAGS=-dynamiclib
    ;;
  Linux)
    OS=linux
    INCLUDE=include
    FLAGS=-shared
    ;;
esac

gcc -c -I${JAVA_HOME}/${INCLUDE} -I${JAVA_HOME}/${INCLUDE}/${OS} Native.c
gcc ${FLAGS} -o Native.so Native.o

Add support of the MAC OS X. (Darwin).
Add support of the MAC OS X. (Darwin).


git-svn-id: d2ff9ed2f92be9d06337bb70c57551c02d1e392c@397475 13f79535-47bb-0310-9956-ffa450edef68
