496f5d66 |
1 | .PHONY: all |
9fd3f859 |
2 | |
205ba9a7 |
3 | CFLAGS=-Wall -Wextra -Werror -std=c89 |
496f5d66 |
4 | DEBUGF=-O0 -v -g |
5 | SRCDIR=src |
b7f8df44 |
6 | INTFDIR=$(SRCDIR)/interfaces |
d89a2b87 |
7 | SANITY=-Wno-unused-variable -Wno-unused-parameter # -Wno-comment |
9fd3f859 |
8 | |
fd8852d9 |
9 | GLIBF=`pkg-config --cflags --libs glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0` |
32a2d8e2 |
10 | |
d89a2b87 |
11 | all: build |
12 | |
13 | build: |
39df6847 |
14 | gcc -o bin/out.bin $(DEBUGF) $(GLIBF) $(SANITY) $(SRCDIR)/main.c |
15 | |
d89a2b87 |
16 | build-proper: |
39df6847 |
17 | gcc -o bin/out.bin $(CFLAGS) $(GLIBF) $(SANITY) $(SRCDIR)/main.c |
d89a2b87 |
18 | |
19 | clean: |
20 | rm bin/* |
21 | |
22 | install: _install_conf |
23 | |
24 | _install_conf: |
25 | cp conf/*-dbus.conf /etc/dbus-1/system.d/ |
ef6cdbf9 |
26 | cp conf/systemd_compat.conf /etc/ |