1997-12-04 01:58:57 +00:00
|
|
|
# GNUmakefile
|
|
|
|
#
|
|
|
|
# Copyright (C) 1996 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Ovidiu Predescu <ovidiu@net-community.com>
|
|
|
|
# Date: November 1997
|
|
|
|
#
|
|
|
|
# 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-12-04 01:58:57 +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.
|
2007-10-29 21:16:17 +00:00
|
|
|
#
|
1997-12-04 01:58:57 +00:00
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 21:16:17 +00:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
1997-12-04 01:58:57 +00:00
|
|
|
#
|
2007-10-29 21:16:17 +00:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; see the file COPYING.LIB.
|
|
|
|
# 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-12-04 01:58:57 +00:00
|
|
|
|
2008-12-19 13:00:47 +00:00
|
|
|
PACKAGE_NAME = gnustep-gui
|
2001-01-29 19:49:03 +00:00
|
|
|
GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES=../gui.make
|
1998-02-06 19:12:03 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
1997-12-04 01:58:57 +00:00
|
|
|
|
1998-12-17 16:16:03 +00:00
|
|
|
include ../Version
|
2002-12-30 17:33:23 +00:00
|
|
|
ifneq ($(GUI_LIB), gnu)
|
|
|
|
LIBRARY_NAME = libgmodel
|
2001-07-31 16:57:26 +00:00
|
|
|
else
|
2002-12-30 17:33:23 +00:00
|
|
|
BUNDLE_NAME = libgmodel
|
2001-07-31 16:57:26 +00:00
|
|
|
endif
|
1997-12-04 01:58:57 +00:00
|
|
|
|
2001-07-09 03:24:07 +00:00
|
|
|
ifeq ($(BUILD_NIB2GMODEL), yes)
|
2002-12-30 17:33:23 +00:00
|
|
|
TOOL_NAME = nib2gmodel
|
|
|
|
ADDITIONAL_TOOL_LIBS += -lgmodel
|
1997-12-04 01:58:57 +00:00
|
|
|
endif
|
|
|
|
|
1998-11-19 21:54:12 +00:00
|
|
|
#APP_NAME = test
|
1997-12-04 01:58:57 +00:00
|
|
|
|
1999-01-28 18:34:31 +00:00
|
|
|
libgmodel_OBJC_FILES = IMCustomObject.m IMConnectors.m IMLoading.m GMAppKit.m \
|
|
|
|
GMArchiver.m
|
2003-07-31 23:52:10 +00:00
|
|
|
libgmodel_HEADER_FILES_DIR = ../Headers/Additions/GNUstepGUI
|
|
|
|
libgmodel_HEADER_FILES_INSTALL_DIR = /GNUstepGUI
|
1999-02-02 00:08:58 +00:00
|
|
|
libgmodel_HEADER_FILES = IMConnectors.h IMCustomObject.h IMLoading.h \
|
|
|
|
GMAppKit.h GMArchiver.h
|
1997-12-04 01:58:57 +00:00
|
|
|
|
|
|
|
test_OBJC_FILES = test.m Controller.m
|
2001-07-31 16:57:26 +00:00
|
|
|
#test_MAIN_MODEL_FILE = test.gmodel
|
1998-11-06 04:01:33 +00:00
|
|
|
test_RESOURCE_FILES = test.gmodel
|
1997-12-04 01:58:57 +00:00
|
|
|
|
|
|
|
nib2gmodel_OBJC_FILES = IBClasses.m Translator.m nib2gmodel.m
|
|
|
|
|
|
|
|
# Additional library directories the linker should search
|
2002-12-30 17:33:23 +00:00
|
|
|
ifneq ($(GUI_LIB), gnu)
|
|
|
|
ADDITIONAL_LIB_DIRS += -framework AppKit
|
1997-12-04 01:58:57 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Additional flags to pass to the Objective-C compiler
|
|
|
|
ADDITIONAL_OBJCFLAGS = -Wall
|
|
|
|
ADDITIONAL_CPPFLAGS += $(RUNTIME_DEFINE) $(GUI_DEFINE) $(BACKEND_DEFINE)
|
|
|
|
|
1999-03-14 18:28:31 +00:00
|
|
|
ADDITIONAL_LIB_DIRS += -L$(GNUSTEP_OBJ_DIR)
|
2002-12-30 17:33:23 +00:00
|
|
|
ifeq ($(GUI_LIB), gnu)
|
|
|
|
ADDITIONAL_LIB_DIRS += -L../Source/$(GNUSTEP_OBJ_DIR)
|
2020-03-12 09:55:25 +00:00
|
|
|
ADDITIONAL_INCLUDE_DIRS += -I../Headers/Additions -I../Headers
|
2003-08-18 20:43:23 +00:00
|
|
|
else
|
2020-03-12 09:55:25 +00:00
|
|
|
ADDITIONAL_INCLUDE_DIRS += -I../Headers/Additions
|
1999-03-14 18:28:31 +00:00
|
|
|
endif
|
1997-12-04 01:58:57 +00:00
|
|
|
|
|
|
|
ADDITIONAL_OBJC_FLAGS += $(BACKEND_DEFINE)
|
|
|
|
|
|
|
|
# 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.
|
2002-12-30 17:33:23 +00:00
|
|
|
ifeq ($(GUI_LIB), gnu)
|
|
|
|
libgmodel_LIBRARIES_DEPEND_UPON = -lgnustep-gui $(FND_LIBS) $(OBJC_LIBS)
|
1999-03-14 18:28:31 +00:00
|
|
|
else
|
2002-12-30 17:33:23 +00:00
|
|
|
libgmodel_LIBRARIES_DEPEND_UPON = $(FND_LIBS)
|
1999-03-14 18:28:31 +00:00
|
|
|
endif
|
2001-10-07 04:47:19 +00:00
|
|
|
libgmodel_BUNDLE_LIBS += $(libgmodel_LIBRARIES_DEPEND_UPON)
|
1999-03-02 08:58:30 +00:00
|
|
|
nib2gmodel_LIBRARIES_DEPEND_UPON = $(BACKEND_LIBS) $(GUI_LIBS) \
|
|
|
|
$(FND_LIBS) $(SYSTEM_LIBS)
|
1997-12-04 01:58:57 +00:00
|
|
|
|
2002-12-31 15:34:59 +00:00
|
|
|
ifeq ($(GUI_LIB), gnu)
|
2002-12-30 17:33:23 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/bundle.make
|
2010-02-11 18:21:07 +00:00
|
|
|
else
|
|
|
|
include $(GNUSTEP_MAKEFILES)/library.make
|
2002-12-11 04:11:59 +00:00
|
|
|
endif
|
1998-02-06 19:12:03 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/tool.make
|
|
|
|
include $(GNUSTEP_MAKEFILES)/application.make
|
1997-12-04 01:58:57 +00:00
|
|
|
|
2001-03-16 23:27:36 +00:00
|
|
|
include GNUmakefile.postamble
|