From 75a1408e9d4e54af9695bc4eca650b35c22bcff2 Mon Sep 17 00:00:00 2001 From: awy Date: Thu, 11 Sep 2025 17:35:32 +0300 Subject: BIG HAPPENING: notifications and spawn functionality --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d8239c0..824b81d 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ BINDIR := $(HOME)/.local/bin/statusbar SRCS := $(wildcard $(SRCDIR)/*.c) PROGS := $(patsubst $(SRCDIR)/%.c,$(BINDIR)/%,$(SRCS)) +NOTIFY_CFLAGS := $(shell pkg-config --cflags libnotify) +NOTIFY_LIBS := $(shell pkg-config --libs libnotify) + .PHONY: all clean all: $(BINDIR) $(PROGS) @@ -27,7 +30,7 @@ $(BINDIR)/stweath: $(SRCDIR)/stweath.c | $(BINDIR) $(CC) $(CFLAGS) -o $@ lib/util.c lib/cjson/cJSON.c $< -lcurl $(BINDIR)/%: $(SRCDIR)/%.c | $(BINDIR) - $(CC) $(CFLAGS) -o $@ lib/util.c $< + $(CC) $(CFLAGS) $(NOTIFY_CFLAGS) -o $@ lib/util.c $< $(NOTIFY_LIBS) clean: rm -f $(PROGS) -- cgit v1.2.3