removed factory registration code from ApplicationItemFactory (it was moved to BasicI...
[simple-launcher] / Makefile
1 GTKCFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
2 GTKLIBS := $(shell pkg-config gtk+-2.0 --libs)
3
4 GCONFCFLAGS := $(shell pkg-config gconf-2.0 --cflags)
5 GCONFLIBS := $(shell pkg-config gconf-2.0 --libs)
6
7 DBUSCFLAGS := $(shell pkg-config dbus-1 --cflags)
8 DBUSLIBS := $(shell pkg-config dbus-1 --libs)
9
10 CXXFLAGS=-Wall -g -MMD $(GTKCFLAGS) $(DBUSCFLAGS) $(GCONFCFLAGS)
11 #LDFLAGS = -module -avoid-version
12 LDFLAGS = -shared
13 LIBS = -lstdc++
14
15 TARGET=simple-launcher.so
16 DESKTOP_FILE=simple-launcher.desktop
17 BACKUP_CONF=simple-launcher.backup
18
19 all: $(TARGET)
20
21 $(TARGET): simple-launcher.o launchable-item.o launcher-item.o settings-page-items.o utils.o settings-dialog.o gconf-wrapper.o dialog-entry.o settings-page-entries.o
22         $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
23
24 clean:
25         rm -f *.d *.o $(TARGET)
26
27 install: $(TARGET)
28         install -d $(DESTDIR)/usr/share/applications/hildon-home
29         install -m 0644 $(DESKTOP_FILE) $(DESTDIR)/usr/share/applications/hildon-home
30         install -d $(DESTDIR)/usr/lib/hildon-home
31         install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home
32         install -d $(DESTDIR)/etc/osso-backup/applications
33         install -m 0644 $(BACKUP_CONF) $(DESTDIR)/etc/osso-backup/applications/simple-launcher.conf
34
35 pclean:
36         fakeroot debian/rules clean
37
38 package:
39         dpkg-buildpackage -rfakeroot -uc -b
40
41 -include *.d