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
|
|
|
|
# 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,
|
2005-05-26 02:52:46 +00:00
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
1998-11-18 09:41:47 +00:00
|
|
|
# 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)
|
|
|
|
|
1997-09-23 22:43:24 +00:00
|
|
|
# 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_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)\"
|
|
|
|
|
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.
|
|
|
|
|
2001-07-09 02:49:03 +00:00
|
|
|
LIBRARIES_DEPEND_UPON = -l$(FOUNDATION_LIBRARY_NAME) $(ADDITIONAL_DEPENDS)
|
2001-07-30 21:30:51 +00:00
|
|
|
|
|
|
|
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
|
|
|
|
libgnustep-gui_LIBRARIES_DEPEND_UPON += -lobjc
|
|
|
|
endif
|
|
|
|
ifeq ($(GNUSTEP_TARGET_OS),cygwin)
|
|
|
|
libgnustep-gui_LIBRARIES_DEPEND_UPON += -lobjc
|
|
|
|
endif
|
|
|
|
|