From 2c7d72db92a00f653b5f5db77b1ce5bc22800a07 Mon Sep 17 00:00:00 2001 From: jvech Date: Mon, 24 Jan 2022 13:10:28 -0500 Subject: It works, now lets add comments and documentation --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bf3c585..42c1b78 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,16 @@ CC = gcc -CFLAGS=-std=c99 -pedantic-errors +CFLAGS=-std=c99 -pedantic-errors -Wall +BIN=cli-tube build: main.c - $(CC) $(CFLAGS) main.c -o main + $(CC) $(CFLAGS) main.c -o $(BIN) debug: main.c - $(CC) -g main.c -o main $(CFLAGS) + $(CC) -g main.c -o $(BIN) $(CFLAGS) + valgrind --leak-check=full ./$(BIN) foo bar + +test: test.c + $(CC) test.c -o test $(CFLAGS) -lcurl + +clean: + rm main *.o $(BIN) -v -- cgit v1.2.3-70-g09d2