1 GTKCFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
2 GTKLIBS := $(shell pkg-config gtk+-2.0 --libs)
4 DBUSCFLAGS := $(shell pkg-config dbus-1 --cflags)
5 DBUSLIBS := $(shell pkg-config dbus-1 --libs)
7 CXXFLAGS=-Wall -g -MMD $(GTKCFLAGS) $(DBUSCFLAGS)
8 #LDFLAGS = -module -avoid-version
12 TARGET=simple-launcher.so
13 DESKTOP_FILE=simple-launcher.desktop
14 BACKUP_CONF=simple-launcher.backup
20 $(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o utils.o settings-dialog.o gconf-wrapper.o
21 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
23 test: test.o launcher-item.o
24 g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso
26 test1: test1.o sla-list.o launcher-item.o
27 g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS)
30 rm -f *.d *.o $(TARGET) test test1
33 install -d $(DESTDIR)/usr/share/applications/hildon-home
34 install -m 0644 $(DESKTOP_FILE) $(DESTDIR)/usr/share/applications/hildon-home
35 install -d $(DESTDIR)/usr/lib/hildon-home
36 install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home
37 install -d $(DESTDIR)/etc/osso-backup/applications
38 install -m 0644 $(BACKUP_CONF) $(DESTDIR)/etc/osso-backup/applications/simple-launcher.conf