use LDFLAGS to build dwl target

This commit is contained in:
Leonardo Hernández Hernández 2022-06-06 23:31:35 -05:00
parent 50b6630f3d
commit d969289baf
No known key found for this signature in database
GPG key ID: E538897EE11B9624

View file

@ -22,7 +22,7 @@ LDLIBS = `pkg-config --libs $(PKGS)`
# to your build system yourself and provide them in the include path. # to your build system yourself and provide them in the include path.
all: dwl all: dwl
dwl: dwl.o util.o dwl: dwl.o util.o
$(CC) $(LDLIBS) -o $@ dwl.o util.o $(CC) $(LDLIBS) $(LDFLAGS) -o $@ dwl.o util.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 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 util.o: util.c util.h