Make in Cygwin with spaces in file names
<p>I feel like this may be a simple one, I have been stuck on it all day though. I am using Cygwin, and WinAVR to compile some files in the arduino library. I want to use a makefile, but I am having problems with spaces in file names (at least i think that is it). I made a link to bypass that, but that is not working either! There are a few SO questions already about spaces in file names but none of them helped me.</p>

<p>My makefile:</p>

<pre><code>#ARDUINO_PATH=/cygdrive/c/Program\ Files\ \(x86\)/Arduino/hardware/arduino/avr/cores/arduino
ARDUINO_PATH=./link_to_arduino_dir
SRC=$(wildcard $(ARDUINO_PATH)/*.c)


all: echo $(SRC)

$(SRC):
    avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p -I $(ARDUINO_PATH) -c -o . $@

echo:
    echo $(SRC)
</code></pre>

<p>After the wildcard, $SRC is empty. running this makefile will just have an empty "echo" then return.</p>

<p><b>Edit:</b></p>

<p>The link was created with</p>

<p><code>ln -s /cygdrive/c/Program\ Files\ \(x86\)/Arduino/hardware/arduino/avr/cores/arduino link_to_arduino_dir</code></p>

<p>Simple commands like 'ls' work with it, which is why I am so confused</p>