2000-08-07 22:06:04 +00:00
|
|
|
#
|
|
|
|
# jni.make
|
|
|
|
#
|
|
|
|
# Makefile to include to compile JNI code.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2000 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Nicola Pero <nicola@brainstorm.co.uk>
|
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Makefile Package.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
2007-10-30 14:18:41 +00:00
|
|
|
# as published by the Free Software Foundation; either version 3
|
2000-08-07 22:06:04 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public
|
2007-07-13 10:11:48 +00:00
|
|
|
# License along with this library; see the file COPYING.
|
2000-08-07 22:06:04 +00:00
|
|
|
# If not, write to the Free Software Foundation,
|
2005-05-22 03:20:14 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2000-08-07 22:06:04 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Include this file if you need to compile JNI code.
|
|
|
|
# This files simply adds automatically the compiler flags to find the
|
|
|
|
# jni headers.
|
|
|
|
#
|
|
|
|
|
|
|
|
# prevent multiple inclusions
|
|
|
|
ifeq ($(JNI_MAKE_LOADED),)
|
|
|
|
JNI_MAKE_LOADED=yes
|
|
|
|
|
|
|
|
# Default
|
|
|
|
JAVA_OS = linux
|
|
|
|
|
2004-03-31 10:01:15 +00:00
|
|
|
# MacOS-X
|
|
|
|
ifeq ($(findstring darwin, $(GNUSTEP_TARGET_OS)), darwin)
|
|
|
|
JAVA_OS = darwin
|
2004-04-16 05:01:54 +00:00
|
|
|
# JNI_INCLUDE_HEADERS = -I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers
|
|
|
|
JNI_INCLUDE_HEADERS = -I/System/Library/Frameworks/JavaVM.framework/Headers
|
2004-03-31 10:01:15 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2000-08-07 22:06:04 +00:00
|
|
|
# Solaris
|
|
|
|
ifeq ($(findstring solaris, $(GNUSTEP_TARGET_OS)), solaris)
|
|
|
|
JAVA_OS = solaris
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Windows
|
|
|
|
ifeq ($(findstring mingw32, $(GNUSTEP_TARGET_OS)), mingw32)
|
|
|
|
JAVA_OS = win32
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Add more platforms here
|
|
|
|
|
|
|
|
#
|
|
|
|
# This should be where your jni.h and jni_md.h are located.
|
|
|
|
#
|
|
|
|
JNI_INCLUDE_HEADERS = -I$(JAVA_HOME)/include/ \
|
|
|
|
-I$(JAVA_HOME)/include/$(JAVA_OS)
|
2004-03-31 10:01:15 +00:00
|
|
|
endif
|
2000-08-07 22:06:04 +00:00
|
|
|
|
|
|
|
ADDITIONAL_INCLUDE_DIRS += $(JNI_INCLUDE_HEADERS)
|
|
|
|
|
|
|
|
endif # jni.make loaded
|