X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=src%2FMakefile;h=fd31fd8691ba36242c6de85f5b04378181937398;hb=6d627bac82f84e39beda51981ddf3a6ddabbbe78;hp=ac4888e653631721323dcc97cde28ea2c3c3e459;hpb=651b0eba4cdf0afc46f8646f57a9fff4d2d68c5e;p=smdp.git diff --git a/src/Makefile b/src/Makefile index ac4888e..fd31fd8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -22,8 +22,9 @@ UNAME_S := $(shell uname -s 2>/dev/null || echo not) SOURCES = $(wildcard *.c) OBJECTS = $(SOURCES:.c=.o) -CFLAGS = -O3 -Wall -CPPFLAGS = -I../include +CFLAGS ?= -O3 +CFLAGS += -Wall +CPPFLAGS += -I../include ifeq ($(DEBUG),1) CFLAGS := -O0 -Wall -g @@ -37,7 +38,7 @@ endif ifeq ($(UNAME_S),Linux) LSB_RELEASE := $(shell lsb_release -si 2>/dev/null || echo not) - ifneq ($(filter $(LSB_RELEASE),Debian Ubuntu LinuxMint),) + ifneq ($(filter $(LSB_RELEASE),Debian Ubuntu LinuxMint CrunchBang),) CPPFLAGS += -I/usr/include/ncursesw endif endif