Skip to content

Commit

Permalink
Add analyzer target.
Browse files Browse the repository at this point in the history
  • Loading branch information
tadd committed Jul 15, 2024
1 parent 4d8d134 commit f60e47c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SRC=main.c lisp.c utils.c
OBJ=$(SRC:.c=.o)
CFLAGS=-std=gnu17 -O0 -ggdb3 -Wall -Wextra $(XCFLAGS)
ANALYZER=-fanalyzer

all: lisp

Expand All @@ -19,4 +20,9 @@ test: test_lisp
clean:
rm -f *.o lisp test_lisp

.PHONY: all clean test
%.analyzer: %.c
$(CC) $(CFLAGS) $(ANALYZER) -c $< -o /dev/null

analyze: $(OBJ:.o=.analyzer)

.PHONY: all clean test analyze

0 comments on commit f60e47c

Please sign in to comment.