build: Add DEBUG option
This commit is contained in:
parent
12d4decdd4
commit
dea248b824
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
|
@ -5,6 +5,7 @@ BUILD_DIR := build
|
|||
SRC_DIR := src
|
||||
INC_DIR := include
|
||||
|
||||
DEBUG := 0
|
||||
VERBOSE := 0
|
||||
LIBS := xcb-atom
|
||||
|
||||
|
|
@ -26,6 +27,10 @@ ifeq ($(VERBOSE), 0)
|
|||
Q := @
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -g
|
||||
endif
|
||||
|
||||
all: $(BUILD_DIR)/$(BIN)
|
||||
|
||||
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c config.h
|
||||
|
|
|
|||
Loading…
Reference in a new issue