From 81fd753efd706fb8172ed6ce845eef20cd5e0f2a Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Fri, 12 Jun 2020 17:05:34 -0700 Subject: [PATCH] make tags --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 571915e..6b3f8d5 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ -CFLAGS=--std=c18 -Wall -Wextra -pedantic +CFLAGS=--std=c18 -O2 -Wall -Wextra -pedantic LDLIBS=-lncurses -lcurl .phony: clean -objects := $(patsubst %.c,%.o,$(wildcard **/*.c)) +srcs := $(wildcard **/*.c) +objects := $(patsubst %.c,%.o,$(srcs)) ncac: $(objects) +tags: $(srcs) + ctags -w -t $^ + clean: rm -f **/*.o ncac