-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (17 loc) · 764 Bytes
/
Makefile
File metadata and controls
21 lines (17 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: fmtx-object-bindings.h fmtxd fmtx_client
fmtxd: fmtx-object.c main.c audio.c dbus.c
$(CC) $(CFLAGS) $(shell pkg-config --cflags --libs libcal dbus-1 \
glib-2.0 gconf-2.0 libpulse libpulse-mainloop-glib alsa) $^ -o $@
fmtx-object-bindings.h: fmtx-object.xml
dbus-binding-tool --mode=glib-server --prefix=fmtx_object $< --output=$@
fmtx_client: fmtx_client.c
$(CC) $(CFLAGS) $(shell pkg-config --cflags --libs dbus-glib-1) $^ -o $@
clean:
$(RM) *.o fmtx-object-bindings.h fmtxd fmtx_client
install:
install -d "$(DESTDIR)/usr/include/"
install -d "$(DESTDIR)/usr/bin/"
install -d "$(DESTDIR)/usr/sbin/"
# install -m 644 fmtxd.h "$(DESTDIR)/usr/include/"
install -m 755 fmtxd "$(DESTDIR)/usr/sbin/"
install -m 755 fmtx_client "$(DESTDIR)/usr/bin/"