Enable building with debuginfo
Add -g to CFLAGS when running make with DEBUG=1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
23734c5a2b
commit
447025f62c
4
Makefile
4
Makefile
@ -10,6 +10,10 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
|
|||||||
|
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
|
|
||||||
|
ifdef DEBUG
|
||||||
|
CFLAGS += -g
|
||||||
|
endif
|
||||||
|
|
||||||
all: cgit
|
all: cgit
|
||||||
|
|
||||||
install: all clean-cache
|
install: all clean-cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user