aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-02-07 19:55:55 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-02-07 19:55:55 -0500
commitdb2ddd0b4a9b375ab0cac69cf76feb1177e6ebd6 (patch)
treee5f3cc32a17351d8e0bfc017a0055a04e14fd92e /Makefile
parent6dc377181170d2b642281adbc08a248435a2c648 (diff)
ncurses for interactive selection added
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 86c43bf..9f3b104 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
CC = cc
CFLAGS=-std=c99 -pedantic-errors -Wall
+LIBS = -lncursesw
BIN=cli-tube
+all: build
+
build: main.c
- $(CC) $(CFLAGS) main.c -o $(BIN)
+ $(CC) $(CFLAGS) main.c -o $(BIN) $(LIBS)
debug: main.c
- $(CC) -g main.c -o $(BIN) $(CFLAGS)
+ $(CC) -g main.c -o $(BIN) $(CFLAGS) $(LIBS)
valgrind --leak-check=full ./$(BIN) foo bar
clean:
Feel free to download, copy and edit any repo