blob: d09120deef81dcab80157d0da140247389b132de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CFLAGS?=-Wall
RODISC_PKGCONFIG:=glib-2.0 gobject-2.0 gio-unix-2.0 libsoup-2.4 avahi-gobject
RODISC_CFLAGS:=$(shell pkg-config --cflags $(RODISC_PKGCONFIG))
RODISC_LIBS:=$(shell pkg-config --libs $(RODISC_PKGCONFIG))
all: rodisc
rodisc: rodisc.o udisks.o udisks-device.o
$(CC) $(LDFLAGS) -o $@ $+ $(LIBS) $(RODISC_LIBS)
%.o: %.c
$(CC) $(RODISC_CFLAGS) $(CFLAGS) -o $@ -c $<
clean:
rm -f *.o rodisc
.PHONY: all clean
|