summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-02-16 07:28:25 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-02-16 07:28:25 +0100
commitf6943ce36a18bf5ce91351af71de89d32ea772c7 (patch)
treefb6aa2b422d59a71fdf72738f8f8e2054ee3b320 /Makefile
parentgoing to use libcjson after all (diff)
downloaddiscord.c-f6943ce36a18bf5ce91351af71de89d32ea772c7.tar
discord.c-f6943ce36a18bf5ce91351af71de89d32ea772c7.tar.gz
discord.c-f6943ce36a18bf5ce91351af71de89d32ea772c7.tar.bz2
discord.c-f6943ce36a18bf5ce91351af71de89d32ea772c7.tar.lz
discord.c-f6943ce36a18bf5ce91351af71de89d32ea772c7.tar.xz
discord.c-f6943ce36a18bf5ce91351af71de89d32ea772c7.tar.zst
discord.c-f6943ce36a18bf5ce91351af71de89d32ea772c7.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b5615f1..290da8e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
DESTDIR=/
SRCFILE=src/main.c
+BINFILE=discord.c
O=0
CFLAGS += -Wextra -Wall -pedantic -g -O$O -Itmp -Isrc -I. -odiscord.c -Wno-unused-parameter -rdynamic -finput-charset=UTF-8 -fextended-identifiers
LIBS += -lm
@@ -47,7 +48,7 @@ valgrind-prepare:
valgrind:
-[ ! -f tmp/gend.supp ] && bash -c "echo '' > tmp/gend.supp"
- G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind $(VGARGS) --suppressions=tmp/gend.supp ./discord.c
+ G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind $(VGARGS) --suppressions=tmp/gend.supp ./$(BINFILE)
gensupp:
cc misc/valgrind-supp-extractor.c -otmp/vse