1 PKGS = gtk+-2.0 liblocation gconf-2.0 libosso
4 CFLAGS = -g -Wall -O0 -pedantic -std=gnu99 `pkg-config --cflags maemo-launcher-app`
5 INCPATH = `pkg-config --cflags $(PKGS)`
6 LIBS = `pkg-config --libs $(PKGS) maemo-launcher-app`
8 SOURCES = main.c callbacks.c ui.c util.c
9 OBJECTS = main.o callbacks.o ui.o util.o
16 $(LINK) $(LIBS) $(OBJECTS) -o $(TARGET)
18 $(OBJECTS): $(SOURCES)
19 $(CC) $(INCPATH) $(CFLAGS) -c $(SOURCES)
22 rm -f $(OBJECTS) $(TARGET)
25 install -D -m 755 speedometer $(DESTDIR)/usr/bin/speedometer
26 install -D data/speedometer.desktop $(DESTDIR)/usr/share/applications/hildon/speedometer.desktop
27 install -D data/speedometer.service $(DESTDIR)/usr/share/dbus-1/services/speedometer.service
28 install -d $(DESTDIR)/usr/share/speedometer/
29 install gfx/*.png $(DESTDIR)/usr/share/speedometer/
30 install -D icons/speedometer-64.png $(DESTDIR)/usr/share/icons/hicolor/scalable/hildon/speedometer.png
33 rm -rf $(DESTDIR)/usr/share/speedometer
34 rm -f $(DESTDIR)/bin/speedometer
35 rm -f $(DESTDIR)/usr/share/applications/hildon/speedometer.desktop
36 rm -f $(DESTDIR)/usr/share/dbus-1/services/speedometer.service
39 dpkg-buildpackage -rfakeroot -b