* rules.make: Implement ADDITIONAL_NATIVE_LIB_DIRS.

* Documentation/make.texi: Document ADDITIONAL_NATIVE_LIB_DIRS.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@25543 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2007-10-31 04:48:02 +00:00
parent 6ef7c3e512
commit 49278a5c55
3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-10-31 David Ayers <ayers@fsfe.org>
* rules.make: Implement ADDITIONAL_NATIVE_LIB_DIRS.
* Documentation/make.texi: Document ADDITIONAL_NATIVE_LIB_DIRS.
2007-10-30 Adam Fedor <fedor@gnu.org>
* Update licesnse to GPL 3

View file

@ -476,6 +476,11 @@ This will be converted into -lMyLibrary link flag on for most
targets and into -framework MyLibrary link flag for
apple-apple-apple.
To add the corresponding flags, you can use
@code{ADDITIONAL_NATIVE_LIB_DIRS += ../MyPath}
This will be converted into -L../MyPath/$(GNUSTEP_OBJ_DIR) flag
on for most targets and into -F../MyPath flag for apple-apple-apple.
@node objc.make, palette.make, native-library.make, Project Types
@subsection Objective-C Programs (@file{objc.make})
@menu

View file

@ -160,7 +160,7 @@ include $(GNUSTEP_MAKEFILES)/Instance/rules.make
endif
#
# Implement ADDITIONAL_NATIVE_LIBS
# Implement ADDITIONAL_NATIVE_LIBS/ADDITIONAL_NATIVE_LIB_DIRS
#
# A native lib is a framework on apple, and a shared library
# everywhere else. Here we provide the appropriate link flags
@ -168,8 +168,10 @@ endif
#
ifeq ($(FOUNDATION_LIB),apple)
ADDITIONAL_OBJC_LIBS += $(foreach lib,$(ADDITIONAL_NATIVE_LIBS),-framework $(lib))
ADDITIONAL_FRAMEWORK_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-F$(libdir))
else
ADDITIONAL_OBJC_LIBS += $(foreach lib,$(ADDITIONAL_NATIVE_LIBS),-l$(lib))
ADDITIONAL_LIB_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-L$(libdir)/$(GNUSTEP_OBJ_DIR))
endif
#