diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 |