blob: b79947c55f4f7ad816f088eb3f9544f31898079e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CFLAGS?=-O0 -g
RODISC_PKGCONFIG:=glib-2.0 gobject-2.0 gio-unix-2.0 libsoup-2.4 avahi-gobject
RODISC_CFLAGS:=-Wall $(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
|