summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6621354..687adb5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,22 @@
-CFLAGS=`pkg-config --cflags glib-2.0` -pipe -Wall -W -O0 -g
+CFLAGS=`pkg-config --cflags glib-2.0` -pipe -Wall -W -O0 -g -I.
LIBS=`pkg-config --libs glib-2.0`
+all: skdump sktest smartkitd gnome-disk-health gnome-disk-health.ui
+
skdump: smart.o skdump.o
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
+sktest: smart.o sktest.o
+ $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
+
+smartkitd: smart.c smartkitd.vala
+ valac --save-temps -g -o $@ --vapidir=. --pkg=smart --pkg=hal --pkg=dbus-glib-1 --Xcc=-I. $^
+
+gnome-disk-health: gnome-disk-health.vala
+ valac --save-temps -g -o $@ --pkg=gtk+-2.0 --pkg=dbus-glib-1 $^
+
+gnome-disk-health.ui: gnome-disk-health.glade
+ gtk-builder-convert $< $@
+
clean:
- rm -f skdump *.o
+ rm -f skdump sktest *.o smartkitd gnome-disk-health gnome-disk-health.ui