From 5839159141b9cfb8d66f0baa456bff1bec6cce44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 4 Feb 2022 12:33:36 +0100 Subject: za zunanje delo 2 --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3