blob: 092af8a4ecdd9bd66e6d07841c6561bc503c7ad0 (
plain) (
tree)
|
|
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
|