Bug in make(1)?

Pawel Jakub Dawidek nick at garage.freebsd.pl
Thu Apr 3 13:21:25 PST 2003


Hello hackers...

Could someone please explain such make(1) behaviour:

	% pwd
	% /home/nick/src/testdir
	% find .
	.
	./test
	./test/tst.c
	./Makefile
	% cat Makefile
	PROG	= tst
	SRCS	= test/tst.c

	.include <bsd.prog.mk>
	% make
	Warning: Object directory not changed from original /usr/home/nick/src/testdir
	cc -O -pipe     -c test/tst.c
	cc -O -pipe      -o tst test/tst.o
	cc: test/tst.o: No such file or directory
	cc: No input files specified
	*** Error code 1

	Stop in /usr/home/nick/src/testdir.
	% ls test/tst.o
	ls: test/tst.o: No such file or directory
	% ls tst.o
	tst.o

IMHO make(1) should put .o files in current directory _and_ look for them
there when producing an executable file. Right?

-- 
Pawel Jakub Dawidek                       pawel at dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030403/8966b7b0/attachment.bin


More information about the freebsd-hackers mailing list