Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 09:13:46 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Bug in make(1)?
Message-ID:  <20030404071346.GN54604@garage.freebsd.pl>
In-Reply-To: <20030403215059.GA37698@athlon.pn.xcllnt.net>
References:  <20030403212300.GL54604@garage.freebsd.pl> <20030403215059.GA37698@athlon.pn.xcllnt.net>

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

--6tPipYVl+OcoAvSh
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 03, 2003 at 01:50:59PM -0800, Marcel Moolenaar wrote:
+> Because you told make(1) to by virtue of including bsd.prog.mk
+>=20
+> OBJS is derived from SRCS by replacing the extension. If SRCS
+> contains foo/bar.c, OBJS will contain foo/bar.o...

Yes, but take a look on compilation process. When file is compilated
'-o' isn't specified (gcc -c test/tst.c), but when executable file is
produced, gcc looks for tst.o in test directory (gcc -o tst test/tst.o).
And IMHO if gcc want to look for objects somewhere it should put them
there, so: gcc -o test/tst.o -c test/tst.c. Sometimes it is hard to
change.

--=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

--6tPipYVl+OcoAvSh
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iQCVAwUBPo0wqj/PhmMH/Mf1AQFgNgP/SC1bFO+K9aujgdHtt9pbzB5wCWfOs3XK
DDaL4IYDeiFq8jsn6ELO5R8Yqjp3FRcxIEKQlfMRvddqqszrUE8hbU88JhA1yD9y
/fgv147XGEpczB8Ax5pGKuiuJH1OYvM5vR+WuOS6iz/WiXGo/BwgRIjRQtvmdw7/
AVh7/3HVD60=
=6HQf
-----END PGP SIGNATURE-----

--6tPipYVl+OcoAvSh--



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