mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-20 12:50:48 +00:00
so when we correctly detect mingw64 rather than mingw32 we actually broke building of Gorm on mingw64. Additionally, examination of the cases where we do differentiate between mingw32 and mingw64, in all but one of them we do the same thing for both. That being the case, it makes more sense to scrap the code to differentiate between the two systems (except in the one case in target.make where we need to be aware that the two systems prefix class names differently in the object files), and adopt the triplet used by the mingw-w64 project (where os is always mingw32 and we differentaiate 64bit windows using the vendor part of the triplet) rather than the one returned by autoconf (config.guess).
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
#
|
|
# 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
|
|
# as published by the Free Software Foundation; either version 3
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# You should have received a copy of the GNU General Public
|
|
# License along with this library; see the file COPYING.
|
|
# If not, write to the Free Software Foundation,
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
# 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
|
|
|
|
# MacOS-X
|
|
ifeq ($(findstring darwin, $(GNUSTEP_TARGET_OS)), darwin)
|
|
JAVA_OS = darwin
|
|
# JNI_INCLUDE_HEADERS = -I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers
|
|
JNI_INCLUDE_HEADERS = -I/System/Library/Frameworks/JavaVM.framework/Headers
|
|
|
|
else
|
|
|
|
# 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)
|
|
endif
|
|
|
|
ADDITIONAL_INCLUDE_DIRS += $(JNI_INCLUDE_HEADERS)
|
|
|
|
endif # jni.make loaded
|