From 180f421bd2a5bab4c5d0d65ff151a5eaa7542a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 8 Feb 2023 18:36:26 +0100 Subject: initial commit --- makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..c8fbebd --- /dev/null +++ b/makefile @@ -0,0 +1,23 @@ +DESTDIR=/ +CC=cc +MYCFLAGS=-O0 -Wall -Wextra -Wformat -pedantic -g -I. # -fsanitize=address +MYLDFLAGS= + +default: ptt + +ptt: ptt.c + $(CC) $(MYCFLAGS) $(CFLAGS) $< -o$@ $(MYLDFLAGS) $(LDFLAGS) + +install: + mkdir -p $(DESTDIR)/usr/bin/ + cp ptt $(DESTDIR)/usr/bin/ + +distclean: clean + +clean: + rm -rf tmp + +valgrind: + valgrind --error-exitcode=59 --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt $(CMD) + +.PHONY: default install distclean clean valgrind -- cgit v1.2.3