do add the generated widget to our applet:)
[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 HILDONCFLAGS := $(shell pkg-config hildon-1 --cflags)
11 HILDONLIBS := $(shell pkg-config hildon-1 --libs)
12
13 HDESKTOPCFLAGS := $(shell pkg-config libhildondesktop --cflags)
14 HDESKTOPLIBS := $(shell pkg-config libhildondesktop --libs)
15
16 CXXFLAGS=-Wall -g -MMD $(HILDONCFLAGS) $(HDESKTOPCFLAGS) $(GTKCFLAGS) $(DBUSCFLAGS) $(GCONFCFLAGS)
17 #LDFLAGS = -module -avoid-version
18 LDFLAGS = -shared
19 LIBS = $(HILDONLIBS) $(HDESKTOPLIBS) -lstdc++
20
21 TARGET=simple-launcher.so
22 DESKTOP_FILE=simple-launcher.desktop
23 BACKUP_CONF=simple-launcher.backup
24
25 SOURCES := \
26         dialog-entry.cc \
27         gconf-wrapper.cc \
28         launchable-item.cc \
29         launcher-item.cc \
30         settings-dialog.cc \
31         settings-page-entries.cc \
32         settings-page-items.cc \
33         simple-launcher.cc \
34         utils.cc \
35         applet-wrapper.cc
36
37 OBJS := $(SOURCES:%.cc=%.o)
38
39 all: $(TARGET)
40
41 $(TARGET): $(OBJS)
42         $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
43
44 clean:
45         rm -f *.d *.o $(TARGET)
46
47 install: $(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
54
55 pclean:
56         fakeroot debian/rules clean
57
58 package:
59         dpkg-buildpackage -rfakeroot -uc -b
60
61 -include *.d