support building from a directory with spaces in its name

This commit is contained in:
Frank Jacobs 2008-10-11 10:10:11 -06:00 committed by Joel Dice
parent a6f1b92b63
commit 471ac4d960

View File

@ -93,8 +93,8 @@ ifeq ($(platform),darwin)
endif
ifeq ($(platform),windows)
inc = $(root)/win32/include
lib = $(root)/win32/lib
inc = "$(root)/win32/include"
lib = "$(root)/win32/lib"
system = windows
object-format = pe-i386
@ -333,7 +333,7 @@ $(boot-object): $(boot-source)
$(build)/classpath.jar: $(classpath-dep)
(wd=$$(pwd); \
cd $(classpath-build); \
$(jar) c0f $${wd}/$(@) $$(find . -name '*.class'))
$(jar) c0f "$${wd}/$(@)" $$(find . -name '*.class'))
$(binaryToMacho): $(src)/binaryToMacho.cpp
$(cxx) $(^) -o $(@)
@ -347,7 +347,7 @@ else
(wd=$$(pwd); \
cd $(build); \
$(objcopy) -I binary classpath.jar \
-O $(object-format) -B $(object-arch) $${wd}/$(@))
-O $(object-format) -B $(object-arch) "$${wd}/$(@)")
endif
$(generator-objects): $(native-build)/%.o: $(src)/%.cpp