From nobody Wed Feb 07 15:16:43 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 4TVNyB1VS8z59Y9X for ; Wed, 7 Feb 2024 15:17:06 +0000 (UTC) (envelope-from jfadams1963@proton.me) Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TVNy96ZjTz4Hhx; Wed, 7 Feb 2024 15:17:05 +0000 (UTC) (envelope-from jfadams1963@proton.me) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1707319020; x=1707578220; bh=9HfnpVVWeBbZgF4Up4yV8/fxhSorlYdBQOIln/4v3ec=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=NnIi94GWeJwyqS7SA7RJdRB0kgAExk84aWfL702fg7pPofhvniIxwndDJRVfJCGSD fsRY0knvXp5Q/O/H/x02zN6vRwrQrKaD5FhcQ45G4umjH/Nq0KVAG2Kh6N3EXrRyfl LXze55bcevD4F/2Z4y0wI9eHZ/qEODV9vOLlLWwqGSzkbkfyPWb/wlAEmWh2hPov8Z mdijEWCeoUEpjknFtMhCfDWc6AXrAS6F4AZ8GB5kAb2niQGxMsN98OvKRwrI+b6S5z DZ53VJnekYyZq0PEw7OpOXdxOhVWsQ5WydKVj5p+jmyTzEsKjHQGDbZNZtYpJ9Uny7 lyDTgQs/TdALQ== Date: Wed, 07 Feb 2024 15:16:43 +0000 To: Greg 'groggy' Lehey From: Jonathan Adams Cc: freebsd-questions@freebsd.org Subject: Re: Need help with a makefile Message-ID: In-Reply-To: References: Feedback-ID: 80741059:user:proton 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; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="------9f569d4edb920c62961ab9f10e14956dcb5a962e2e1e24c4ae8260b0f2915d43"; charset=utf-8 X-Rspamd-Queue-Id: 4TVNy96ZjTz4Hhx X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH] This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------9f569d4edb920c62961ab9f10e14956dcb5a962e2e1e24c4ae8260b0f2915d43 Content-Type: multipart/mixed;boundary=---------------------5ab4522cf964668aac45fd85cf0c4e2e -----------------------5ab4522cf964668aac45fd85cf0c4e2e Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 On Tuesday, February 6th, 2024 at 10:38 PM, Greg 'groggy' Lehey wrote: > On Wednesday, 7 February 2024 at 3:21:00 +0000, Jonathan Adams wrote: > = > > 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 you're feeding it to BSD make. Doh! Than explains a lot. I mean, of course I know that I'm using BSD mak= e, ;-), it just hadn't yet occurred to me that all the wonderful examples = I was reading were GNU make specific. My first clue _should_ have been, wh= en reading the man page, that I actually notice the different conditionals= ! At least I can be embarrassed about this in front of an understanding gr= oup. :-) > The simple answer: use GNU make. Yeah, I hadn't yet felt the need to install it, but I can. It is the most = straight-forward solution. Though, my program doesn't _have_ to compile on= Linux, it's just nice that it can. > 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? Hmm, OK. I'm just getting started today and haven't yet touched this. I'= ll play around with this, and see what sort of trouble I can get myself in= to... Thanks again Greg, -=C2=A0Jonathan ____________________________________________ "Before Turing, things were done to numbers. After Turing, numbers began doing things" - George Dyson -----------------------5ab4522cf964668aac45fd85cf0c4e2e-- --------9f569d4edb920c62961ab9f10e14956dcb5a962e2e1e24c4ae8260b0f2915d43 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKACcFgmXDnrQJkI6O/sbt8r3IFiEEcBGzOO9wDbcpT/10jo7+xu3y vcgAAAQfAQCDdQ4OSdnssHwzwv3oEZZ6OX5V9DIipm1bI0IWwRFQ8wD+PN4a d2U9fXl8N3PlEEa4krDToFGPODKfvaxmGOfs6AA= =5CUD -----END PGP SIGNATURE----- --------9f569d4edb920c62961ab9f10e14956dcb5a962e2e1e24c4ae8260b0f2915d43--