Mail Archives: djgpp/1997/09/17/11:02:34
The comment character is not being handled correctly when it appears in a
rule of a makefile.
consider the following
------Makefile starts --------------
all : foo
.c.o:
$(CC) -c $(CCOPT) $(INCDIR) $*.c -o $*.o
foo: foo.o
$(CC) $(LDOPT) -o $@ $^ # this comment breaks DJGPP make
------Makefile ends --------------
Where foo.c is the proverbial hello world example.
Using make 3.75 in a Linux box does not show this bug, however in DJGPP you get:
cd ~/
make
gcc -o foo foo.o # this comment breaks DJGPP
gcc.exe: #: No such file or directory (ENOENT)
gcc.exe: this: No such file or directory (ENOENT)
gcc.exe: comment: No such file or directory (ENOENT)
gcc.exe: breaks: No such file or directory (ENOENT)
gcc.exe: DJGPP: No such file or directory (ENOENT)
make.exe: *** [foo] Error 1
Compilation finished at Wed Sep 17 12:02:56
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br
DME/ASC Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996
Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -