From c8dbbac38f512d2f31d1a6aec3a236af88ad04f6 Mon Sep 17 00:00:00 2001 From: Annwan Date: Mon, 1 Jun 2026 13:13:35 +0200 Subject: [PATCH] =?UTF-8?q?build:=20compile=5Fcommands.json=20=E2=86=92=20?= =?UTF-8?q?compile=5Fflags.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also have make update it --- .gitignore | 1 + Makefile | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 801b2be..ebaa1e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /compile_commands.json +/compile_flags.txt /build /docs/*.pdf /ain48 diff --git a/Makefile b/Makefile index 05aea33..08540e9 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,10 @@ DOCS=$(patsubst docs/%.typ, docs/%.pdf, $(DOCSRC)) PROGRAM=ain48 -.PHONY: all build docs clean deepclean -all: build docs +.PHONY: all build docs clean deepclean setup +all: setup build docs + +setup: compile_flags.txt build: $(PROGRAM) @@ -44,6 +46,9 @@ deepclean: clean $(RM) $(PROGRAM) $(RM) $(DOCS) +compile_flags.txt: Makefile + printf "%s\n" $(CFLAGS) > $@ + $(PROGRAM): $(OBJS) $(LD) $(LDFLAGS) $(OBJS) -o $@