Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2003 23:23:00 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        freebsd-hackers@freebsd.org
Subject:   Bug in make(1)?
Message-ID:  <20030403212300.GL54604@garage.freebsd.pl>

next in thread | raw e-mail | index | archive | help

--hXth9cGL35Nvpk4x
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello hackers...

Could someone please explain such make(1) behaviour:

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

	.include <bsd.prog.mk>
	% make
	Warning: Object directory not changed from original /usr/home/nick/src/tes=
tdir
	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?

--=20
Pawel Jakub Dawidek                       pawel@dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net

--hXth9cGL35Nvpk4x
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iQCVAwUBPoymND/PhmMH/Mf1AQGE0QP/cSMGCf3Gpxh/n+wPj/Nmt2El6P9ER1TI
R6qRXFYNHPupqNmCdlm9XWYCyVNm7HE7a9OOV9efFnu9l6fEgXr02jmx39XZKDQ3
1KcFNvyR7+VX10Y8t5nxwWY3ouaflblp8vuneJJa5qkmXXTciVAASBECGn/x+uXq
S+M/Ab4A96c=
=Un/Z
-----END PGP SIGNATURE-----

--hXth9cGL35Nvpk4x--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030403212300.GL54604>