4 # Makefile rules to build native libraries.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # Author: Nicola Pero <n.pero@mi.flashnet.it>
10 # This file is part of the GNUstep Makefile Package.
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 2
15 # of the License, or (at your option) any later version.
17 # You should have received a copy of the GNU General Public
18 # License along with this library; see the file COPYING.LIB.
19 # If not, write to the Free Software Foundation,
20 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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.
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.
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.
36 ifeq ($(FOUNDATION_LIB), apple)
38 FRAMEWORK_NAME = $(NATIVE_LIBRARY_NAME)
39 include $(GNUSTEP_MAKEFILES)/framework.make
43 LIBRARY_NAME = $(NATIVE_LIBRARY_NAME)
44 include $(GNUSTEP_MAKEFILES)/library.make