1 GTKCFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
2 GTKLIBS := $(shell pkg-config gtk+-2.0 --libs)
4 GCONFCFLAGS := $(shell pkg-config gconf-2.0 --cflags)
5 GCONFLIBS := $(shell pkg-config gconf-2.0 --libs)
7 DBUSCFLAGS := $(shell pkg-config dbus-1 --cflags)
8 DBUSLIBS := $(shell pkg-config dbus-1 --libs)
10 HILDONCFLAGS := $(shell pkg-config hildon-1 --cflags)
11 HILDONLIBS := $(shell pkg-config hildon-1 --libs)
13 HDESKTOPCFLAGS := $(shell pkg-config libhildondesktop --cflags)
14 HDESKTOPLIBS := $(shell pkg-config libhildondesktop --libs)
16 CXXFLAGS=-Wall -g -MMD $(HILDONCFLAGS) $(HDESKTOPCFLAGS) $(GTKCFLAGS) $(DBUSCFLAGS) $(GCONFCFLAGS)
17 #LDFLAGS = -module -avoid-version
21 TARGET=simple-launcher.so
22 DESKTOP_FILE=simple-launcher.desktop
23 BACKUP_CONF=simple-launcher.backup
31 settings-page-entries.cc \
32 settings-page-items.cc \
37 OBJS := $(SOURCES:%.cc=%.o)
42 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
45 rm -f *.d *.o $(TARGET)
48 install -d $(DESTDIR)/usr/share/applications/hildon-home
49 install -m 0644 $(DESKTOP_FILE) $(DESTDIR)/usr/share/applications/hildon-home
50 install -d $(DESTDIR)/usr/lib/hildon-home
51 install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home
52 install -d $(DESTDIR)/etc/osso-backup/applications
53 install -m 0644 $(BACKUP_CONF) $(DESTDIR)/etc/osso-backup/applications/simple-launcher.conf
56 fakeroot debian/rules clean
59 dpkg-buildpackage -rfakeroot -uc -b