1#
2#   base.make
3#
4#   Makefile flags and configs to build with the base library.
5#
6#   Copyright (C) 2001 Free Software Foundation, Inc.
7#
8#   Author:  Nicola Pero <n.pero@mi.flashnet.it>
9#   Based on code originally in the gnustep make package
10#
11#   This file is part of the GNUstep Base Library.
12#
13#   This library is free software; you can redistribute it and/or
14#   modify it under the terms of the GNU General Public License
15#   as published by the Free Software Foundation; either
16#   version 2 of the License, or (at your option) any later version.
17#
18#   You should have received a copy of the GNU General Public
19#   License along with this library; see the file COPYING.LIB.
20#   If not, write to the Free Software Foundation,
21#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
23ifeq ($(BASE_MAKE_LOADED),)
24  BASE_MAKE_LOADED=yes
25
26  ifeq ($(FOUNDATION_LIB),gnu)
27    #
28    # FIXME - macro names
29    #
30    AUXILIARY_OBJCFLAGS += @NX_CONST_STRING_OBJCFLAGS@
31
32    ifeq ($(shared),no)
33      CONFIG_SYSTEM_LIBS += @LIBS@
34      CONFIG_SYSTEM_LIB_DIR += @LDIR_FLAGS@
35      CONFIG_SYSTEM_INCL += @CPPFLAGS@
36    endif
37
38    GNUSTEP_BASE_VERSION = @VERSION@
39    GNUSTEP_BASE_MAJOR_VERSION = @MAJOR_VERSION@
40    GNUSTEP_BASE_MINOR_VERSION = @MINOR_VERSION@
41    GNUSTEP_BASE_SUBMINOR_VERSION = @SUBMINOR_VERSION@
42
43    FND_LDFLAGS =
44    FND_LIBS = -lgnustep-base
45    FND_DEFINE = -DGNUSTEP_BASE_LIBRARY=1
46    GNUSTEP_DEFINE = -DGNUSTEP
47  else
48    #
49    # Not using the GNUstep foundation ... must be Apple's
50    # So we need to use the base additions library.
51    #
52    FND_LIBS = -lgnustep-baseadd -framework Foundation
53  endif
54
55  # Is the ObjC2 runtime real or emulated?
56  # If it's not real, we need to use the emulation ObjectiveC2 headers.
57  OBJC2RUNTIME=@OBJC2RUNTIME@
58  ifeq ($(OBJC2RUNTIME),0)
59    AUXILIARY_OBJCFLAGS += -I$(GNUSTEP_HEADERS)/ObjectiveC2
60    AUXILIARY_CFLAGS += -I$(GNUSTEP_HEADERS)/ObjectiveC2
61  endif
62
63  # Now we have definitions to show whether important dependencies have
64  # been met ... if thse are 0 then some core functi0nailyt is missing.
65
66  # Has GNUTLS been found (for TLS/SSL support throughout)?
67  GNUSTEP_BASE_HAVE_GNUTLS=@HAVE_GNUTLS@
68
69  # Has libxml2 been found (for NSXMLNode and related classes)?
70  GNUSTEP_BASE_HAVE_LIBXML=@HAVE_LIBXML@
71
72  # Has ICU been found (for NSCalendar, NSLocale, and other locale related)?
73  GNUSTEP_BASE_HAVE_ICU=@HAVE_ICU@
74
75
76  # The next two are a special case ... we should have either one defined
77  # for netservices.  FIXME ... shouldn't these be combined?
78
79  # Has MDNS been found (one of two options for NSNetServices)?
80  GNUSTEP_BASE_HAVE_MDNS=@HAVE_MDNS@
81
82  # Has Avahi been found (one of two options for NSNetServices)?
83  GNUSTEP_BASE_HAVE_AVAHI=@HAVE_AVAHI@
84
85  # If we determined that the Objective-C runtime does not support
86  # native Objective-C exceptions, turn them off.  This overrides
87  # the USE_OBJC_EXCEPTIONS setting in gnustep-make's config.make.
88  ifeq (@BASE_NATIVE_OBJC_EXCEPTIONS@, 0)
89    USE_OBJC_EXCEPTIONS = no
90  endif
91
92endif # BASE_MAKE_LOADED
93