mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
New file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@17929 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
25cf288447
commit
0eb0c0a1fa
1 changed files with 46 additions and 0 deletions
46
native-library.make
Normal file
46
native-library.make
Normal file
|
@ -0,0 +1,46 @@
|
|||
#
|
||||
# native-library.make
|
||||
#
|
||||
# Makefile rules to build native libraries.
|
||||
#
|
||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||
#
|
||||
# This file is part of the GNUstep Makefile Package.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# A "native library" is a project which is to be built as a shared
|
||||
# library on unix/windows, and as a framework on apple. In other
|
||||
# words, it is to be built as the most appropriate native equivalent
|
||||
# of a traditional unix shared library.
|
||||
|
||||
# NATIVE_LIBRARY_NAME should be the name of the native library,
|
||||
# without the 'lib'. All the other variables are the same as
|
||||
# the ones used in libraries and frameworks.
|
||||
|
||||
# To compile something against a native library, you can use
|
||||
# ADDITIONAL_NATIVE_LIBS += MyLibrary
|
||||
# This will be converted into -lMyLibrary link flag on unix/windows, and
|
||||
# into -framework MyLibrary compile/link flag on apple.
|
||||
|
||||
ifeq ($(FOUNDATION_LIB), apple)
|
||||
|
||||
FRAMEWORK_NAME = $(NATIVE_LIBRARY_NAME)
|
||||
include $(GNUSTEP_MAKEFILES)/framework.make
|
||||
|
||||
else
|
||||
|
||||
LIBRARY_NAME = $(NATIVE_LIBRARY_NAME)
|
||||
include $(GNUSTEP_MAKEFILES)/library.make
|
||||
|
||||
endif
|
Loading…
Reference in a new issue