blob: 0bd95f342a8f0cff09f162ebc3612f20c323ceae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
GCC := gcc
CFLAGS_DBUS := $(shell pkg-config --cflags --libs dbus-1)
CFLAGS = -Wall -O ${CFLAGS_DBUS}
DEST =
.PHONY: install 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}
strip snotifd
snotifc: ${o_files}
${GCC} -o $@ $@.o snotif.o ${CFLAGS} -lncursesw
strip snotifc
install: snotifc snotifd
install snotifd ${HOME}/bin/snotifd
install snotifc ${HOME}/bin/snotifc
mkdir -p ${XDG_CONFIG_HOME}/systemd/user/
install snotifd.service ${XDG_CONFIG_HOME}/systemd/user/
systemctl --user daemon-reload
clean:
rm -f *.o
rm -f snotifc
rm -f snotifd
|