libs-gui/Source/GNUmakefile.preamble
Adam Fedor 137396c189 * Source/GNUmakefile.preamble: Add filter out flags for
compilation of some files on Solaris.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20181 72102866-910b-0410-8b05-ffd578937521
2004-10-01 14:55:54 +00:00

100 lines
3.1 KiB
Text

#
# GNUmakefile.preamble
#
# 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
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# 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
# Library General Public License for more details.
#
# If you are interested in a warranty or support for this source code,
# contact Scott Christley at scottc@net-community.com
#
# You should have received a copy of the GNU Library General Public
# License along with this library; see the file COPYING.LIB.
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# GNUmakefile.preamble
#
# Project specific makefile variables, and additional
#
# Do not put any GNUmakefile rules in this file, instead they should
# be put into GNUmakefile.postamble.
#
#
# Flags dealing with compiling and linking
#
# GNUSTEP_INSTALL_PREFIX must be defined here and not in config.h because
# the installing person may set it on the `make' command line.
GNUSTEP_INSTALL_PREFIX=$(GNUSTEP_SYSTEM_ROOT)
# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = \
-DGNUSTEP_INSTALL_PREFIX=$(GNUSTEP_INSTALL_PREFIX) \
-DGNUSTEP_TARGET_DIR=\"$(GNUSTEP_TARGET_DIR)\" \
-DGNUSTEP_TARGET_CPU=\"$(GNUSTEP_TARGET_CPU)\" \
-DGNUSTEP_TARGET_OS=\"$(GNUSTEP_TARGET_OS)\" \
-DLIBRARY_COMBO=\"$(LIBRARY_COMBO)\"
ifneq ($(BACKEND_BUNDLE),)
ADDITIONAL_CPPFLAGS += -DBACKEND_BUNDLE=1
endif
# Additional flags to pass to the Objective-C compiler
ADDITIONAL_OBJCFLAGS = -Wall
# Additional flags to pass to the C compiler
# ADDITIONAL_CFLAGS =
# Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS += -I../Headers/Additions -I../Headers \
-I./$(GNUSTEP_TARGET_DIR)
# Additional LDFLAGS to pass to the linker
# ADDITIONAL_LDFLAGS =
# Additional library directories the linker should search
# ADDITIONAL_LIB_DIRS =
#
# Solaris [7,8] systems cannot load tiff files due to some problem compiling
# this file with optimization
#
ifeq ($(findstring solaris, $(GNUSTEP_TARGET_OS)), solaris)
NSBitmapImageRep+JPEG.m_FILE_FILTER_OUT_FLAGS = -O%
endif
#
# Flags dealing with installing and uninstalling
#
# Additional directories to be created during installation
ADDITIONAL_INSTALL_DIRS = $(GNUSTEP_HEADERS)/AppKit
# 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.
LIBRARIES_DEPEND_UPON = -l$(FOUNDATION_LIBRARY_NAME) $(ADDITIONAL_DEPENDS)
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
libgnustep-gui_LIBRARIES_DEPEND_UPON += -lobjc
endif
ifeq ($(GNUSTEP_TARGET_OS),cygwin)
libgnustep-gui_LIBRARIES_DEPEND_UPON += -lobjc
endif