From 76b7f121d58293f4828b58fe77561c27bad1827b Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 7 Jul 2023 10:22:38 -0700 Subject: [PATCH] Fix 2019/dogon/Makefile for clang in linux --- 2019/dogon/Makefile | 4 ++-- thanks-for-fixes.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/2019/dogon/Makefile b/2019/dogon/Makefile index 2ec91e0a7..fb21b973d 100644 --- a/2019/dogon/Makefile +++ b/2019/dogon/Makefile @@ -41,7 +41,7 @@ include ../../var.mk CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \ -Wno-deprecated-declarations -Wno-format -Wno-parentheses \ -Wno-shift-op-parentheses -Wno-sign-compare -Wno-unused-variable \ - -Wno-main-return-type -Wno-return-type -Wno-unused-parameter + -Wno-main-return-type -Wno-return-type -Wno-unused-parameter -Wno-implicit-function-declaration # Common C compiler warning flags # @@ -64,7 +64,7 @@ CDEFINE= -DX=1280l -DY=1024l -DZ=0x20000000 # Include files that are needed to compile # -CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11 +CINCLUDE= -include stdio.h -I ${X11_INCDIR} -I ${X11_INCDIR}/X11 # Optimization # diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 5e998a688..edc60486a 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1443,6 +1443,7 @@ might as well. Cody added explicit linking of libm (`-lm`) for systems that do not do this (linux does not seem to but macOS does). +He also fixed the Makefile so that it compiles with clang in linux. ## [2019/karns](2019/karns/prog.c) ([README.md](2019/karns/README.md]))