summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdgar Fouillet <vlc@edgar.fouillet.eu>2019-11-03 21:00:28 +0100
committerjaseg <githubaccount@jaseg.net>2019-11-10 16:36:39 +0100
commit92831e54d870bf4b538e3603cc45129cb355c022 (patch)
treec974cd00bd57a440d3ea8dadd8130d85b4a3d215
parent6e1caef075b973999cda4cac5b3fb40b6a4b5408 (diff)
downloadlolcat-92831e54d870bf4b538e3603cc45129cb355c022.tar.gz
lolcat-92831e54d870bf4b538e3603cc45129cb355c022.tar.bz2
lolcat-92831e54d870bf4b538e3603cc45129cb355c022.zip
Makefile: remove -g from default cc command
-rw-r--r--Makefile8
1 files 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
-