From nobody Wed Feb 07 03:38:52 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TV5Sg6XGBz58ckV for ; Wed, 7 Feb 2024 03:38:59 +0000 (UTC) (envelope-from grog@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TV5Sg65kKz4MRq; Wed, 7 Feb 2024 03:38:59 +0000 (UTC) (envelope-from grog@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707277139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Qdb1nNk7Pz2vzIdt61ryoX3su6lpFYubM1iKqb7Hc6E=; b=gjo+v8Pf/iYJgg4LS/SNKyqlyJ45OH0FpuBrtZMTp3DZtfIEBXwtzdBxTuqzPmMfa325zY GrFbwHq7CnQxXml/HEWcuuzZPRf9Umg/qxIKtLB71IUZNf1Hrn/FyeO1kTIaUB11SjugBv GjEevmeDDoo0Y4djbP9lOrEjY0/1roTCCNnNEN3VOMKtrwEpt/Irpj5pSFANbUxSEj0OhK 6uEDwFVFEat0mFIb5E8aV6qw9lEdpwt+F8kCbOvQIPaXRgJFqxcK19R/UMXNOGbW7tfMWV 60jrZl0cFmMT+KZcnZQABQPeG7RrNaKPtDTQhvZqmV440iqEYOspZER84QrfOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707277139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Qdb1nNk7Pz2vzIdt61ryoX3su6lpFYubM1iKqb7Hc6E=; b=ojS2FQ5m+4lEPcByu+l7qP9yznu0S9XqcO+JoYx4w/vkUwi9AVWF4w0u50s992Z/99SzHn wqNBwMmeNwyzdVAl8C2uhWLQh6rk/WmTk364JH17NOIapAdA1peBBVX5QPMOAsG7iGQlMA 0egxZ/1H9MR8KGkL4rDTyLraW2A6AKmETJogaeETTUrCK8ELu3iuVv4F+UI9OGKYifpT6i lIyEuYLIsOkPiv+MGnSNGlAMeikwMiVKKk0SgY6486N76+vSiqudzFSjU7kM0xTHICandQ p8IBHzr8QVkMBjUzUAK01oPrQK2zFkwtSLzu5sg5R+UVBbzgmh4rSTz233z8aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707277139; a=rsa-sha256; cv=none; b=ee7h2zThcOQq3Ur+M/ABEo32tOEueS+DWuswGYpRy/2HVd20800lh2hQb4/2xhSCKYbgOB kD72uhvpTWENjCsGlbsnTPWb9vNchu7ZP+DBHMez8M/zy5XpjHyeVua8B2UD+eEILoQWJe 2fb1d/LkbR9j9yEdfR/6ViXGHY8Qu8DScGQUXriBaODW9Y7qsMnaNsyJHJUgBluwak4BZ5 PtnXL0Jm+pnes6D4qxIXJaTAA+ywgK29ewbd7f4yIzlXVbSYoyGJE/lKwUWw7KrF9y5l7q X9kbNWczMBIuJXl2Xh1teWXTEgn7z+OKLyEzXx8XXvxTfZB4TSlkWSg1q+Lv7g== Received: from hydra.lemis.com (121-200-11-253.79c80b.mel.nbn.aussiebb.net [121.200.11.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: grog/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TV5Sf4Vnlz13Sv; Wed, 7 Feb 2024 03:38:58 +0000 (UTC) (envelope-from grog@freebsd.org) Date: Wed, 7 Feb 2024 14:38:52 +1100 From: Greg 'groggy' Lehey To: Jonathan Adams Cc: freebsd-questions@freebsd.org Subject: Re: Need help with a makefile Message-ID: References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+7lOSGruOYVWiHIK" Content-Disposition: inline In-Reply-To: Organization: The FreeBSD Project Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: https://www.FreeBSD X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 --+7lOSGruOYVWiHIK Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wednesday, 7 February 2024 at 3:21:00 +0000, Jonathan Adams wrote: > I'm having a heck of a time getting my makefile conditional > statements to not cause `make` to have fits. > > Here is the start of the makefile including the troublesome bits: > ... > > 7 =E2=94=82 ifeq ($(UNAME),FreeBSD) \ > 8 =E2=94=82 CFLAGS +=3D -D BSD \ > 9 =E2=94=82 else ifeq ($(UNAME),Linux) \ > 10 =E2=94=82 CFLAGS +=3D -D LINUX \ > 11 =E2=94=82 endif This looks like GNU make. > And here are the errors from `make`: >> /portable/src$ make And you're feeding it to BSD make. The simple answer: use GNU make. That should be installed on your system, though it's not part of base FreeBSD. It's called gmake. If you don't have it, there's a package. However, I've put this through gmake, and it complains: $ gmake Makefile:7: extraneous text after 'ifeq' directive I don't know GNU make very well, but possibly you can find the reason. Quoting, maybe? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Sent from my desktop computer. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA.php --+7lOSGruOYVWiHIK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSaG4ICvM64RvkvCawi5vKQUHpCIwUCZcL7RwAKCRAi5vKQUHpC I71MAJoC3vxwUcUZRfsgtSAma1/hdhQ7DACfTczlYLwr/qeadTazHiVeWyAlA1Q= =kK+2 -----END PGP SIGNATURE----- --+7lOSGruOYVWiHIK--