include DWLCFLAGS into linking step

This commit is contained in:
Leonardo Hernández Hernández 2022-07-06 23:28:49 -05:00
parent c6d97f1db7
commit 0eff78d6c2
No known key found for this signature in database
GPG key ID: E538897EE11B9624

View file

@ -22,7 +22,7 @@ LDLIBS = `pkg-config --libs $(PKGS)` $(LIBS)
# to your build system yourself and provide them in the include path.
all: dwl
dwl: dwl.o util.o
$(CC) dwl.o util.o $(LDLIBS) $(LDFLAGS) -o $@
$(CC) dwl.o util.o $(LDLIBS) $(LDFLAGS) $(DWLCFLAGS) -o $@
dwl.o: dwl.c config.mk config.h client.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h idle-protocol.h
util.o: util.c util.h