1997-09-23 22:43:24 +00:00
|
|
|
#
|
1997-10-28 20:44:38 +00:00
|
|
|
# GNUmakefile.preamble
|
1997-09-23 22:43:24 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
#
|
|
|
|
# This file is part of the GNUstep GUI Library.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
2007-10-29 21:16:17 +00:00
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
1997-09-23 22:43:24 +00:00
|
|
|
# License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
# version 2 of the License, or (at your option) any later version.
|
1997-09-23 22:43:24 +00:00
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2007-10-29 21:16:17 +00:00
|
|
|
# Lesser General Public License for more details.
|
1997-09-23 22:43:24 +00:00
|
|
|
#
|
2007-10-29 21:16:17 +00:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
1997-09-23 22:43:24 +00:00
|
|
|
# License along with this library; see the file COPYING.LIB.
|
2007-10-29 21:16:17 +00:00
|
|
|
# If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
# Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
# Boston, MA 02110-1301, USA.
|
1997-09-23 22:43:24 +00:00
|
|
|
|
|
|
|
#
|
1997-10-28 20:44:38 +00:00
|
|
|
# GNUmakefile.preamble
|
1997-09-23 22:43:24 +00:00
|
|
|
#
|
|
|
|
# Project specific makefile variables, and additional
|
|
|
|
#
|
1997-10-28 20:44:38 +00:00
|
|
|
# Do not put any GNUmakefile rules in this file, instead they should
|
|
|
|
# be put into GNUmakefile.postamble.
|
1997-09-23 22:43:24 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Flags dealing with compiling and linking
|
|
|
|
#
|
|
|
|
|
|
|
|
# Additional flags to pass to the preprocessor
|
2003-04-28 02:33:10 +00:00
|
|
|
ADDITIONAL_CPPFLAGS = \
|
1998-11-18 09:41:47 +00:00
|
|
|
-DGNUSTEP_TARGET_DIR=\"$(GNUSTEP_TARGET_DIR)\" \
|
|
|
|
-DGNUSTEP_TARGET_CPU=\"$(GNUSTEP_TARGET_CPU)\" \
|
|
|
|
-DGNUSTEP_TARGET_OS=\"$(GNUSTEP_TARGET_OS)\" \
|
2015-11-01 23:09:40 +00:00
|
|
|
-DLIBRARY_COMBO=\"$(LIBRARY_COMBO)\" \
|
|
|
|
-DGNUSTEP_BASE_HAVE_LIBXML=$(GNUSTEP_BASE_HAVE_LIBXML) \
|
1998-11-18 09:41:47 +00:00
|
|
|
|
2001-04-13 20:04:04 +00:00
|
|
|
ifneq ($(BACKEND_BUNDLE),)
|
|
|
|
ADDITIONAL_CPPFLAGS += -DBACKEND_BUNDLE=1
|
|
|
|
endif
|
|
|
|
|
1997-09-23 22:43:24 +00:00
|
|
|
# Additional flags to pass to the Objective-C compiler
|
1999-05-11 15:43:10 +00:00
|
|
|
ADDITIONAL_OBJCFLAGS = -Wall
|
1997-09-23 22:43:24 +00:00
|
|
|
|
|
|
|
# Additional flags to pass to the C compiler
|
2001-03-16 23:50:11 +00:00
|
|
|
# ADDITIONAL_CFLAGS =
|
1997-09-23 22:43:24 +00:00
|
|
|
|
|
|
|
# Additional include directories the compiler should search
|
2003-08-30 03:47:10 +00:00
|
|
|
ADDITIONAL_INCLUDE_DIRS += -I../Headers/Additions -I../Headers \
|
|
|
|
-I./$(GNUSTEP_TARGET_DIR)
|
1997-09-23 22:43:24 +00:00
|
|
|
|
|
|
|
# Additional LDFLAGS to pass to the linker
|
2001-03-16 23:50:11 +00:00
|
|
|
# ADDITIONAL_LDFLAGS =
|
1997-09-23 22:43:24 +00:00
|
|
|
|
|
|
|
# Additional library directories the linker should search
|
2001-03-16 23:50:11 +00:00
|
|
|
# ADDITIONAL_LIB_DIRS =
|
1997-09-23 22:43:24 +00:00
|
|
|
|
2004-10-01 14:55:54 +00:00
|
|
|
#
|
2005-01-13 16:04:51 +00:00
|
|
|
# Sparc systems cannot load tiff files due to some problem compiling
|
|
|
|
# this file with optimization. This includes Solaris [78] and sparc-*-linux-gnu
|
2004-10-01 14:55:54 +00:00
|
|
|
#
|
2005-01-13 16:04:51 +00:00
|
|
|
ifeq ($(findstring sparc, $(GNUSTEP_TARGET_CPU)), sparc)
|
2004-10-01 14:55:54 +00:00
|
|
|
NSBitmapImageRep+JPEG.m_FILE_FILTER_OUT_FLAGS = -O%
|
|
|
|
endif
|
|
|
|
|
1997-09-23 22:43:24 +00:00
|
|
|
#
|
|
|
|
# Flags dealing with installing and uninstalling
|
|
|
|
#
|
|
|
|
|
|
|
|
# Additional directories to be created during installation
|
2006-03-12 17:27:19 +00:00
|
|
|
ADDITIONAL_INSTALL_DIRS = $(GNUSTEP_HEADERS)/AppKit $(GNUSTEP_HEADERS)/Cocoa
|
1997-10-09 22:55:31 +00:00
|
|
|
|
|
|
|
# What are the libraries this library depends upon. This is needed for some
|
|
|
|
# systems where building a shared library requires to pass to the linker
|
|
|
|
# all the libraries the target library depends upon.
|
|
|
|
|
2008-08-21 09:08:45 +00:00
|
|
|
LIBRARIES_DEPEND_UPON = -l$(FOUNDATION_LIBRARY_NAME) $(ADDITIONAL_DEPENDS) \
|
|
|
|
$(OBJC_LIBS)
|