Subversion Repositories DevTools

Rev

Rev 263 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 263 Rev 303
Line 90... Line 90...
90
#		    - ';' seperated path list
90
#		    - ';' seperated path list
91
#		    - Uses \ as a dir sep
91
#		    - Uses \ as a dir sep
92
#		    - Uses real spaces in pathnames
92
#		    - Uses real spaces in pathnames
93
#..
93
#..
94
 
94
 
95
#
-
 
96
#   Work around for a bug in make 3.81 where abspath assumes that the input
-
 
97
#   is a relative path. The work around checks for paths that have a : or start
-
 
98
#   with a '/ - and assumes these are absolute.
-
 
99
#   It will only call makes 'abspath' for relative paths.
-
 
100
#
-
 
101
myabspath = $(foreach dir,$1,$(call myabs1path,$(dir)))
-
 
102
myabs1path = $(if $(or $(findstring :,$1),$(filter /%,$1)),$1,$(abspath $1))
-
 
103
 
-
 
104
vc_libs     := $(subst ;,$(space),$(subst \,/,$(subst $(space),$(spacealt),$(VC_LIB))))
95
vc_libs     := $(subst ;,$(space),$(subst \,/,$(subst $(space),$(spacealt),$(VC_LIB))))
105
ALL_LIBDIRS := $(wildcard $(call myabspath,$(LIBDIRS))) $(vc_libs)
96
ALL_LIBDIRS := $(wildcard $(call myabspath,$(LIBDIRS))) $(vc_libs)
106
LIB         := $(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(ALL_LIBDIRS)))))
97
LIB         := $(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(ALL_LIBDIRS)))))
107
export LIB
98
export LIB
108
 
99