4 # Makefile to include to compile JNI code.
6 # Copyright (C) 2000 Free Software Foundation, Inc.
8 # Author: Nicola Pero <nicola@brainstorm.co.uk>
10 # This file is part of the GNUstep Makefile Package.
12 # This library is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
17 # You should have received a copy of the GNU General Public
18 # License along with this library; see the file COPYING.LIB.
19 # If not, write to the Free Software Foundation,
20 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 # Include this file if you need to compile JNI code.
24 # This files simply adds automatically the compiler flags to find the
28 # prevent multiple inclusions
29 ifeq ($(JNI_MAKE_LOADED),)
36 ifeq ($(findstring darwin, $(GNUSTEP_TARGET_OS)), darwin)
38 # JNI_INCLUDE_HEADERS = -I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers
39 JNI_INCLUDE_HEADERS = -I/System/Library/Frameworks/JavaVM.framework/Headers
44 ifeq ($(findstring solaris, $(GNUSTEP_TARGET_OS)), solaris)
49 ifeq ($(findstring mingw32, $(GNUSTEP_TARGET_OS)), mingw32)
53 # Add more platforms here
56 # This should be where your jni.h and jni_md.h are located.
58 JNI_INCLUDE_HEADERS = -I$(JAVA_HOME)/include/ \
59 -I$(JAVA_HOME)/include/$(JAVA_OS)
62 ADDITIONAL_INCLUDE_DIRS += $(JNI_INCLUDE_HEADERS)
64 endif # jni.make loaded