help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Makefile not correctly rebuilding project


From: Oleksandr Gavenko
Subject: Re: Makefile not correctly rebuilding project
Date: Tue, 08 Jun 2010 11:56:39 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 2010.06.07 17:48, Alex Buell wrote:
Hmm. I just did this:

$ gcc -M -ggdb3 assembler/vasm.c
vasm.o: assembler/vasm.c /usr/include/stdio.h /usr/include/features.h \
  /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
  /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
  /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/stddef.h \
  /usr/include/bits/types.h /usr/include/bits/typesizes.h \
  /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
  /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/stdarg.h \
  /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
  /usr/include/string.h /usr/include/xlocale.h /usr/include/getopt.h \
  assembler/vasm.h

Seems it doesn't prefix the vasm.o with the directory name, which might
be why the sed regexp broke. Any ideas or workarounds for this one?

Look for -MM -MT option for gcc - it does you wont!

build/my.d: src/my.c
  gcc -MM -MT $@ -o $@ $<

--
С уважением, Александр Гавенко.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]