From cfe010b7c9aba76c6aa27bb1a5616fe9c4baf18e Mon Sep 17 00:00:00 2001 From: Ivan Davydov Date: Sat, 5 Apr 2025 20:06:05 +0300 Subject: Make build process automated --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4945fc2 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +# https://nullprogram.com/blog/2017/08/20 +.POSIX: +.SUFFIXES: +CC = cc +CFLAGS = -Wall +LDLIBS = -lncurses + +all: clicker-ncurses +clicker-ncurses: clicker-ncurses.o + $(CC) $(LDFLAGS) -o clicker-ncurses clicker-ncurses.o $(LDLIBS) +clicker-ncurses.o: clicker-ncurses.c clicker-ncurses.h + $(CC) -c $(CFLAGS) clicker-ncurses.c +clean: + rm -f clicker-ncurses *.o -- cgit v1.2.3