http://mail.yahoo.com Index: rules.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/rules.make,v
retrieving revision 1.165
diff -u -r1.165 rules.make
--- rules.make 1 Mar 2005 04:54:47 -0000 1.165
+++ rules.make 23 Apr 2005 07:03:02 -0000
@@ -173,6 +173,38 @@
endif
#
+# Implement ADDITIONAL_NATIVE_INCLUDE_DIRS
+#
+# A native include dir maps to -F<dir> on apple and -I<dir>/..
everywhere else.
+# this is useful for including headers from native-libraries in the
same project
+# where the native-library hasn't been installed. In order for this
to be of use
+# the headers have to be in the same directory where the framework
would be upon
+# creation, and that directory must have the same name as the
framework
+# without the ".framework".
+#
+
+ifeq ($(FOUNDATION_LIB), apple)
+ ADDITIONAL_INCLUDE_DIRS += $(foreach
incdir,$(ADDITIONAL_NATIVE_INCLUDE_DIRS),-F$(incdir))
+else
+ ADDITIONAL_INCLUDE_DIRS += $(foreach
incdir,$(ADDITIONAL_NATIVE_INCLUDE_DIRS),-I$(incdir)/..)
+endif
+
+#
+# Implement ADDITIONAL_NATIVE_LIB_DIRS
+#
+# A native lib dir maps to -F<libdir> on apple, and
+# -L<libdir>/$(GNUSTEP_OBJ_DIR) everywhere else.
+# this is useful for linking to native-libraries in the same project
where
+# the native-library hasn't been installed.
+#
+#
+ifeq ($(FOUNDATION_LIB), apple)
+ ADDITIONAL_LIB_DIRS += $(foreach
libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-F$(libdir))
+else
+ ADDITIONAL_LIB_DIRS += $(foreach
libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-L$(libdir)/$(GNUSTEP_OBJ_DIR))
+endif
+
+#
# Auto dependencies
#
# -MMD -MP tells gcc to generate a .d file for each compiled file,