summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 4 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 1e4b1d5..d350dec 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,7 @@
-CFLAGS=-pipe -Wall -W -O0 -g -I.
-LIBS=
+all: smartkitd gnome-disk-health gnome-disk-health.ui
-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. $^
+smartkitd: smartkitd.vala
+ valac --save-temps -g -o $@ --vapidir=. --pkg=libatasmart --pkg=hal --pkg=dbus-glib-1 --Xcc="$(shell pkg-config --cflags --libs libatasmart)" $^
gnome-disk-health: gnome-disk-health.vala
valac --save-temps -g -o $@ --pkg=gtk+-2.0 --pkg=dbus-glib-1 $^
@@ -19,4 +10,4 @@ gnome-disk-health.ui: gnome-disk-health.glade
gtk-builder-convert $< $@
clean:
- rm -f skdump sktest *.o smartkitd gnome-disk-health gnome-disk-health.ui
+ rm -f *.o smartkitd gnome-disk-health gnome-disk-health.ui