1#
2#   native-library.make
3#
4#   Makefile rules to build native libraries.
5#
6#   Copyright (C) 2003 Free Software Foundation, Inc.
7#
8#   Author:  Nicola Pero <n.pero@mi.flashnet.it>
9#
10#   This file is part of the GNUstep Makefile Package.
11#
12#   This library is free software; you can redistribute it and/or
13#   modify it under the terms of the GNU General Public License
14#   as published by the Free Software Foundation; either version 3
15#   of the License, or (at your option) any later version.
16#
17#   You should have received a copy of the GNU General Public
18#   License along with this library; see the file COPYING.
19#   If not, write to the Free Software Foundation,
20#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22# A "native library" is a project which is to be built as a shared
23# library on unix/windows, and as a framework on apple.  In other
24# words, it is to be built as the most appropriate native equivalent
25# of a traditional unix shared library.
26
27# NATIVE_LIBRARY_NAME should be the name of the native library,
28# without the 'lib'.  All the other variables are the same as
29# the ones used in libraries and frameworks.
30
31# To compile something against a native library, you can use
32#   ADDITIONAL_NATIVE_LIBS += MyLibrary
33# This will be converted into -lMyLibrary link flag on unix/windows, and
34# into -framework MyLibrary link flag on apple.
35
36ifeq ($(FOUNDATION_LIB), apple)
37
38  FRAMEWORK_NAME = $(NATIVE_LIBRARY_NAME)
39  include $(GNUSTEP_MAKEFILES)/framework.make
40
41else
42
43  LIBRARY_NAME = $(NATIVE_LIBRARY_NAME)
44  include $(GNUSTEP_MAKEFILES)/library.make
45
46endif
47