From nobody Wed Feb 07 03:21:00 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 4TV54F74qlz58b7v for ; Wed, 7 Feb 2024 03:21:17 +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 4TV54C65rsz4Kjx for ; Wed, 7 Feb 2024 03:21:15 +0000 (UTC) (envelope-from jfadams1963@proton.me) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=proton.me header.s=protonmail header.b=ndOS3wPG; dmarc=pass (policy=quarantine) header.from=proton.me; spf=pass (mx1.freebsd.org: domain of jfadams1963@proton.me designates 185.70.43.22 as permitted sender) smtp.mailfrom=jfadams1963@proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1707276072; x=1707535272; bh=jQ0YBXtmrMGn0EUTWIFbySpJtbeYjL2jguOztnTFPaI=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=ndOS3wPGjposesejCDteULe40RlSaNaFbGUyKOU3j+gLAejFBIfROquZkHpNBnQF4 FVYCf38ZTz5qHw7Sbt3GtVFlYib4ocQrn+ZUl62O5nUmViw48gdCuwhxtDp6N7BgLX I/KewDPSngdoPiYAp9n60XNOSvPoD3+d45UTZY6ZZUv1rXSoAwMHy76WzYrpazg4uO PZji4+7g2XTrn086fbu5ue6kpLVyGyT/hiHSd21YErAXEyxEDbCF3GykL+N/2wmRCC sgqILWW4Pm8mlJWO84QC7GpjVIbD7YHtPJ11lS4u0vQopw+tI2zj5HrcoMHVRpwcuT nUqXp9WzhB3IQ== Date: Wed, 07 Feb 2024 03:21:00 +0000 To: freebsd-questions@freebsd.org From: Jonathan Adams Subject: Need help with a makefile Message-ID: 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="------ddc9ae43d3b402d64dc8c11a57357ef91cec221434904d6accd055036060e913"; charset=utf-8 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.50 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[proton.me,quarantine]; RWL_MAILSPIKE_EXCELLENT(-0.40)[185.70.43.22:from]; R_DKIM_ALLOW(-0.20)[proton.me:s=protonmail]; R_SPF_ALLOW(-0.20)[+ip4:185.70.43.0/24]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; DKIM_TRACE(0.00)[proton.me:+]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[] X-Rspamd-Queue-Id: 4TV54C65rsz4Kjx This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------ddc9ae43d3b402d64dc8c11a57357ef91cec221434904d6accd055036060e913 Content-Type: multipart/mixed;boundary=---------------------3d34fa24a71fb91606c6424199280f3f -----------------------3d34fa24a71fb91606c6424199280f3f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 Hi all, I'm having a heck of a time getting my makefile conditional statements t= o not cause `make` to have fits. Could sure use some help on this. This is= a makefile that works great _without_ the conditions, and my program comp= iles and runs on FBSD and Linux. I've just added a function who's header file is in a different location = on Linux, so I'm needing detect the OS and set the correct preprocessor di= rectives. I get the same errors without the line continuation backslashes.= (More errors actually; one for lines 7, 9, 10, and 11 each) I'm using tab= s for indent, and have checked for extraneous/misplaced spaces too. Here is the start of the makefile including the troublesome bits: 1 =E2=94=82 CC =3D cc 2 =E2=94=82 CFLAGS =3D -g -w -Wall -Wextra 3 =E2=94=82 LDFLAGS =3D -Wl,--allow-multiple-definition -lssl -lcrypt= o = 4 =E2=94=82 RM =3D rm -f 5 =E2=94=82 UNAME :=3D $(shell uname) 6 =E2=94=82 = 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 And here are the errors from `make`: ~/portable/src$ make make: "/home/jfa/portable/src/makefile" line 7: Invalid line type make: Fatal errors encountered -- cannot continue make: stopped in /home/jfa/portable/src I'm working on 14.0-RELEASE-p4. I've found plenty of advice on Stackover= flow, but nothing that solves the issue. Duckduckgo-ing produces more of t= he same, so I thought I'd reach out here. Thanks! -=C2=A0Jonathan ____________________________________________ "Before Turing, things were done to numbers. After Turing, numbers began doing things" - George Dyson -----------------------3d34fa24a71fb91606c6424199280f3f-- --------ddc9ae43d3b402d64dc8c11a57357ef91cec221434904d6accd055036060e913 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKACcFgmXC9wIJkI6O/sbt8r3IFiEEcBGzOO9wDbcpT/10jo7+xu3y vcgAAB5hAP9+PP4TIvlHO9ZgQSodvSnwJS181T/oUWY4rrWs17WzWwD/en72 lqcdCRlhgv8vv3pcdjdPt8mAaw/sRSTgj7RI1wU= =bmvX -----END PGP SIGNATURE----- --------ddc9ae43d3b402d64dc8c11a57357ef91cec221434904d6accd055036060e913--