Share

makepp

Tracker: Bugs

5 implicit rule omits dependency (vs gmake) - ID: 2881158
Last Update: Attachment added ( giksos )

sometimes I add a dependency to an executable that otherwise gets created
by an implicit rule, like

first: second.o

This works fine with gmake and mpp on linux, but on cygwin the dependency
doesn't get picked up:

makepp: Loading makefile `/c/docs/sandbox/make/makepp/exe_suffix/makefile'
makepp: Scanning `/c/docs/sandbox/make/makepp/exe_suffix/first.cpp'
makepp: Entering directory `/c/docs/sandbox/make/makepp/exe_suffix'
g++ -g -Wall -c first.cpp -o first.o
g++ first.o -o first.exe
first.o: In function `main':
/c/docs/sandbox/make/makepp/exe_suffix/first.cpp:6: undefined reference to
`f()'
collect2: ld returned 1 exit status
makepp: error: Failed to build target
`/c/docs/sandbox/make/makepp/exe_suffix/first.exe' [1]
makepp: 1 file updated, 0 phony targets built and 1 target failed
makepp: error: $(prebuild first.exe) failed
$(prebuild first.exe) failed

Gmake works fine however. I attach all the files necesary to reproduce.


giksos ( giksos ) - 2009-10-18 03:57

5

Open

None

Nobody/Anonymous

None

None

Public


Comments

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
exe_suffix.zip Download

Change ( 1 )

Field Old Value Date By
File Added 347096: exe_suffix.zip 2009-10-18 03:57 giksos