diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d09120d --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |