added [empty] dialog-entry.cc; stubbed dialog-entry.h
[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: test2 $(TARGET)
20
21 tests: test test1 test2
22
23 $(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o utils.o settings-dialog.o gconf-wrapper.o dialog-entry.o
24         $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
25
26 test: test.o launcher-item.o
27         g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso
28
29 test1: test1.o sla-list.o launcher-item.o
30         g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS)
31
32 test2: test2.o gconf-wrapper.o
33         g++ -g -o $@ $^ $(GCONFLIBS)
34
35 clean:
36         rm -f *.d *.o $(TARGET) test test1 test2
37
38 install: $(TARGET)
39         install -d $(DESTDIR)/usr/share/applications/hildon-home
40         install -m 0644 $(DESKTOP_FILE) $(DESTDIR)/usr/share/applications/hildon-home
41         install -d $(DESTDIR)/usr/lib/hildon-home
42         install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home
43         install -d $(DESTDIR)/etc/osso-backup/applications
44         install -m 0644 $(BACKUP_CONF) $(DESTDIR)/etc/osso-backup/applications/simple-launcher.conf
45
46 -include *.d