mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
build: Add DEBUG option
This commit is contained in:
parent
12d4decdd4
commit
dea248b824
5
Makefile
5
Makefile
@ -5,6 +5,7 @@ BUILD_DIR := build
|
|||||||
SRC_DIR := src
|
SRC_DIR := src
|
||||||
INC_DIR := include
|
INC_DIR := include
|
||||||
|
|
||||||
|
DEBUG := 0
|
||||||
VERBOSE := 0
|
VERBOSE := 0
|
||||||
LIBS := xcb-atom
|
LIBS := xcb-atom
|
||||||
|
|
||||||
@ -26,6 +27,10 @@ ifeq ($(VERBOSE), 0)
|
|||||||
Q := @
|
Q := @
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(DEBUG), 1)
|
||||||
|
CFLAGS += -g
|
||||||
|
endif
|
||||||
|
|
||||||
all: $(BUILD_DIR)/$(BIN)
|
all: $(BUILD_DIR)/$(BIN)
|
||||||
|
|
||||||
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c config.h
|
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c config.h
|
||||||
|
Loading…
Reference in New Issue
Block a user