aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 42c1b783f5fa3345a40648cbf41987c81e20b4f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC = gcc
CFLAGS=-std=c99 -pedantic-errors -Wall
BIN=cli-tube

build: main.c
	$(CC) $(CFLAGS) main.c -o $(BIN)

debug: main.c 
	$(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
Feel free to download, copy and edit any repo