From owner-freebsd-libh Wed Dec 12 8:37:46 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts8-srv.bellnexxia.net (tomts8.bellnexxia.net [209.226.175.52]) by hub.freebsd.org (Postfix) with ESMTP id 705C437B419 for ; Wed, 12 Dec 2001 08:37:40 -0800 (PST) Received: from khan.anarcat.dyndns.org ([65.94.189.35]) by tomts8-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011212163739.RHUL23323.tomts8-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Wed, 12 Dec 2001 11:37:39 -0500 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 95B121A4C for ; Wed, 12 Dec 2001 11:37:37 -0500 (EST) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 625CD20ACB; Wed, 12 Dec 2001 11:39:34 -0500 (EST) Date: Wed, 12 Dec 2001 11:39:33 -0500 From: The Anarcat To: Libh Subject: Damn Make! (was: Re: MAKEOBJDIR) Message-ID: <20011212163933.GB65834@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ftEhullJWpWg/VHq" Content-Disposition: inline User-Agent: Mutt/1.3.24i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ftEhullJWpWg/VHq Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Arrgghhh!! I can't make this work at all. I tried to hack the libh/Makefile in the following way: Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/libh/cvs/libh/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 2001/09/20 21:21:55 1.5 +++ Makefile 2001/12/12 16:28:33 @@ -1,5 +1,37 @@ # $FreeBSD: libh/Makefile,v 1.5 2001/09/20 21:21:55 alex Exp $ =20 -SUBDIR=3D compile +SUBDIR=3D lib bin =20 -.include +SETENV?=3D /usr/bin/env +MAKEENV=3D MAKEOBJDIR=3D${.CURDIR}/compile/${UITYPE} + +# fullbuild target makes the 4 compile/ directories +fullbuild: + @echo "Building all Hui types (text+graphics, text, graphics and no= ne)" + @echo "To avoid this, use the \"all\" target which defaults to a \"= text+ graphics\" build" + @echo "Build started on "`date` + + @echo "------------------------------------------------------------= --" + @echo ">> Building for text+graphics" + @echo "------------------------------------------------------------= --" + ${MAKE} all=20 + @echo "------------------------------------------------------------= --" + @echo ">> Building without Qt (graphics)" + @echo "------------------------------------------------------------= --" + ${MAKE} all NOQT=3Dyes + @echo "------------------------------------------------------------= --" + @echo ">> Building without TVision (text)" + @echo "------------------------------------------------------------= --" + ${MAKE} all NOTVISION=3Dyes + @echo "------------------------------------------------------------= --" + @echo ">> Building libh without TVision and Qt (none)" + @echo "------------------------------------------------------------= --" + ${MAKE} all NOQT=3Dyes NOTVISION=3Dyes + @echo ">> Build finished on " `date` + +all build install clean: +.for _SUBDIR in ${SUBDIR} + cd ${_SUBDIR} && ${SETENV} ${MAKEENV} ${MAKE} $@ +.endfor + +.include "Makefile.uitype" But now, this doesn't work at all!! anarcat@shall[~/libh]% make Building all Hui types (text+graphics, text, graphics and none) To avoid this, use the "all" target which defaults to a "text+graphics" build Build started on Mer 12 d=E9c 2001 11:32:11 EST -------------------------------------------------------------- >> Building for text+graphics -------------------------------------------------------------- make all make: don't know how to make all. Stop *** Error code 2 Stop in /u/anarcat/libh. Ridiculous!!! Make all *works*. But not as expected: anarcat@shall[~/libh]% make all cd lib && /usr/bin/env MAKEOBJDIR=3D/u/anarcat/libh/compile/text+graphics m= ake all /usr/bin/env make -f ../Makefile.inc1 BSUBDIR=3Dlib/common all Warning: Object directory not changed from original /u/anarcat/libh/compile= /text+graphics c++ -g -fpic -DPIC -I/usr/local/include/tcl8.3 -I/u/anarcat/libh/compile/t= ext+graphics/../../include -c /u/anarcat/libh/compile/text+graphics/../../= lib/common/Pointer.cc -o Pointer.o In the same idea, make all in lib does not do this at all either!!! anarcat@shall[~/libh]% cd lib && /usr/bin/env MAKEOBJDIR=3D/u/anarcat/libh/= compile/text+graphics make all =3D=3D=3D> hui =3D=3D=3D> disk I feel there are 2 parallel dimensions here: one where everything makes sense and follows logic, and the make(1) one. :) What am I missing? BTW, I have been able to make this work properly before, I swear. It's just by abusive editing that I scrapped something I shouldn't have had scrapped. This is simply mad. A. --ftEhullJWpWg/VHq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjwXiEQACgkQttcWHAnWiGfhsACfQ+DvajtQkuCh6t8/aimEl+JL jdcAnRzY45Rhuk7MfIi05wSYym2Q6WAv =gHnQ -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message