From 76dd08c465e420d014879092392091d2e9bdddc5 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Thu, 23 Apr 2020 23:13:17 +0200 Subject: [PATCH] added debug compilations --- .gitignore | 2 +- makefile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0b3531f..cfa17d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ *.out *.swp *.o -macrod +macrod* diff --git a/makefile b/makefile index d8d2357..6988add 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,10 @@ CFLAGS = -Wall -Werror -pedantic -O2 macrod: macrod.o +debug: + gcc $(CFLAGS) -g macrod.c -o macrod_debug + macrod.o: macrod.c clean: - rm macrod *.o + rm macrod *.o macrod_debug 2> /dev/null