aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9f3b1045498837dced963121e0366d4c406233ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC = cc
CFLAGS=-std=c99 -pedantic-errors -Wall
LIBS = -lncursesw
BIN=cli-tube

all: build

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

debug: main.c 
	$(CC) -g main.c -o $(BIN) $(CFLAGS) $(LIBS)
	valgrind --leak-check=full ./$(BIN) foo bar

clean:
	rm $(BIN) -v

install: build
	cp $(BIN) /usr/bin/
	chmod 755 /usr/bin/$(BIN)

uninstall: 
	rm -v /usr/bin/$(BIN)
Feel free to download, copy and edit any repo