From ad3109bf163bb3b2d38425ec17ea35355eb4ab4c Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Thu, 27 Feb 2014 20:09:07 +0200 Subject: [PATCH] add debug compilation target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 579c4e1..615bf1c 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ BIN_BSD = $(DESTDIR)/usr/local/bin SBIN_BSD = $(DESTDIR)/usr/local/sbin MAN_BSD = $(DESTDIR)/usr/local/man -.PHONY: vnstat tests all clean install uninstall bsdinstall bsduninstall +.PHONY: vnstat tests all clean debug install uninstall bsdinstall bsduninstall default: vnstat @@ -25,6 +25,9 @@ clean: make -C src clean make -C tests clean +debug: + make CFLAGS='-Wall -Wextra -g' -C src all + install: @echo "Installing vnStat..." -- 2.40.0