summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 092af8a4ecdd9bd66e6d07841c6561bc503c7ad0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DESTDIR=/

default:
	gcc -Wall -pedantic -g -Isrc -I. -pthread $$(ncursesw6-config --cflags --libs) src/main.c -lcjson -lcurl -lformw -odiscord.c

install:
	mkdir -p $(DESTDIR)/usr/bin/
	cp discord.c $(DESTDIR)/usr/bin/

distclean:
	rm discord.c -f

clean:
	rm discord.c -f
	
prepare:
	sudo apt install libncursesw6 libcurl4-openssl-dev libcjson-dev -y

valgrind:
	valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt --suppressions=/usr/lib/valgrind/ncurses.supp --suppressions=misc/openssl.supp ./discord.c