From 92831e54d870bf4b538e3603cc45129cb355c022 Mon Sep 17 00:00:00 2001 From: Edgar Fouillet Date: Sun, 3 Nov 2019 21:00:28 +0100 Subject: Makefile: remove -g from default cc command --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1be84e5..a9df842 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,16 @@ CC ?= gcc LOLCAT_SRC ?= lolcat.c CENSOR_SRC ?= censor.c -CFLAGS ?= -std=c11 -Wall -Wextra -g +CFLAGS ?= -std=c11 -Wall -Wextra DESTDIR ?= /usr/local/bin all: lolcat censor -.PHONY: install clean +debug: CFLAGS += -g +debug: all + +.PHONY: install clean debug lolcat: $(LOLCAT_SRC) $(CC) $(CFLAGS) -o $@ $^ @@ -22,4 +25,3 @@ install: lolcat censor clean: rm -f lolcat censor - -- cgit