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.
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| exe_suffix.zip | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 347096: exe_suffix.zip | 2009-10-18 03:57 | giksos |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use