diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-07-12 18:02:47 +0200 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-07-12 18:02:47 +0200 |
commit | ed74ab2d27460ec11a29f6d005a003d69104d7c5 (patch) | |
tree | 0ca5295ed6ab640db1d6d5dd4b7fc0d79210ccc5 /Makefile | |
download | simple-notification-daemon-ed74ab2d27460ec11a29f6d005a003d69104d7c5.tar.gz simple-notification-daemon-ed74ab2d27460ec11a29f6d005a003d69104d7c5.zip |
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..38c3773 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +GCC := gcc +CFLAGS_DBUS := $(shell pkg-config --cflags --libs dbus-1) +CFLAGS = -g -Wall -O ${CFLAGS_DBUS} + +DEST = + +.PHONY: clean + +all: snotifd snotifc +o_files := $(patsubst %.c,%.o,$(wildcard *.c)) + +%: %.c + ${GCC} $< -o $@ -c ${CFLAGS} + +snotifd: ${o_files} + ${GCC} -o $@ $@.o snotif.o ${CFLAGS} + +snotifc: ${o_files} + ${GCC} -o $@ $@.o snotif.o ${CFLAGS} -lncursesw + +install: snotifc snotifd + install snotifd ${DEST}/usr/local/bin/snotifd + install snotifc ${DEST}/usr/local/bin/snotifc + +clean: + rm -f *.o + rm -f snotifc + rm -f snotifd |