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