1
0

build: compile_commands.json → compile_flags.txt

Also have make update it
This commit is contained in:
2026-06-01 13:13:35 +02:00
parent 57d82b7e29
commit c8dbbac38f
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/compile_commands.json
/compile_flags.txt
/build
/docs/*.pdf
/ain48

View File

@ -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 $@