diff options
author | Javier S. Pedro <javier@javispedro.com> | 2012-07-01 18:05:37 +0200 |
---|---|---|
committer | Javier S. Pedro <javier@javispedro.com> | 2012-07-01 18:05:37 +0200 |
commit | c9a304c0a13b36dce7be38987c3433d8bc0b5ce0 (patch) | |
tree | 6b6821be866bf3656ad755223f8a0c45d42d6e2b /Makefile | |
parent | ea8c526e0f005107997f0079cba150ea09cfe513 (diff) | |
download | rodisc-c9a304c0a13b36dce7be38987c3433d8bc0b5ce0.tar.gz rodisc-c9a304c0a13b36dce7be38987c3433d8bc0b5ce0.zip |
initial import
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 |