summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 1d860b2..437de56 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
DESTDIR=/
SRCFILE=main.cpp
+BINFILE=ov
O=0
-CFLAGS += -Wextra -Wall -g -O$O -I. -oov -finput-charset=UTF-8 -fextended-identifiers
+CFLAGS += -Wextra -Wall -g -O$O -I. -o$(BINFILE) -finput-charset=UTF-8 -fextended-identifiers
LIBS +=
CC=c++
VGARGS += --leak-check=full --track-origins=yes --verbose --log-file=valgrind-out.txt --suppressions=/usr/lib/i386-linux-gnu/valgrind/default.supp --show-leak-kinds=all --leak-resolution=high
@@ -18,19 +19,19 @@ cc:
install:
mkdir -p $(DESTDIR)/usr/bin/
- cp ov $(DESTDIR)/usr/bin/
+ cp $(BINFILE) $(DESTDIR)/usr/bin/
distclean:
- rm ov -f
+ rm $(BINFILE) -f
clean:
- rm ov -f
+ rm $(BINFILE) -f
prepare:
- apt install build-essential -y
+ apt install build-essential libmuparserx-dev -y
-# developing is to be done on i386. for example the default suppression file is hardcoded for i386 here:
+# developing is to be done on i386.
# developing is to be done on bullseye.
valgrind:
- G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind $(VGARGS) ./ov
+ G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind $(VGARGS) ./$(BINFILE)