Add LAPTOP flag

This commit is contained in:
Santiago Lo Coco 2022-02-07 22:13:43 -03:00
parent 2b1da7988c
commit 3f07e361f5
1 changed files with 3 additions and 1 deletions

View File

@ -7,9 +7,11 @@ X11CFLAGS = $(shell pkg-config --cflags x11)
X11LIBS = $(shell pkg-config --libs x11)
all: dwmblocks sigdwmblocks/sigdwmblocks xgetrootname/xgetrootname
laptop: LFLAG = -DLAPTOP
laptop: install
dwmblocks: dwmblocks.c config.h block.h
${CC} -o $@ -Wno-missing-field-initializers -Wno-unused-parameter ${CFLAGS} ${X11CFLAGS} $< ${X11LIBS}
${CC} -o $@ -Wno-missing-field-initializers -Wno-unused-parameter ${LFLAG} ${CFLAGS} ${X11CFLAGS} $< ${X11LIBS}
E0BLOCKS = $(abspath blocks)
# two level escaping of `\', one for sed and one for C