summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 687adb5d5c39f65970307c2adac1072e309b0b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 sktest *.o smartkitd gnome-disk-health gnome-disk-health.ui