Makefile: remove -g from default cc command

This commit is contained in:
Edgar Fouillet 2019-11-03 21:00:28 +01:00 committed by jaseg
parent 6e1caef075
commit 92831e54d8

View file

@ -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