blob: 37b2fd6114e089e59f6d56289849b0a7b06aa32c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CFLAGS?=-Wall -Os
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: rodiscd
rodiscd: 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 rodiscd
.PHONY: all clean
|